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
answer225
viewsRemove Dynamic Picturebox
I have an "Add" button that when clicked opens a screen for the user to select an image, this image is added to a flowLayoutPanel. A dynamic "Remove" button is added to pictureBox, when this button…
-
0
votes2
answers591
viewsHow to pick up the selected item
Hi, I’d like a hand, I’m using the DEVEXPRESS framework. I have a form with a Gridcontrol, In this Gridcontrol I have a Doubleclick event. When I click on the selected line I want to take only the…
-
0
votes1
answer40
viewsWhy does the matrix get extra lines?
private void abrirLabirintoToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog Abrir = new OpenFileDialog(); Abrir.ShowDialog(); string CarregaArq = null; string teste = null;…
-
0
votes0
answers222
viewsI cannot select a listbox item and get the other information in the Database from that selected item
The idea of the software is to select a name in the combobox (cmb_nameGu) and with this play in the listbox (lst_result) all found dates that contain the chosen name, to later click on existing…
-
0
votes1
answer636
viewsProblem with accentuation when exporting data from Sql Server to Excel
I have the following code inside a button responsible for performing the export of data from my table to excel. string caminho = "c:\\caminho"; // criar um arquivo para escrever using (StreamWriter…
-
0
votes2
answers235
viewsHow to change the appearance of the form according to the operating system?
When developing a project in C# (Windows Form Application) the appearance of the application window (borders) is in accordance with the OS in which I am running the application (Windows XP, Vista,…
-
0
votes0
answers25
viewsError while restoring Windows Forms Application Database
I am creating the database backup but cannot restore. It shows the following error: this is my code to perform bank restore to my application. try { var _with1 = openFileDialog1; _with1.Filter =…
-
0
votes1
answer1082
viewsCombobox.Selectedindex does not return the item in Windows Forms
I have a program in windows Forms and I need to select the item in a combo box so that the user can edit the record, however, it receives the value, finds the index but does not return the selected…
-
0
votes1
answer237
viewsHow to add elements in Queue (Queue) continuously?
Below I have a code that he needs to do the following: Create a thread, then start it. When starting the thread, according to the time (random time) the program adds a value in the queue, after…
-
0
votes1
answer95
viewsHow to inherit a form in c#?
I have an application with the form FormFuncionario. I wish to inherit all the features of this form for a second class, called ControlFuncionario, where it will be responsible for holding various…
-
0
votes0
answers59
viewsRun a FOR on Webbrowser C#
I am currently trying to develop a data capture application using the WebBrowser of C#. I can get the application to enter the page and enter the value and click on search, but I can’t link this…
-
0
votes1
answer104
viewsWindowsforms - C# - Reportviewer - "Full HD Resolution" Remove Edges
I am using the Report Viewer, the data appears normal, but appears a blank border on computers with high resolution as FULL HD for example. Code for loading the form. Properties of the report. I…
-
0
votes1
answer92
viewsDecode javascript-encoded string in c#
Hey, here’s the deal. On the site that I’m building, I write information in the database, this information is a json, to be able to send this data to the database, I code it by javascript like this:…
-
0
votes1
answer67
viewstouch screen c# winforms
I developed this application that visualizes information contained on a website through windows Forms and with the webbrowser component. The application works with the mouse perfectly. When I run on…
-
0
votes1
answer727
viewsHow to do for when click on the button perform action every 1 second
I’m using Cefsharp and I wanted when clicked on the button runs the javascript every 1 second and in the background too, and only stop if you hit the off button. I tried for the backgroundworker but…
-
0
votes1
answer36
viewsC# - High memory consumption when calling method
I am working with a Main Form and it has several Panels. In one of them, the "Geral panel" I use to call the instances of new forms and show in it using the following code of the Formcall class:…
-
0
votes1
answer614
viewsHow to close the program by pressing the button
How can I close the program by pressing the ESC key? Even if I have a Messagebox or something else preventing it? I tried this way but I couldn’t: private void Form_KeyDown(object sender,…
-
0
votes1
answer51
viewsHow to have the option to connect to more than one database in my C# Visual Studio app via the.config app
I have a C# application I made in Visual Studio. This application connects to an Sql Server database. I would like to put on my login an option in list form to choose another bank if I have more…
-
0
votes2
answers462
viewsFind out how many are older in Windows Forms app
I’m trying to do a C# exercise using Windows Forms that are older than 18 years. The algorithm should read the age of 10 people. But when I run the program it lets me just type an age. public…
-
0
votes1
answer810
viewsEdit text file on a specific line
I have a txt file that informs me 3 fields: error line, wrong number and number to replace. However I am not thinking of an instruction to go directly to the line I need, this file follows a layout.…
-
0
votes1
answer53
viewsReplacing Checkbox with a String
I need to show off "Active" or "Inactive" in the column Situation of Datagridview, how to do ? This "Situation" Column is of the Boolean type: This is the code where I fill out the Datagridview:…
-
0
votes1
answer179
viewsColorize Datagridview with comparison C#
I wonder if there is any way to color datagridview line without using a loop. I have a minimum stock and when available is below the minimum would like to paint the red line. I did it that way, but…
-
0
votes2
answers51
viewsError Backing Up Windows Forms Database
Guys are having trouble solving this problem! My application is in Windows Forms. I need to perform Backup of data through the application itself, but when I run to perform it informs me of this…
-
0
votes1
answer509
viewsCall Form2 with Circular Progress Bar while another action is executed C#
I have a question about a Windows Form call. In this application, through the button click event located in Form1, call a second Form, where in this form2 I present an animated Circular Progress Bar…
-
0
votes0
answers67
viewsUpdate value in database when changed cell value in Datagridview
I am using a local database created by a Database class and I would like that when I changed values in the Datagridview cells in the Sign Up Clients screen, that same value was changed in another…
-
0
votes0
answers154
viewsClear Fujitsu Fi-7160 buffer scanner in c#
I’m working on a Company project, C# Windows Form and I’m still a beginner on the dot net platform. I would like to know with friends by profession, if there is any way I can clean the buffer of the…
-
0
votes0
answers48
viewsHow to save and change data in the database using checkstate from a checkbox
Good afternoon, I need to save the information on condition, because when registering the patrimony I made a checkbox that represents whether the patrimony is internal or external. If it’s checked,…
-
0
votes1
answer97
viewsImage upload using Picturebox - windows Forms
This is Galera, good morning! I have a small problem and I can’t solve it, it’s the first time I’m using c#Picturebox, my application is Windows Forms. and I’m making a record using photo! but when…
-
0
votes1
answer70
viewsList items in addition to the database in Combobox in c# winforms
I have an application in C# that performs a search. For this is used a field called 'status' that is no longer a list in a combobox. I need it to appear beyond the status that comes from the bank, a…
-
0
votes1
answer139
viewsSimultaneous insertion of items and sales with C#, Windows Forms and Postgresql
Hello, I am developing a sales screen in C# Windows Forms. I’m just at the beginning of the project, but I came across a situation where I’m not sure what to do. I am using a Postgresql database, I…
-
0
votes0
answers61
viewsTextbox.Focus() problem. Repeats SQL by focusing on the field
I have a function that records some information in a table when leaving a TextBox (Leave). But when leaving, the focus returns to the first TextBox. When this occurs it directs the focus as it…
-
0
votes1
answer52
viewsC# MVC project launching Exception System.Invalidcastexecption
Dear colleagues, I am trying to learn how to develop an MVC project. But I am having some difficulties. When running the program, it runs normally, but when I want to record a product input note…
-
0
votes3
answers1275
viewsChanging pictures from a Picturebox C# - Windows Form Aplication
Boa Tarde Personal, The thing is, I’m working with Windows form and creating a simple application that has a "load" button that opened a window to select an image in the picturebox, the code looked…
-
0
votes2
answers929
viewsHow to use async/await in void return methods?
I have a problem in my application, where due to the large volume of processing, my Form lock. During my researches I found that a method async resolves this, however the functions performed on my…
-
0
votes0
answers731
viewsProblem with label printing Argox printer OS-214 Plus C#
The Argox OS-214 Plus printer is cutting the barcodes of products with 9 or more digits, making it impossible to read these codes. What can I do to make these 9 or more digit bar codes fit on the…
-
0
votes2
answers52
viewsCompare and print comma separated data
I am unable to compare with the data in the notepad. This data is inserted online and separated by; In short, enter value;description;day;month;year if (dia == "" || mes == "" || ano == "") { ERRO…
-
0
votes0
answers119
viewsProgress bar c# (windows form) using mysql data
I currently have this code in one of the formats of a developing application and would like to create a progress bar that by clicking the View button (which takes a while to fill the datagrid) would…
-
0
votes2
answers186
viewsPrevent the user from using the mainwindow window while another window is open
I have a WPF application following the MVVM standard and in a certain part of the application I show a Progressbar that I implemented in a separate view for the user and, while this progressionBar…
-
0
votes1
answer207
viewsLoad combobox C# from another in Load()
It’s been so long since I’ve worked with Winforms, I’m missing something. In my Form Load I call this method below: private void CarregarEstados() { cboEstado.DataSource = Listas.ListaEstados();…
-
0
votes1
answer271
viewsHow to increase column width in Listbox C#
Good morning, I am a beginner in C# I have a doubt, I already searched the forum and found the solution that did not work for me. Problem: I can’t enlarge the Listbox Column. COD: using System;…
-
0
votes1
answer170
viewsError opening a form inside another form [VB.NET]
I am trying to open a form within another form, but I am having a certain difficulty. The idea is that when the clicked on the button "btn_CadastroAlunos" the form "F_cadastro_alunos.Vb" is opened…
-
0
votes1
answer41
viewsMove Textbox created by code
I’m trying to move a Textbox that was created via code, down. Follow the code where I create and add the button: private DVJPetControles.TextBox txtHorarioCheckin; this.txtHorarioCheckin.TituloLabel…
-
0
votes1
answer93
viewsX509certificate2ui.Selectfromcollection is closing the application
In a particular client, when accessing the function X509Certificate2UI.SelectFromCollection the application is closing without even passing the error handling. This function opens a Windows dialog…
-
0
votes2
answers158
viewsIncorrect formatting of string to decimal during Excel import
I am making an excel import for a dataGridView and the formatting of the field type Value does not bring the comma, period and decimal place, example: In the Excel it’s like this: 995.800,00…
-
0
votes1
answer98
viewsWeb Scraping or Web Crawler isolate Node
Please, I’m trying to retrieve the following information: "value bra": (<span class="value bra">3,666</span>) <div class="ticker-financial-market" initiated="true"> <div…
-
0
votes0
answers58
viewsDifferent report and program C#/Winforms
I have an app where I have to do a drying program for a greenhouse, where I measure and humidities of a wood, I program it and send it to the machine and so on, but when I see the report of such…
-
0
votes1
answer69
viewsHow to pull data from a cell in the Data Grid?
My database data is showing up on a DataGrid and I wanted to make them go to the TextBoxs as soon as I gave two Clicks in the specific Cell for editing, how can I do it ? Detail, the database was…
-
0
votes1
answer278
viewsHow to change the function of my save button, to change
I have some data registered in the database, and I wanted to know how to change the function of inserting in the database to change the data, using a Button, I can pull the dice and throw them at us…
-
0
votes2
answers46
viewsLog datagridview data into a table in the database
Good afternoon, you guys! I have a problem with doing a data insertion presented to my datagridview. I have a table called Events, and it contains all my records, I created another table with the…
-
0
votes1
answer55
viewsWindows Forms, double click that opens a new Form
I have a table called Tournament and would like to make Doubleclick on the type of game open all the teams of that game. I have 4 buttons that represent the 4 games I have, in the 4 games I have the…