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
answer37
viewsSearch Using Combo box
I’m with a ComboBox that when I select Active or Inactive status it empties my DataGrid What I’d like him to do is select one of the two Options and bring all records with Active Status, for an…
-
0
votes1
answer163
viewsHow to check if you are registered through Monthecalendar ? C#
Talk good morning guys! I’m having a little difficulty regarding use of Monthecalendar... I have a scheduling system by DATA, which after registering the given event, it is presented in…
-
0
votes1
answer56
viewsError bringing a Log Data to a label
Hi, I’m trying to bring in for a Label a database registration data, for example: when the person selects the product on ComboBox the price of the product on label However, I don’t think I’m getting…
-
0
votes1
answer164
viewsHow to check if there is a Usercontrol in a Panel? C# Winforms
I’m making an application that has a central Panel, and for it I’m controlling the Usercontrols, I’m using Clear, Add and Bringtofront to manipulate, i wonder if it has any function so that I can…
-
0
votes1
answer30
viewsProblem with focus of windows
Good morning, I’m having trouble controlling focus on windows in some situations. I need to control this well for one should always block the other. I have a multi-window solution, I will use…
-
0
votes1
answer100
viewsDelete programmatically created Labels
I’m developing a mapping application that uses Abels to name the different rooms in a building. The code I use to create the Abels is as follows: private void button2_Click(object sender, EventArgs…
-
0
votes1
answer36
viewsPull data from Datagridview to a form
I got a problem where I got two forms TelaInicio and ExibirDados and I’m trying to make sure that when the user double-click on some line in the Grid will open a form pulling the information…
-
0
votes2
answers2509
viewsUnable to access a discarded object
I am instantiating a form from a double click on a Datagridview from another form, where through this return the information from that line to the form. It is working properly but when I close this…
-
0
votes1
answer82
viewsGet the logged in user id
I found many questions of this kind here in Sopt but none that specifically talked about C# in Winforms. Well, I have a login screen and would like to pick up the id of that user who is currently…
-
0
votes0
answers41
viewsTreatment of exceptions of an Inputbox
I am doing an academic work where I have to pick up a data typed by the User and I am using a Inputbox for such. But the Inputbox displays several mistakes which I am not aware of. by clicking…
-
0
votes1
answer236
viewsInstantiating form to lock button
I’m instantiating a form with a single textbox just to put the password to release the button action. The button has the function of exporting the data contained in datagridview for a spreadsheet in…
-
0
votes1
answer167
viewsError passing information from a datagrid line of a form to the datagrid of another form
I have a following error when passing information of the selected line from a Form1 grid to the form2 grid Follow the code of the Form1 grid private void button1_Click(object sender, EventArgs e) {…
-
0
votes2
answers98
viewsLayout ratio difference between Form1.Cs[Design] and . exe
Recently I’m programming a Windowsforms application using c#, and there’s kind of a bug going on with the IDE that leaves the layout ratio different, like in the image below: The form on the left…
-
0
votes1
answer141
viewsI cannot create a Windows Form using the . net core
I’m migrating my project from . net Framework pro. net core. I installed Visual Studio Community 2019 and packages from . net core (including . net core 3.0). But I cannot create a windows form with…
-
0
votes1
answer38
viewsDo Excel formulas continue to work after being imported into a Datagridview?
I have a spreadsheet in Excel where I import it, to present the data in a DataGridView, i wonder if the formulas that are contained in the spreadsheet still work in the DataGridView. To be more…
-
0
votes1
answer535
viewsHow to search data in any column of datagridview, after popular it by the c#database
I have a datagridview that takes the data from the sqlserver database and needed to make queries, but as they are a lot of data we can’t keep pulling from the database. wanted to do searches through…
-
0
votes0
answers27
viewsProblems with Savedialog and Windows Forms output function
Guys, here’s the deal: I’m making a notepad in C# for educational purposes and I come across a mistake I haven’t been able to see for two days. Whenever I will save a txt file it opens the window…
-
0
votes1
answer180
viewsImplement Save As and Save in C#
You know that basic difference between salvage and the save as of the text editors? So, I’m wanting to put in my application only the option "save", however, after searching a lot on the net only…
-
0
votes2
answers54
viewsHow to assign the name of a component, where it does not exist in the current context
I have a form for client registration and within this form there is a RadioButton that asks if this customer needs to send invoices, if the answer equal to SIM arise two components, a TextBox and a…
-
0
votes1
answer50
viewsEnable controls after logging in
Hello...then I need a help I need to make sure that after logging in, on the login screen when you click the confirm button, the fields of the Main MDI are enabled (menustrip), that is when the…
-
0
votes0
answers62
viewsNotifyicon creates multiple icons that do not disappear with program shutdown
I have a Windows Form where I use the Notifyicon component. When running the software the software by Visual Studio and finish running with the stop debug button: the icon is not removed until I…
-
0
votes1
answer24
viewsForm does not respect Location set manually
I have this code to open one form which has the size 324x172. I’m doing this way to open as per resolution: FormLembreteCheque aviso = new FormLembreteCheque(); int c =…
-
0
votes0
answers63
viewsError loading data from a listview into a texbox c# Windows Forms
I am developing my project in Windows forms, where in the register tab shows a form that has a listview with some customer data, and next several texbox to register, change, view or delete this…
-
0
votes1
answer102
viewsHow to create a select in the database that runs two tables with a single primary key?
I’m new to programming and I’m developing a note system. The case is as follows: There is a form that registers the notes, where it uses 2 tables of mysql, the notes table (where the code of the…
-
0
votes1
answer190
viewsPass data from one form to another form’s listview
Good afternoon, I am developing a system in c# where I need to find the note number and when clicking add, it passes the information to the main form in listview. Can anyone help me how to develop…
-
0
votes0
answers176
viewsLoad listview with data
I have a form that searches all the bills registered in the system for the client code that was registered. When you find it, list all the notes in the listview. I was able to get him to look for…
-
0
votes1
answer53
viewsError making select with start and end date
I need to search the database for a list where it is necessary to filter by the employee, the initial date and the final date. However, when you pass the parameters and enter while, you jump to…
-
0
votes1
answer102
viewsError while refreshing report Viewer C#
I’m having a problem running a report on Viewer in c#. The problem is the following I have to add a list in the data source, but it adds the first list, then no longer updates. What Can Be ? Code…
-
0
votes1
answer52
viewsProject cannot solve mscorlib for Framework . NET 4.5.2
I have a C# Windows Form project that uses Framework 4.5.2. I bought a new notebook and I am trying to run this project, but when trying to run it does not appear any error and even then the project…
-
0
votes2
answers104
viewsCombobox redeem ID value
public void SalvarProfessor(Professor professores) { try { AbrirConexao(); comando = new MySqlCommand("INSERT INTO professores (nome, idade, genero, email, id_especialidade) VALUES (@nome, @idade,…
-
0
votes0
answers51
viewsC# files I need to send to the client (put in an installer for example)
Good night, Which files are required in my EXE distribution? The briefcase pusblish is because I clicked to publish once to test and now it is always generated every Debug or Release (If someone…
-
0
votes1
answer20
viewsC# Define page orientation for a Webbrowser control
Hello. Referent: Windows Forms. I have a Webbrowser control on a form that is displayed to the user. This Webbrowser displays an HTML document in its Documenttext property. I can display the form…
-
0
votes0
answers272
viewsAdd Reference to Visual Studio 2019
I used Visual Studio 2017, and had an area to add reference. When I switched to Visual Studio 2019, I noticed that the button changed its name. When I try to add a reference it doesn’t work, the box…
-
0
votes1
answer73
viewsC# Assign a Form to a variable
I’m having a hard time solving this problem. I created a project in Windows Form to open the other forms inside a panel, being that I would like to associate the Forms to be opened in the variavies…
-
0
votes0
answers70
viewsHow to optimize access to the Database?
I’m doing a project where I often need to access the database to do things like: Load User Data (Example: Balance, Settings); Upload images; Insert/Update data. It’s a pretty boring process to have…
-
0
votes0
answers56
views'Undefined object reference for an instance of an object. ' Datagridview.Currentrow
System.Windows.Forms.DataGridView.Currentrow.get returned Nothing. Me.StatusTableAdapter.Fill(Me.DataSet1.Status) Me.FornecedorTableAdapter.Fill(Me.DataSet11.Fornecedor)…
-
0
votes1
answer48
viewsHow to return the values of a public List<Weather>?
I have an app in Windows Weather/Weather Forms I want to pull the Description data from the Weather Class public class weather { public string descrição { get; set; } } void getWeather(string city)…
-
0
votes1
answer39
viewsC#: Sending data to database (Sqlcompact)
I’m starting now with C# due to the need where I work, I took a project until it was flowing, however, I’m having great difficulty sending the data to the database (a part of the code another person…
-
0
votes0
answers21
viewsWhat reference is missing for my Form fields to be filled with Datagridview information?
I created a separate project to find out why information from any row in my table is not sent to the fields in my frmVisualizar_Cadastro. I discovered the error and now when I click on any row of my…
-
0
votes0
answers23
viewsReport Viewer returns #Error
I am developing a report that should return a table whose data comes from a class, where this class has List type property. The problem is that when I report it appears #Error in column data. The…
-
0
votes0
answers17
viewsHow to move a line drawn in Winforms?
I know how to draw lines in a program, but I wish the user could "move that line" that he did (like a vector) to somewhere on the screen. It turns out I didn’t find anything about it at Microsoft,…
-
0
votes0
answers29
viewsProblem with clicking a Textbox inside a Child Form
Good Afternoon! I have the following code in my application: using System; using System.Drawing; using System.Windows.Forms; namespace WindowsFormsApp1 { static class Program { [STAThread] static…
-
0
votes0
answers31
viewsDevexpress - How to change the name of the button dynamically inside Datagridview
Please, I need some help, I’m new in development c# widowsform. I have a Datagridview that pushes some buttons for each line, I can’t program so that the name of the button "Button.Caption" changes…
-
0
votes0
answers22
viewsThe "Bitmap" type is defined in an Assembly that is not referenced C#
The problem: I’m doing a project using Windows Form C# which should basically record a video from a webcam and save to the computer. I was using the Aforge.net package to record the video and when I…
-
0
votes1
answer32
viewsError using Accord.Net package
I’m making a Windows Forms C# application and using . Netframework 5.0 to record and save videos to the computer with a webcam. I use the Accord.Net package for recording. It was almost ready with…
-
0
votes1
answer39
viewsHow to download a Github release file using Webclient on . NET 3.5?
After my question of Create Zip files and unzip using . NET 3.5 I have a problem. It’s just that before I was able to download my file in a Github release, but then it didn’t work anymore. using…
-
0
votes1
answer151
viewsC# - Read txt file and return value in textbox
I am making an application that from a selection of Combobox, it reads the txt file (containing two columns) and returns me the value of the same row but column 1 (column 2 would be the value of…
-
0
votes1
answer36
viewsMega API Client: Cancellationtoken at Downloadfileasync
I started using a MEGA file cloud API where I can upload and download the files from the cloud. Nuget Package here, I’m doing fine: using CG.Web.MegaApiClient; using System; using…
-
0
votes0
answers19
viewswrite data from a Datagridview to the database
Good morning, I am making an application similar to a sale, which contains sales and sales items. my problem is that I am not able to save the items of sale that is in datagridView, I am using…
-
0
votes0
answers28
viewsWrite data from two Datagridview to the Sql Server database
I’m not able to record the data that are in two dataGridView, the data that are in the two Datagridview are in a single Class, I have a code ready but would serve only for a Datagrid, in the same…