Most voted "winforms" questions
Winforms is the informal term given to Windows Forms, is a graphical interface application included as part of Microsoft . NET Framework. Winforms provides native visual access to Microsoft Windows window interface using existing Windows API in managed code.
Learn more…1,192 questions
Sort by count of
-
0
votes1
answer95
viewsWhen I enter the system Choose a company to work for
Good Morning staff I need a help from you in my college project I am doing a stock system with 4 layers, I have a form that is registration company where user company that the user wishes to work,…
-
0
votes2
answers1035
viewsTable Completion with List
Is there any function in Visual Studio where it is possible to fill a table with values of a List<> without a specified number of positions?
-
0
votes0
answers75
viewsError select text with mouse, Forms within tabcontrol
I found an elegant solution on how to work with MDI Tabbed Interface, I am creating at runtime a tabcontrol within my MDI form, and I am creating a new tab for each form. as described below !…
-
0
votes1
answer32
viewsHow to block form scrolling when I’m dragging a controller?
I have a form where I design a company’s supply network. For this, I need to allow the user to move the controls that are in the form. This is working. However, when the user moves the control…
-
0
votes1
answer146
viewsC# - Mouseleave Event does not work under a different label
I created two Labels with different names and created two methods for each Label responsible for making an event Hover kind of similar in CSS (was just a comparison). //Evento responsável por fechar…
-
0
votes0
answers24
viewsChanging the container of a custom form
I made a custom form, with the style of Windows 10, but there is a problem, it is considering the caption bar as part of the form client panel. This is the form. The problem is that, the position 0,…
-
0
votes1
answer175
viewsData conversion error
I cannot open my user control form. private void usuáriosToolStripMenuItem_Click(object sender, EventArgs e) { Usuarios USU = new Usuarios(); sNome_usu = Status_Label_Usuario.Text;…
-
0
votes0
answers148
viewsModularize Winforms
I have the following scenario, 1 System Containing several functionalities, these functionalities, have some that are similar (Changes according to the User Profile). Only I’m having a hard time…
-
0
votes1
answer68
viewsDoubt to Load Combobox from an account with the sub account
I made a select to fetch an account and upload the sub account and would like your opinion to see if this is how you do it code private void cbbConta_SelectedIndexChanged(object sender, EventArgs e)…
-
0
votes1
answer377
viewsCopy files showing progressbar
Good morning. I have a small code where I copy files from one folder to another, but as some files take time, I would like to show a progress bar, how can I do this with this following code: string…
-
0
votes0
answers2413
viewsC# windows appication Event: Clr20r3 on application start
I created a windows application Forms c# . net 4.5, in my development environment works perfectly, but when I put the release in the client environment, give the following error when starting:…
-
0
votes0
answers133
viewsSync Sqlserver Express 2014 with Sqlserver Localdb using C#
I’m making an application Windows Forms using C# which will be connected to a bank SqlServer Express 2014 remote, however, I need some features to be available offline due to the poor quality of…
-
0
votes3
answers124
viewsTake the name textview in repetition loop
How can I get the textbox inside a For: I have a For that traverses 20 times and I have 20 textbox on my screen, I wonder how I could get all the textbox that contains on name the word "Publishing"…
-
0
votes1
answer3261
viewsGrab the coordinates of the mouse position by clicking
I have to trace a line with starting point and ending point,I can do this line if I provide these coordinates by keyboard, but I want to do this by mouse click,the first would be the starting point…
-
0
votes1
answer3397
viewsResize elements according to form size
I have a GroupBox within a Form which has the following pattern: Padrão de tela - Form: 1290;700 - GroupBox Principal: 1260;600 That one Form is opened through MDI. I use a function to center this…
-
0
votes1
answer23
viewsmanage Multiple windowsForm Splitcontainer
I have multiple windowsforms inside a Splitcontainer, one of them, owned a Listbox. That is, outside the Splitcontainer, in Form1, has button, when you click on it, I want to add a text in the…
-
0
votes2
answers256
viewsWindows Forms and Panels
How to use a single form to present several screens, such as login, registration, administration, etc? It is possible using the panel component, but the rendering of it is slow, besides being…
-
0
votes1
answer52
viewsPerform 'Check' of a Datatable (Ids) in batch in the database
I have a small desktop application (Windows Forms - .NET 2.0 - C#) in which I just use it to perform a check on a given time-to-time path and in case this check finds a file. txt in this path, an…
-
0
votes1
answer410
viewsC# Forms Windows Forms Do Not Open After VS 2013 Update to VS 2015
I installed Visual Studio 2015 and opened a VS 2013 project, after which old C# Windows Forms do not open. Use the F5, the debug menu appears but does not open anything on the screen, the project…
-
0
votes0
answers199
viewsParallel Return Problem.Foreach
Good evening, everyone! I am making a system in C# Windowsforms for validation of phone bills model FEBRABAN V2. The files usually have between 600Mb to 15Gb, for this reason I opted for the use of…
-
0
votes1
answer309
viewsCustomization of datagridview in c#
I’m doing a project and I’m having customization problems in my datagrid, as the information of the two textboxes return in the same datagrid I can’t customize the header of the two, but of only…
-
0
votes1
answer694
viewsScrollbar in Windows Forms screen
It is possible to put scrollbar in a winforms to increase the amount of window content? Not just in one datagrid, but on the whole screen to include anything, like more buttons, text fields... The…
-
0
votes2
answers142
viewsSaving report on disk in PDF
I took a legacy code here and I have no experience with Windowsforms. The case is, a report is generated and saved within a Printdocument type object. Then it seems that it populates another object,…
-
0
votes2
answers146
viewsContext trying to delete the same record twice
I’m having a problem, actually it must be the same lack of knowledge, at the time of deleting a record using Entity Framework 6. When I try to delete a record that cannot be deleted because it has…
-
0
votes1
answer193
viewsTyping in the Textbox
I’m doing a project in the visual studio and I need help. I wonder if there is a way or how to make it so that when I type in the textbox,this I typed start at the front regardless of the position…
-
0
votes1
answer106
viewsHow to make it redirect
I made an application in C#, in addition to performing the basic functions, I want it to be possible to run with scripts in batches, but the problem is that I run Console.WriteLine and he doesn’t…
-
0
votes2
answers144
viewsHow a Checkbox can receive a Datagridview Checkboxcell
In my Datagridview brings from the Database the user information, among them if he is administrator or not, this cell has a Datagridviewcheckboxcell. I want to pass its value (True/False) to a…
-
0
votes1
answer57
viewsHow to import data from Datagridview to textboxs
As I do,when I click the modify button bring the data from a Datagridview row to the top fields and also if I save as inactive leave the line as Enabled = false.…
-
0
votes1
answer1460
viewsColorize line in datagridview c#
I’m trying to use the following method: for (int i = 0; i < dgvRequisicao.Rows.Count; i++) { valor = Convert.ToDouble(dgvRequisicao.Rows[i].Cells["valor"].Value); if (valor > 20000.01…
-
0
votes1
answer340
viewsHow to create C# method to do 2 Query SQL Insert?
To create a c# method to insert data, this method does more than one INSERT behind the other? 'Cause I tried it here and it didn’t work out!
-
0
votes1
answer37
viewsClean Form1 and add new things like the game maker’s Rooms system
Oops! Guys, how do I clean a form and put new elements inside? For example: Something like an installation screen when we click Next. Edit1: For example, this screen: Flip this screen by clicking on…
-
0
votes1
answer150
viewsHow to get the text of the line where the cursor is positioned?
I have a textbox, and I need to get the content of the line where the cursor is positioned. For example, I am in the third line of the textbox (cursor positioned on it), I would like to get the…
-
0
votes0
answers282
viewsDesktop remote application with RDP protocol
I’m making an application based on the example Remote Desktop application with RDP Protocol. But, how to change the color of the transmission? That is, the property colordepth. I’m using the…
-
0
votes1
answer456
viewsC# Windows Form - Doubts about Session
I need to save information for as long as the user is logged into my software, I searched and saw that for web pages made with ASP.NET there is the object SESSION, but and for Windows Form? the…
-
0
votes1
answer82
viewsManipulating what will be displayed in the Displaymember of a Checklistbox
I have a Model class: class pessoaModel { int id; DateTime data; TimeSpan hora; CliModel ID_Cliente = new CliModel (); public string Nome { get { return nome; } set { nome = value; } } public int ID…
-
0
votes0
answers167
viewsFirebird error with Entity Framework and C#
I’m trying to use Firebird with Entity Framework in C#, but when I create relationships and try to give Update-Database in Migration gives this error: Type is not resolved for member…
-
0
votes1
answer2213
viewsC# When you open form 2 wait 5 seconds and open form 3
I need that when loading form 2 the program waited 5 seconds in order to automatically open form 3 as I do this? private void LetTheGameStart_Load(object sender, EventArgs e) { timer1.Start(); }…
-
0
votes1
answer226
viewsDraw outside a form area
Using C# with Windows Forms Application project type is it possible to draw things out of the form? I would like to draw a square that can be stretched by the mouse and repositioned, where I should…
-
0
votes0
answers99
viewsHow to Grid with Levels
Would anyone know how, to make a grid with two levels and Winform? example below: thank you.…
-
0
votes1
answer331
viewsFormat Windows Forms text
I have a system and I need to justify the text to the left, I have tried with the textbox and with ritchtext and neither of the two give me this option, I can only align the left, but when I align…
-
0
votes1
answer59
viewsSelect only one item amidst two listboxes
Oops! Guys, I wanted to select only one item in the middle of two listboxes, imagining the listbox as a radiobutton, if I select an item in one, it is no longer selected in the other. I tried so:…
-
0
votes2
answers528
viewsError trying to erase image file?
I’m trying to get an image update on a criminal record. When I do this update I want to change the existing image to the new update image. That’s why I’m using the File.Exists and the File.Delete…
-
0
votes2
answers994
viewsA single form with multiple panels or MDI Forms. Which option is more efficient for program performance?
I’m a beginner in C#. I’m developing a simple application, which has several windows. Depending on what you need to do in the program, the user needs to open multiple windows to get to the required…
-
0
votes2
answers101
viewsLike warping a button?
How do I deform a button, using the Paint button event to have the shape of the key Enter or even the shape of a circle?
-
0
votes0
answers337
viewsChange permission to modify files
I am creating a Windows Forms application that will fetch an Excel spreadsheet and update some DBF files from a legacy system, but when I run the system I cannot update the DBF files due to the…
-
0
votes1
answer166
viewsError ordering Gridview with empty row column
There is an error here that I am not knowing how to get around, as my program reads a site, sometimes the site can escape from the pattern and end up leaving some empty things, so when my Gridview…
-
0
votes1
answer1462
viewsHow to run a URL by passing C#parameters
Hello, I’m doing for study purposes, a way to search for and bring vehicle information from the FIPE table straight from the api(http://fipeapi.appspot.com/). What I’m unable to do at first is run…
-
0
votes1
answer38
viewsLack of Assembly Reference C#
I have an error of lack of use of Directive or a Assembly Reference aimed atKeyCodand Modifiers Can anyone tell me what it would be and how I can carry it ? private void lblAutoCod_MouseClick(object…
-
0
votes2
answers120
viewsHow to move form on screen programmatically with animated effect?
How can I make my form go from location 0.0 to location 100.100 on the screen without user interaction, ie through programming, this movement needs to be animated, ie can not disappear from one…
-
0
votes1
answer105
viewsCombobox loading wrong array information
I made an application in C#(Winforms) to load the marks according to the type of vehicle that is selected (car, bike or walking)in a combobox. I put in a button the following code: private void…