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
-
6
votes1
answer7802
viewsVoice recognition in Pt-BR
How do I use Speech Recognition when my OS(Windows 8 x64) is in En-BR? I want to use commands in English. I’m using the following code: private void Form1_Load(object sender, EventArgs e) {…
-
6
votes3
answers1233
viewsHow to login to desktop application via web application?
I have a web application developed with ASP.NET MVC and log in by storing the data in Session. I have another application, however desktop, that performs some tasks that cannot be done on the web,…
-
6
votes3
answers178
viewsHow to capture a Nullreferenceexception?
When I test my application, it returns some specific data, but when the requested data is null, this untreated exception error appears I tried to capture him but I think I’m making a mistake. How…
-
6
votes1
answer1213
viewsInstall app made in Visual Studio on client machine
I created my first Windows Forms application and will install it on the client’s machine. How should I proceed? Just the .exe and the database?
-
6
votes1
answer98
viewsWinform - Tabcontrol bug with Metroframework
So I’m having a little problem when I use Tabcontrol customized by Modern UI Metroframework. It turns out that a bar appears on the upper left (scroll bar) and only disappears if I click on it. Ex:…
-
6
votes3
answers364
viewsDrag and Change Position of a Groupbox at Runtime
I have a groupbox that I wish the user could drag and change the position at runtime, someone imagines some way to do this?
-
6
votes2
answers1906
viewsConvert and save photo in BD
I am working on a project where I have to save some photos. So I am studying the best way to accomplish the task. I thought about saving in the database, because these photos will be accessed both…
sql-server asp.net-mvc-5 winforms image-processingasked 7 years, 6 months ago Thomas Erich Pimentel 3,059 -
5
votes4
answers3081
viewsLimit number of characters per line
It is possible to limit the number of characters per line of a textbox multiline using Windows Forms C# and . Net 3.5?
-
5
votes1
answer560
viewsReport progress to the interface of an asynchronous method in C#
I have an app Windows Forms. This application will perform some processes that take some time to execute, so I would like to run them in parallel. Follows a little of what I’m trying to implement.…
-
5
votes2
answers1991
viewsChanging the Culture of the System
Developing a system for a Bolivian company, in a windows with Culture pt-BR, some objects like datetimepicker has its internal components according to the language in which the system was installed.…
-
5
votes1
answer1710
viewsConnection error
I am creating a Windows Forms application using C# and am having a problem connecting to SQL Server CE 4.0. The application database is in the folder AppData of the logged-in user. To get the folder…
-
5
votes1
answer1258
viewsHow do I place a Password field in a Messagebox?
How to enter a field that I can put a password into MessageBox. I could call one form, but wanted something simpler and faster, I would like that when I click on a button it provides a field to put…
-
5
votes2
answers1527
viewsHow do I close/close a msgbox via code?
I tried to find out how I could do this, but I did not find anything clear. I want to know if it is possible to close the first msgbox, shortly after 2 seconds. Follows the Code: MsgBox("Iniciando…
-
5
votes1
answer1334
viewsHow to create a window without using the GUI builder?
I’m starting to study C# and just like in Java, Ides provide resources that make it possible to build Guis easily by dragging components. The netbeans has a powerful construction tool where it is…
-
5
votes1
answer1236
viewsHelp - C# how to update combobox? type autocomplete
First I am developing a C# system and using Sql Server as a database. I would like to accomplish the following task: When something is typed in the combobox I update the itself, by means of a search…
-
5
votes2
answers3902
viewsC# - How to remove the Maximize bar, Minimize, but only keep one Close button?
I created a graphic component and wrote a command line that removed the control bar from the graphic component, but all the buttons are gone. Is there any way to just let the Close button? Or I’ll…
-
5
votes1
answer283
viewsFill Combobox with Dapper
I’m using a component of combobox with the Dapper, but I’m not able to fill the combobox properly, follow code excerpt: LookUpEdit ctlControle = (LookUpEdit) pr_Controle; var parametro = new…
-
5
votes3
answers1590
viewsHow to add or subtract a digit in the Textbox via a button?
I want to add to a number in a TextBox generating a digit when the user clicks the " + " button and subtracts when he clicks the " - ". For example: the random number was 2. If I click on +, 3…
-
5
votes2
answers4914
viewsHow to delimit a string field in c#
I have a string field for example address in the code. This address field receives a 60 character data. What I want is to delimit the address size so that it only receives 30 characters and not…
-
5
votes3
answers269
viewsHow to format the name of an item in a listbox?
I have a project where I have to send files over the network to a server. When I click on the "add" button a box opens for the person to select the files they want to send and adds to a list that…
-
5
votes2
answers2900
viewsCustomize Messagebox in C#
I got the following MessageBox MessageBox.Show("Deseja iniciar a forma automática?", "Atenção", MessageBoxButtons.YesNo, MessageBoxIcon.Question) I can personalize it? Instead of being the buttons…
-
5
votes3
answers219
views -
5
votes1
answer1276
viewsEncrypt App.Config
I’m trying to encrypt my Connection string, that’s in my app.config. After reading some forums, I saw that 2 methods need to be created: class proteger_app { public static void Criptografar() {…
-
5
votes2
answers226
viewsWhich . NET should I use?
I will start the development of a program with C# using Winforms (Basic Calendar with Mysql) and it is my question which framework utilise. This program can be made available on other computers and…
-
5
votes2
answers190
viewsSystem modularization
I’m developing a C# system with Winforms from Livestock Control to a farm, and will communicate with a scale to improve the weighing process. Some of the features are (Bill entry, vaccination,…
-
5
votes1
answer2397
viewsMysql connection problem - Connection must be Valid and open
I’m having a problem at a Windows Form in C# using Datagridview. The following is done: by clicking on a datagrid line the information of the respective line, saved in a database, must appear in a…
-
5
votes2
answers76
viewsForeach at a checklist in c#
private void Checked() { foreach (ListViewItem listItem in listView.Items) { if (cb_selectAll.Checked == true) { listItem.Checked = true; } if (cb_selectAll.Checked == false) { listItem.Checked =…
-
5
votes1
answer281
viewsIs Winforms dead now?
Windows Forms has been on the market for approximately 17 years since. NET Framework 1.0 released in 2002, and still remains one of the major limitations of running only on Windows, as its name…
-
5
votes1
answer292
viewsIn Winforms how do the datepicker cursor walk when typing the date?
The question is about Winforms' Datetimepicker control. When we type the date, instead of choosing the calendar, the cursor does not walk. That is, we typed the two digits of the day, and instead of…
-
5
votes1
answer645
viewsMask for formatting Textbox
I was practicing coding on a project like Winforms, A question soon arose: How to apply a phone mask on a Textbox. So the first thing that popped into my head was to use the event Keypress of the…
-
4
votes2
answers1930
viewsC# - Path to execution
I am making a Auncher, however I would like to leave the files with a "fixed" path, the Auncher is in the same folder of the file to be started, but I do not know how I could create a "middle way",…
-
4
votes2
answers599
viewsHow to update backgroundWorker.Reportprogress() through a class in another project?
I read a text file that contains data from another database, upload that data line by line to a class, edit the required fields and then save it to the new database. This insertion processing…
-
4
votes2
answers1874
viewsHow to put buttons/titles with different design/style in C#?
In C# is there any way to put for example buttons with a different design, or the title with a different style? I want to put my program more "Fancy".
-
4
votes1
answer772
viewsHow to always leave a form behind?
I’m trying to always leave a form underneath the other forms, no matter if the user clicks on it, it should always be below, but usable, something similar to the desktop, and that’s the problem, I’m…
-
4
votes1
answer2652
viewsWeb Api Client in Windows Forms
I am making a client using Web Api. My site has the server function of the Web Api. I found this reference from Microsoft…
-
4
votes4
answers4106
viewsInstantiate class as another class’s Property
I have two classes created within the same namespace, being: public class Pessoa { public int idPessoa { get; set;} public string nome { get; set;} } public class PessoaFisica { public Pessoa pessoa…
-
4
votes1
answer2344
viewsChange style of Windows Forms window
How do I change the style of my window to a Ribbonform. Being that in matter of colors is already quiet. See the image: And now how I use the method CreateParams to change the title and center it…
-
4
votes1
answer1746
viewsProgress and Time Bar
I would like to know what is the best function in C# that returns with the remaining time when the progress bar reaches the end. I tried this: int restante = Math.Min(progressBar1.Maximum,…
-
4
votes1
answer133
viewsError in database query with Linq
Good night! I am trying to perform a query in a mysql table, using English, and present this result in a gridview for the user. I have the table below: I’m not searching all columns of this table,…
-
4
votes2
answers2764
viewsWindows Forms Start with Operating System
How do I make the user have the option to choose whether the system (system Tray c#) will start with the OS or not through installation in Wizardsetup (Visual Studio 2010)?
-
4
votes1
answer2698
viewsC# - Import configuration file (.ini)
How I import an ini configuration file so that it is loaded and returns with a key value: Example: [version] code=0.3 the program will load the ini file and I select the section (in case it is…
-
4
votes3
answers2598
viewsHow to know which component is in focus?
I am making a form (Windows Forms) in C# and I would like to know how to get the component that is focused. In my form there is a SplitterPanel and within it, in the Panel2, has a TabControl with…
-
4
votes1
answer709
viewsHow to print the entire string if the length exceeds the page
I have to print one string which may vary in size. What I need is that if this string does not fit on the page the remaining text is printed on another. I know that for this I need to do something…
-
4
votes1
answer162
viewsList non-visual component
I have tried several means to list all the non-visual components of a form, such as: OpenDialog, ImageList, TableAdapters and etc. but without success. To find the controls on the screen, I managed…
-
4
votes1
answer540
viewsHow to make Blur effect on button?
Is there any way to 'Blur' effect on an image button using C# (Windows Forms)? I know this is possible with WPF, but I have no way to change it now. If not possible, there is something that gives me…
-
4
votes2
answers509
viewsHow to read the width and height of a physical image file?
How to get the width and height of a physical image file?
-
4
votes2
answers808
viewsHow to use Filter in Folderbrowserdialog
I would like to know how do I put a filter on certain files using c#. Good is more or less like this, I am making an application in c# that should open some types of files ( in the case .frm ), in…
-
4
votes2
answers622
viewsComponent for HTML text formatting
I am looking for a component where the user can type the desired text and do the formatting of the text as well as understand. Something like that from ONLY or the image below. Does anyone know any?…
-
4
votes2
answers940
viewsDoubt how to call several different images
I’m a beginner in C#, I’m using visual studio 2010 and I have a project to do and an idea came up, but I don’t know how to put it in code. I would like to put 2 combo box ( ITEM and COLOR ), and an…
-
4
votes1
answer180
viewsUpdate Controls in Custom Toolbox Control
I created a project "Windows Forms Toolbox Control" and customized some controls: I created a custom gallery so that all programmers in the company can install Toolbox and make use of the controls:…