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
votes3
answers1339
viewsRelationship between data with combobox
Hello, I have a C# application using Windows Forms My question would be as follows. I have a database made in Access It contains 2 tables, a table called State, which contains Code and State and…
-
1
votes1
answer1981
viewsSave Image c#
I’m having the following mistake Generic error of GDI+. when trying to save the image in a specific directory. I am using code below. string caminho=@"\\\10.1.1.10\\sistema"; Stream myStream = null;…
-
1
votes1
answer1470
viewsPick a string from a textbox when pressing the Enter key
Is it possible to pick a string from a textbox when pressing the enter key? If so, how? I’d like you to leave examples of code because I’m pretty new to this world of Winforms...
-
1
votes4
answers630
viewsHow do I use the F2 key to open another form?
I have the following code, but this enabled the key ENTER (13) to open the form, I would like to enable the F2, I have already searched ASCII tables everywhere and can’t find the desired code.…
-
1
votes1
answer79
viewsItems not being updated
I am creating a (several) combobox at Runtime and trying to manually set a SelectedValue 'standard', but I realized that even manually setting a value that exists inside the combo nothing is…
-
1
votes1
answer225
viewsWhat is the best way to get the Radiobutton that was chosen by the user?
My program has 5 RadioButton in one of Panel that I didn’t rename and so it was Panel1, then only one can be chosen. I created a list of all the RadioButtons, after clicking on a button I tried to…
-
1
votes1
answer183
viewsSort nodes from Tree view
In my Tree view I have several child nodes. All nodes are created with numbers as these identify a different file and are composed by date. How could I sort these nodes numerically? I mean, like:…
-
1
votes1
answer1484
viewsApply filter to Datagrid populated with List without changing the Datasource
It is possible to apply filter to a DataGridView which is "filled" with a List, without altering the DataSource grid? Example: When I have a grid that uses a BindingSource I can apply a filter, like…
-
1
votes1
answer987
viewsProgram Stopped Responding - c# Windows Form
I’m doing a c# program that basically queries (large) a Mysql database. When I run the program via Visual Studio, everything goes perfectly. But when I do it by the executable, when the button that…
-
1
votes1
answer50
viewsIsolatedstoragesetting in Windows Forms?
I’m used to using for Windows Phone, so: using System.IO.IsolatedStorage; public void putString(string key, string variable) { IsolatedStorageSettings iso =…
-
1
votes1
answer61
viewsC# - Do not show form being mounted for the user
Hello. In excel VBA has a very cool feature. Application.Screenupdating = False Application.Screenupdating = True This prevents showing the screen being mounted to the user and show only after all…
-
1
votes2
answers69
viewsRecursive problem when integrating files
I am doing a recursive integration of several files,when running with only one file it integrates normal, but when I try to integrate several files it gives this error. {"An error occurred while…
-
1
votes0
answers148
viewsSmart Screen blocks my application
When publishing a Visual Studio application using Clickonce In Windows 7, when installing or updating, the Security Notice below is displayed which is not a problem, but bothers. Already in Windows…
-
1
votes1
answer453
viewsText inside a picturebox
I want to do it in PictureBoxes for when I pass the mouse she show the message I wrote. How can I do? Remembering I use the version Visual Basic 2010…
-
1
votes1
answer65
viewsControls Do Not Appear in Windows 10
After upgrading to Windows 10, the components are missing in my forms, only the cursor appears in the field. I’ve changed colors from the background, from the sources, but it didn’t work.…
-
1
votes1
answer185
views -
1
votes2
answers75
viewsCan I access a Web Api from Windows Phone?
I developed an Api that communicates with my database and put it on IIS. Testing in Windows Forms applications, the search of the api data works normally, but when I try to run it inside the Windows…
c# winforms api visual-studio-2013 windows-phoneasked 9 years, 1 month ago André Morais Martins 367 -
1
votes0
answers78
viewsBlock coding
I’m trying to develop an application of Block coding. I found it difficult to develop this type of application. With the events below, I can identify when there is a collision between other controls…
-
1
votes1
answer331
viewsCheck that framework 3.5 is installed on the machine
I have to perform a function in C# to check that framework 3.5 is installed on the machine but not using Registry.LocalMachine.OpenSubKey("Software\Windows\Microsoft.NET\..."), because this function…
-
1
votes0
answers52
viewsHow to Leave a Semi-static Component
I created a trackBar with 2 Thumbs by user control , but in the form.design if I drag the component changing the width , mess the trackbar , I wanted to take this option to drag to side , only…
-
1
votes1
answer1302
viewsOpen external application as a child form in C#
I am needing to call an external application by my current application, in which this external application is being opened outside of my application and I would like it to be opened as a child form…
-
1
votes2
answers1778
viewsTrigger event when changing value of a textbox C#
Guys, I’m starting in c# and I’m having a problem. I’m working with Windows form. I’m using the Textchange event in a textbox, and with each key pressed in the field it triggers the event. I need…
-
1
votes0
answers402
viewsPick up records on Datagridview and play on a label
Guys, my idea is this, I want to pick up records on a Datagridview and play on five Abels. Each one corresponds to a command, and these boxes will change to another record once clicked. Example:…
-
1
votes1
answer59
viewsIs it possible to create individual events for the instances of a form in C#?
Suppose I have a customer registration form: var frmCadCli1 = new frmCadastroCliente(); And I just called that form: frmCadCli1.Show(); When I call this form, immediately before it is shown the…
-
1
votes3
answers1866
viewsBringing Winform Window Forward
There are some parts of my application that need feedback from the user, such as asking if you want to update, or on the system activation screen, but sometimes these screens, or messagebox, are…
-
1
votes0
answers149
viewsForm creation sometimes lags behind main form
Person, I am creating my children in the following way. BuscaUsuario _chld = new BuscaUsuario(); _chld.ShowDialog(); _chld.Dispose(); It turns out that if the user presses alt+tab or for example if…
-
1
votes1
answer224
viewsParameters in the Query
When mounting a Query using Addwithvalue. Even if right, the return is not as expected. In the example below the return is Zero var query = "SELECT nome,usuario,email,administrador FROM GSCUsuarios…
-
1
votes1
answer529
viewsError 500 when trying to give a post from a JSON to the web service C#
I have a WINDOWS FORM C#application, where I communicate with a web service, when I try to send a very big data from my application to the web service I get error 500. I can do a POST on any other…
-
1
votes0
answers22
viewsGet value from an html Windows Form c#
Hello I would like to take this value, it is a class inside the other, I am trying this code but it does not return the value. private void button1_Click(object sender, EventArgs e) { string s =…
-
1
votes1
answer63
viewsChange the culture of Monthcalendar
It is possible to change the object’s date format MonthCalendar from a Winforms application? It occurs that the crop selected at a customer’s station is Polish and this is causing error in handling…
-
1
votes2
answers73
viewsHow do you get the time zeroes out?
I am using a Label to receive the time of a video. The time I receive from the video is a double which comes in milliseconds, for example: 1555 = 1,555 sec. When I convert to TimeSpanthe label…
c# winforms visual-studio-2015 type-conversion conversionasked 8 years, 5 months ago Caio Henrique Nespolo 45 -
1
votes0
answers848
viewsUpdate cell value in Datagridview in C#
Hello! When clicking a button, I need you to update the value of a cell in the datagridview. follows the code I tried but didn’t work. private void btnAcesso_Click(object sender, EventArgs e) {…
-
1
votes1
answer76
viewsHow to make Usercontrol fill all Tabpage
I am placing a Usercontrol inside a Tabpage. When not Maximized, the Usercontrol fills all Tabcontrol However, if I maximize the screen, there is a space on the right. I used usercontrol winforms…
-
1
votes0
answers88
viewsHow do one form affect another form in C#?
I’m creating a project that will have certain settings like notifications. These notifications when chosen to appear on the taskbar will affect other Rms. Because the system is a call center when an…
-
1
votes1
answer75
viewsDifferent Windows (Xaml) for Landscape and Portrait
I’m programming in C# using Visual Studio Enterprise 2015 apps for Windows Phone 8.1. I was able to make a simple application, a calculator, but I would like to know: how do I use a shaman for the…
-
1
votes3
answers726
viewsHow to identify a key in Textbox?
I would like to create an event that would only be started when the user pressed "Enter" inside the Textbox, but how do I identify when the user pressed this key ?
-
1
votes3
answers1099
viewsHow to keep the default Textbox look changing the value of the Readonly property?
If the value of the property ReadOnly of a TextBox for false means that I can change the content. However, when the value is true content can no longer be changed, however, when we change the value…
-
1
votes1
answer155
viewsUsing Dynamic Connection String in Asp.Net Webforms and Windows Forms
I’m working on a project with 4 layers (Banco, RegraNegocio, Webforms and Windows Forms). I made the following references: Webforms > Regranegocio > Banco winforms > Regranegocio > Banco…
-
1
votes1
answer749
viewsThe various part identifier "System.Data.Datarowview" cannot be associated
Try { if (cmbFavorecido.SelectedValue != null ) { txtID.Text = cmbFavorecido.SelectedValue.ToString(); cn = conexao.ConectarSqlServer(); cn.Open(); SqlCommand cmd = new SqlCommand("select…
-
1
votes2
answers121
views2 Datagridview when clicking the first play the record in 2?
I’m using Winforms, I already have one Gridview populated, now I need that when the user double-click on a given line, he removes this record from the first grid and plays the same record on the…
-
1
votes1
answer77
viewsBackgroundworker or Async
I need to develop a C# program where I will have slow processes. I have little experience with Winforms, I have more experience with WEB development. I am with the following doubt, the…
-
1
votes1
answer60
viewsGiving Ctrl + f in webbrowser by code
They know some way to give Ctrl + f something by the code in an instance of Webbrowser?
-
1
votes1
answer122
viewsHow to embed a DLL into a winForms project
I need to incorporate a reference to a winforms project. I clicked on References, selected the reference and clicked on properties, then changed the property Embed Interop Types to true. When…
-
1
votes1
answer105
viewsBackgroundworker does not receive selected Combobox value
I have an object Combobox and I am creating a Backgroundworker to add these objects to my database. Without using the Backgroundworker I can catch the selected object but when I use the…
-
1
votes1
answer303
viewsChange the Formborderstyle property to None without losing the Sizable functions in C#
Hello, I’m a small problem, because I need to change the design of my Form related to your border, and the way I found in doing this was changing the property FormBorderStyle for None and making the…
-
1
votes1
answer264
viewsHow to select more than one txt file with C#
I’m writing a C# application that needs to receive more than 1 text file and display the Filename of them in a MessageBox individual for each. My question is in this import of the files, I was using…
-
1
votes1
answer44
viewsCmd Builder similar to the look of All
Hello to everyone I would like to know how to do that when I click a button my program compile Cs files and more to make one . exe and run as the visual.
-
1
votes1
answer759
viewsHow to make a label receive a text from the database
Hello I know the question is very simple, but I’m having a difficulty, I have a radio button and I would like his text to be received from an SQL Server database through a SELECT. I’m using the…
-
1
votes1
answer65
viewsHttpwebrequest.Getresponseasync is limiting to 2 simultaneous calls
I own an application where clients can download packages that are files . zip with an average of 1Gb. When starting a download, a new thread is created that will make the request and via stream…
-
1
votes2
answers622
viewsHow to Popular a Treeview with C#System Directories and Files
In my application (Windows Forms) I have to make a tree of directories for the user to search for a (or more) file(s) within his system. I saw on the Web how to make this tree in a Microsoft…