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
votes0
answers26
viewsError recording video and audio with Accord.Net - Winforms C#
I am working on an application that should record video and audio through a webcam. I was able to make the program run only with the video, but when trying to add the audio I am getting an error. I…
-
0
votes1
answer17
viewsWhy doesn’t my Progressbar increase values?
I have an application in Winforms where I have Tasks and in each task I implement statically a value there progressBar, I would just like to know why it does not show this evolution in winForms Ui.…
-
0
votes0
answers22
viewsPrint elements of a data grid view, using C#print Document
Hello, good afternoon ! I am doing a small project of registration and sales of products and I have a problem in my sales form. Initially the form searches the data of a product that is in the…
-
0
votes1
answer17
viewsRow position and column that was clicked inside the Richtextbox
I have a simple application that only reads a file and returns what is in it within a richtextbox. The Point is when I click on the inside of the richtextbox, I would have to turn to the position of…
-
0
votes0
answers4
viewsResponse time of one or more actions C#
I’m developing an app in windowsforms in order to create a personal assistant and I’m having a hard time limiting her action. The problem is that when I start the voice identification process:…
-
-1
votes1
answer844
viewsData does not appear in datagridview, even if it is a populated datasource, why?
I’m trying to capture some information from the database, filter it and then run validation tests on each of the returned lines. Then I try to take the lines that failed the test and insert them…
-
-1
votes2
answers457
viewsCheckbox concatenating string several times
I wanted to click on checkbox and then register, save the default value and service name in the database (description). However, the description is a problem for me, because when the user marks and…
-
-1
votes1
answer4402
viewsCreate C#Folders
I’d like to do the following. Create three folders inside each other in "c:/". Their names shall be designated by textboxes and at last, create a file .doc taking the values of textboxes. It is for…
-
-1
votes1
answer489
viewsHow to know if a System.Timers.Timer is running?
I need to know if a timer is running, in case you’re not, I’ll start it,
-
-1
votes1
answer306
viewsGet list of items from a listbox
I am creating a windows form in C# with a listbox and I would like the information saved inside this listbox to be saved in a list to be used in another class.
-
-1
votes2
answers144
viewsError while compiling program
I have these mistakes, being that it’s working! I added the reference, it’s the right BLL folder on the way. I’ve tried and searched for everything but I don’t understand what I have to do. I’ve…
-
-1
votes1
answer33
viewsList box detects that iteam is being selected
I want when I double click on the listbox item, when start it do an action, when I double click on any other item it do another action. Code: //btnWhenClicked private void btnWhenStart_Click(object…
-
-1
votes1
answer210
viewsSkype bot detects when receiving message
Here’s the thing I’ve been looking for how I can make a bot that responds when I receive a message from someone, I found a tutorial but I couldn’t get the bot to respond despite the bot responding…
-
-1
votes1
answer905
viewsTitle bar text in the center
The Form title bar text in my Visual Studio 2015 is on the left by default. How do I make it centralized by default? Grateful.
-
-1
votes1
answer49
viewsReverse checkbox c#
I have this code. You’re reading my checkboxes from top to bottom when they’re all checked. But what I needed was, when he started reading, I wanted him to start reading from 2.9.15 up. Not 2.9.16…
-
-1
votes1
answer198
viewsHow to make a background responsive in c#?
How to relate background_image to window size? Example: Sets my background image, but by changing the window size (minimizing) the image becomes "incomplete", and does not follow the edges acting so…
-
-1
votes1
answer78
viewsProcess.Start does not load executable dependencies
I created a code that opens a program, but the program needs the DLLS/Folders - in the folder that is located, so when I run it from the error, it seems that it is not getting the DLLS/Folders (if I…
-
-1
votes2
answers1046
viewsHow to Save Date, Time, Minute, and Second in C# WINFORMS and SQL SERVER?
I created a sales system, and I need you to record the date, time, minutes and seconds. The way I did, it only records the date, and the rest comes 00:00. Below is the code of what I did: //evento…
-
-1
votes3
answers232
viewsDifference on screen Windows Forms C#
I have a problem with Visual Studio > Windows Forms. When I enable the classic Windows theme and create a project in C# the screen is inside what I want, however, when enabling Aero mode, the…
-
-1
votes1
answer97
viewsError saving form data to DB with c#
Is my registration logic correct? Because I am not able to save the fields in the Database, follows below the button code: private void cmdSalvarGuiche_Click_1(object sender, EventArgs e) { if…
-
-1
votes3
answers176
viewsTooltip in a Listview in c#
I have a ListView with several CheckBox created through the database. Wanted to CheckBox as I passed the mouse over, I opened a tooltip with various information from that field. I’ve tried to do it…
-
-1
votes2
answers256
viewsConfiguration file for C# Winforms
Is there any way to create a file where I can set for example a color with the name 'Background' and add the value '#fff', then use it in all my Forms, similar to a style of CSS, so that if I need…
-
-1
votes2
answers939
viewsI can’t find a resolution for that mistake
I have a C# program and it is giving MANY bugs different, I’ll send everyone here, as follows: Code Error: Description: So come on. internal AcessoAdd() { InitializeComponent(); } Error:…
-
-1
votes2
answers199
viewsMultiline textbox printing last item only
I’m using TextBoxt Multiline to "issue" the report in the system itself. Ta printing, however, appears the following message: "System.Windows.Forms.Textbox" and then the data. public Formulário() {…
-
-1
votes1
answer54
viewsGenerate txt with standard format
all right? I need to generate a txt file with a default format as below: D00000002 200014002154129 $9997 7720 0000 0012 * 12/19 *CLARICE LISPECTOR *0014-00 215412-9 * %B9997772000000012^CLARICE…
-
-1
votes2
answers211
viewsCapture mouse event
Hey there, fellas! I’m developing a side menu that contains C# submenus, but I can’t find an effective method to display the submenus that are inside a panel. I tried with Mousemove event, however I…
-
-1
votes1
answer219
viewsOpen a minimized browser in Windows Forms
I am making an application in Windows Forms and I have the following problem, when the user click a button of form, it will have to maximize a web page that is minimized, ie bring the browser window…
-
-1
votes1
answer605
viewscheckbox in datagridview
I am developing an application in c# that makes impression of labels, for this to happen I use a datagridview, which brings the lines I need to print, now I need to put a checkbox to select the line…
-
-1
votes3
answers186
viewsHow do I trigger confirm the form via enter?
I’m doing a C# program that plays what’s inside the TextBox into the Grid, But I’m only getting it through a button. I want to know how to make the supplier user the first data, press enter, skip to…
-
-1
votes2
answers107
viewsNumericupdown lock down
How to block or control the "Down" state of the Numericupdown component of Windows Forms ? Ex: First time the user makes a "registration", he can Add or Remove the Quantity, in the second…
-
-1
votes1
answer268
viewsSetting cursor at string position within textbox
I’m trying to make a mask for a textbox manually, and I’m trying to imitate the Windows calculator, where when the user writes 1000 the code automatically puts 1.000 and when I give one…
-
-1
votes1
answer105
viewsList local windows groups with Forms c#
Good users! I’m trying to list all the local windows groups with Forms c#, but I was not successful. I want to list the groups and from there select and include in the user’s creation. thank you in…
-
-1
votes2
answers148
viewsHow to create a "Line Counter" in a texbox
I wish I could count the lines Visual Code, Atom or any such publisher. Follow an example image Details: My project runs in c# form, one of the Forms would have a txtbox with the line counter. I’ll…
-
-1
votes2
answers331
viewsDay count of a date
I needed this parameter to count the days until the date I type for example (31/12/2016) as shown in the attached image, but it is only returning the number of days that was typed in the case 31…
-
-1
votes2
answers79
viewsWhen selecting a certain value in the combobox, insert values in another
I would like to enter values in combobox 2 depending on the choice in combobox 2. I have this code but it does not work or insert the desired values in the combobox 2. private void…
-
-1
votes1
answer65
viewsHow to disable hotkeys in a textbox?
I have a kind of control System.Windows.Forms.TextBox populated in my form and it had some validations, as allow me to type only numbers, however I realized that if I use the shortcut key to paste a…
-
-1
votes1
answer29
viewsLimit the number of characters in a textbox
Hello, I am trying to "create" a system of "captcha" for my program, but it sometimes exceeds the limit of the textbox, and in this case the user would not know what comes next, I researched a lot,…
-
-1
votes1
answer940
viewsNaval battle program c#
I have to make a naval battle game for college using windows Forms in visual studio, the problem is that I could not understand the logic to generate naval battle maps, I can not think of a way to…
-
-1
votes1
answer21
viewsHow to save color changes to a Datagridview line?
I need to save the color changes the user makes on the datagrid. Currently the colors are exchanged according to the user’s selection using the following code:…
-
-1
votes1
answer38
viewsMake panel invisible when opening Form
My program is opening a form2 inside a panel in Form1, I want when I close this form2 my panel is invisible private void button1_Click(object sender, EventArgs e) { panelPrinc.Visible = true; Form2…
-
-1
votes1
answer4231
viewsWhen using Boleto.NET is it necessary to assemble the shipment file manually?
In a financial system already built by another developer the Boleto.NET library was used to generate boletos Itaú. I would need to add support for Santander billet generation, but I can’t figure out…
-
-1
votes1
answer237
viewsChange expression color starting with@
I need to create a winform to change the color of expressions that start with '@'. For example: nothing @expresso nada The @expression needs to be another color. The text will come from the input of…
-
-1
votes2
answers121
viewsUPDATE SQL in C# (Windows Forms)
I am trying to format a standard date as there are dates with different formats as print below. MM/dd/yyyy | dd/MM/yyyy | dd/MM/yyyy hh:MM:ss I intend to change these dates to default as dd/MM/yyyy…
-
-1
votes2
answers68
viewsShow how much it costs in total
A program in Windows Form that I am creating , I want to click on the check of the chosen foods the full bar should show how much is getting, but always appears blank what should I do? Follow the…
-
-1
votes1
answer27
viewsCall Project Progressbar winforms in test project in the same Software
Friends, I have 2 projects in the same Software, 1 of these codedUI and another with winform containing a simple progress bar. It was carried out the import in the test project of the reference and…
-
-1
votes1
answer36
viewsHow To Make My Save, Change My Database Data
Guys, I’m trying to make a Button that normally Salva, also become a Button that saves the changes made... It’s all the same form and the same Button, for example when I click two DataGrid he brings…
-
-1
votes1
answer143
viewsChanging Mysql data with C#
I am trying to change data saved in my BD, however by having a certain error, if someone can give a light code I’m using to save the changes: private void btnSalvar_Click(object sender, EventArgs e)…
-
-1
votes1
answer92
views -
-1
votes2
answers212
viewsC# How to make a string function execute active command?
I’m developing a C# project and I’m stuck in a mistake when it comes to moving from one form to another. The main form is called Main and the new Form1... well... I can send a variable string to…
-
-1
votes1
answer266
viewsC# - Form track Panel size
Hi, I would like to know how I make the open form inside a Panel to follow the Panel if I resize the main form. Form2 frm = new Form2(); frm.TopLevel = false; frm.Size = panel1.Size;…