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
-
1
votes1
answer29
viewsC# - Add Mousehover to each Button in a Flowlayout
How do I add a Mousehover event to each existing button in a Flowlayoutpanel? I want that when you hover the mouse on each button in this Panel the mouse pointer changes to "Hand" and that the…
-
1
votes1
answer194
viewsClick windows transparent form C#
I have a transparent windows form for drawing on other screens. For transparency, I used the following code: BackColor = Color.Red; TransparencyKey = Color.Red; It worked for a while, but now it…
-
1
votes1
answer517
viewsVisual Studio Form Covering Windows Taskbar or Getting Behind Taskbar
I have an application that uses the property Formborderstyle = None, however this happening that in windows 10 my status bar (statusBar) that is at the bottom is behind the taskbar and windows 7…
-
1
votes1
answer55
viewsUnrecognized Element (Download Files)
I am trying to make a code to download the file in a folder and returns me this error unrecognized element. Code: string pasta = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86)…
-
1
votes2
answers254
viewsHow to close all the Forms I want in C#
Let’s say I have 4 presses: form1, form2, form3 and form4. Knowing that the window form1 will always be opened first and when I give a .close() in form2 it, along with the others, must close. How do…
-
1
votes1
answer798
viewsHow to bring information by clicking on the dataGridView C#, and adding values from a column
Hello I’m having difficulty creating a query of a gridview used Entity Framework Well, I have a gridView she carries the data normally In the Textbox below I want to take the name of the person that…
-
1
votes1
answer406
viewsSend data from a Gridview in a Form to Combobox in another Form
I’m trying to send the data of a gridviewin a second Formfor a comboboxin the form but I haven’t been successful. I wonder if there is a way to do this without sending as a parameter, since I will…
-
1
votes1
answer221
viewsHow to migrate a C# system using ASP.NET?
Good morning! I’m new to the programming environment and I’m developing a C# system using Windows Forms. In the future I intend to make this same system in ASP.NET. I wonder if there is any way to…
-
1
votes2
answers55
viewsHow to find a comma inside a Textbox
I have a Text Box in which can only contain a comma, so I thought to make the program detect, when the user uses the comma, if there is already one in that particular Text Box. Here’s an example of…
-
1
votes1
answer1356
viewsPlace a combobox in a datagridview column
Using C#, with Entityframework and codefirst, I have the following classes in my models layer: public class Cliente { public int ClienteId { get; set; } public string Nome { get; set; } public…
-
1
votes1
answer213
viewsError when connecting to database [Winform/C#/SQL Server]
My C# teacher taught us a new technique today, one does not need to inform Connectionstring itself, the program would go to the document folder and pick up the file . mdf (SQL Server) and open the…
-
1
votes1
answer161
viewsScrollbar centering on its own
I have a form with height larger than the screen, with many buttons and checkboxes, The user uses the scroll bar to scroll down and see all the content of the form. My problem is that every time the…
-
1
votes0
answers169
viewsHow to pick up part of an image using bitmap C#
Guys, I’m studying bitmaps, and I downloaded a pdf that said an image was an array of pixels. Since it is a matrix (which is quite logical) there is how to define points within the image, mark a…
-
1
votes2
answers446
viewsHow to check for async processes running
Does anyone know any way, to check if any process Async is being executed? For example, I would like to do a check, when the user closes the system, and not let close all processes Async be…
-
1
votes2
answers80
viewsMethod is executed by clicking the button despite doing "button01.Enabled = false"
I want to disable a button while the method does not finish. I used button01.Enabled = false;, but even clicking while the button is disabled, the method is called again after it ends. For example,…
-
1
votes3
answers648
viewsRemoving items from a Combobox
I have a ComboBox Status searching approximately 13 status of a table: cboStatus.DisplayMember = "nome"; cboStatus.ValueMember = "codigo"; cboStatus.DataSource = CartoesVTBLL.Status();…
-
1
votes1
answer80
viewsOpen Program with dragging file(PDF) and even recover the path
Hello, I am with a little complicated need, I am developing an application that sends pdf files to an application via webservices. I just want to let this problem begin in a few different ways. I…
c# winforms visual-studio visual-studio-2013 drag-n-dropasked 7 years, 3 months ago Renan Silveira 376 -
1
votes1
answer20
viewsClose current windowsForm when opening next
My current form is called Frmvender (The one that is open) when clicking a button inside the Frmvender, I want it (Frmvender) to close and open the form I call which in case is Frmvendaprint.…
-
1
votes0
answers34
viewsDoubt in Windows Form in C#
I’m a beginner programmer, I’ve had a few classes in Java and C++ college, and I’m trying to learn C# on my own. For this, I’m trying to make an application (Windows Form) that will have text,…
-
1
votes2
answers78
viewsRemove selection from a Strip Menu
I got the following Menu Strip: I would like when I move the mouse over it not to have the color blue. It’s just to be informative this and not to use as buttons. Using enable the Menu Strip turns…
-
1
votes1
answer159
viewsProblem saving Combobox data to Postgresql
First this is the bank code I’m using: CREATE TABLE perguntas ( cod_pergunta SERIAL PRIMARY KEY NOT NULL, pergunta VARCHAR(500), opcao_um VARCHAR(500), opcao_dois VARCHAR(500), opcao_tres…
-
1
votes1
answer1082
viewsCheck items registered in the checkedlistbox
I am programming in C# in Visual Studio 2015, and I have a form with a checkedListBox with names of several courses (The registration is a student). When marking and saving, it saves the student’s…
-
1
votes0
answers70
viewsHow to get the server response efficiently?
I am creating a Client/Server application Acts as a chat so the server can send messages to the client and vise-versa. To send messages I use an event private void btnsend_Click(object sender,…
-
1
votes1
answer696
viewscondition to prevent textbox null
How do I make the system not allow insertion of null values inside a textbox, using id condition? if(verificar se o textbox é null){ MessangeBox.Show("digite um valor"); }…
-
1
votes1
answer141
viewsUsing Arraylist to update the information in c# "checkedlistbox"
Fala galera to with a difficulty in picking my strings to update my information. My scenario is this: i have a checkedlistbox where I have my strings in total are 9. In the input part of the data I…
-
1
votes1
answer242
viewsC# calculator and keyboard interaction
Guys, here’s what I’m doing: I’m doing a C# and I wanted to put in a root calculus. The problem is that the calculation is only done with the value I put in the variable first. I can not put this…
-
1
votes1
answer183
viewsHow to create transparent and tangible component - Windows Form C#
I’m looking to create a Panel who will always have the property BringToFront, capable of being fully transparent to the point where it shows components behind it and still be possible to click on…
-
1
votes2
answers264
viewsSQL syntax error when updating a record in C#
When I run my program to update a record, I get the following syntax error But my SQL syntax is correct: string comando = "UPDATE cliente SET nome = '" + dto.Nome + "', SET email = '" + dto.Email +…
-
1
votes0
answers41
viewsView 3D object in Windows Form C#
Good morning, I’m trying to insert a 3D object into my Winforms C#. I researched and apparently the easiest way would be to use a WPF control. How can I integrate the WPF control into my Winforms…
-
1
votes1
answer86
viewsCopy and paste string without mask
I’m using a MaskedTextBox containing a mask of CNPJ (00.000.000/0000-00). But I wish that when I copied this string it would come to the clipboard without the mask, to remove the mask I’m doing…
-
1
votes0
answers68
viewsException Treatment Does Not Work
When I enter letter in txtIdade, the program should return the exception message. But does not return, Visual Studio informs that there is exception without treatment. try { var conn = new…
-
1
votes1
answer374
viewsExceeded timeout trying to send email c# windows Forms
I’m trying to create an application to send emails of "I forgot the password" but without success so far I posted here a problem where the screen was freezing and it was time exceeded application, I…
-
1
votes0
answers43
viewsHow to change the treeview + image c# . net
I want to change the treeview, follows the example below. In the image above to see what the + I am disproportionate to the name, I would like to change the size and together the design of +,…
-
1
votes1
answer459
viewsDatagridview.Cellclick event
How can I use the event DataGridView.CellClick to click a single column? The way I did in my code if I click any part of the datagrid it does the action, and I didn’t want it to be this way I want…
-
1
votes2
answers241
viewsPopular Datagrid Combobox Windows Forms C#
I have a datagrid(c# windows Forms) that I need to use for editing and I am populating with information coming from the database of a table called "costs" The Account Plan and Cost Center fields are…
-
1
votes0
answers16
viewsImplementing dummy to windows form
i’m in a project trying to find the best way to implement an Interactive dummy to a windows form software. I think the tools on visual studio aren’t good enough to do so. Any suggestions of…
-
1
votes1
answer193
viewsChanging text from another form does not work
Follows code: Form2: public void ChangeLabel(string s) { labelX1.Text = s; } And in Form1: private void button_MostrarSegundaTela_Click(object sender, EventArgs e) { if (Screen.AllScreens.Length…
-
1
votes0
answers94
viewsError connecting to DBC bank
I am trying to connect my program to a DBC database using the tutorial from this link: http://rodrigolameira.blogspot.com.br/2009/08/conectando-banco-dbc-em-c.html The code used is as follows::…
-
1
votes2
answers99
viewsDo not let insert same value in a Datagridview C#
I own a DataGridView where I have a column called Ramal, where the specific seller’s extension will go. How to do that when I type in a line an existing extension, appear a message that cannot be…
-
1
votes2
answers96
views -
1
votes1
answer109
viewstextbox value for another textbo using Tabcontrol and Tabpages
I’m using in a form one TabControl, three-page. In the TabPage1 have a TextBox (seller), I need to take the value of this Textbox to another TextBox who is in the TabPage3. How can I do this between…
-
1
votes1
answer686
viewsHow to draw words from an array without repeating them?
I am doing a college project where I need to simulate the lottery, so I have an array with the name of 20 teams and I need to draw 10 teams but without repeating any and present these teams in a…
-
1
votes1
answer44
viewsFiltering items in a products table
Good afternoon to everyone, I have a simple application that I am developing, and I have the following problem, I have a variable "Tenure List", which already has the ID of the items, and I have a…
c# sql-server entity-framework winforms visual-studioasked 3 years, 5 months ago Mecleudio Queiroz 31 -
1
votes1
answer239
viewsHow to update listbox from another Form?
Follows code: Class: public class Louvor { public int Value { get; set; } public string Text { get; set; } } Form2: Form1 form = new Form1(); var data = new List<Louvor>(); var files =…
-
1
votes1
answer18
viewsHow to delete the line it automatically generates in a gridView windowns form
I have a gridView that once it is populated with data, it always generates an extra line. How do I remove ? Obs. Grid columns are generated dynamically. if (objPed.ConsultarPedido(Metodos.empresa,…
-
1
votes0
answers51
viewsIdentify Child Control Resize
Hello. I am going through the following scenario. I have a Usercontrol that has dynamic width based on the text typed in a Textbox within it. For this in the Textchanged event of this Textbox, the…
-
1
votes1
answer105
viewsColoring word "up" a limiter
I need to color in Richtextbox filled with multiple lines, a text before a limiter, Note for example the highlights: 1- not paint because it has no limit 2- paint because it has limit: not paint 3-…
-
1
votes1
answer51
viewsCan anyone help with this message here Failed to locate or load the Registered . Net Framework Data Provider?
I created an application with Windows Forms connecting to Firebird, where on my development machine everything works perfectly, but when I put in client machine, the following error occurs:…
-
1
votes1
answer558
viewsFind out which service is being used in port tcp C#
I created a Scan Port in C# (winforms), which is checking a range of ports, previously set, I can verify that the door is open, but my problem is this: I know the door is open, but I don’t know what…
-
1
votes1
answer115
viewsInstantiate method in Instantiated Form
Hello, I am with the following question, I have installed a new form with the following code: Form frmDialog = new Form(); Well, I want to do the following, in the form in which I instituted this…