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
votes1
answer4456
viewsComponent to select files or directories
What is the name of that component in Visual Studio / C# that selects the directory and takes the file path?
-
1
votes2
answers2761
viewsDo not display null value (01/01/0001) of a Datetime in a Datagridview
My DataGridView has some fields DateTime worthwhile null (01/01/0001). How do I do not display these values, leaving the field blank? Currently: How I’d like you to stay: I’m using WindowsForm, C#…
-
1
votes1
answer2976
viewsInsert data into the database via a C#Ridview dataset
I have a form in C#: On this form there is a textbox where I enter the day of the week and a datagrid where I type in the hours. I put a column call time, with DataGridViewCellStyle { Format=t }…
-
1
votes4
answers362
viewsC# e.Hasmorepage is in Eternal Loop
I am creating a system for printing labels as follows the code: private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { Image newImage; Point ulCorner; int x = 0; int xn = 0;…
-
1
votes1
answer601
viewsDisable checkbox checked in listview
I added in my ListView the checkbox his pattern "Listview Checkboxes", when he is checked I need to disable the same so that it can no longer be "check", I tried to make the checkbox be as Enable…
-
1
votes1
answer1885
viewsIs it possible to change the template/graphical interface of a form in Windows Forms?
I’ve been researching about and the results that I was able to just turn to WPF instead of using Winform, but I still have doubts and I believe it is possible to change the template of the software…
-
1
votes2
answers665
viewsDatagridview with columns of different tables of a Dataset
I imported 16 tables from mine MSSQL in a DataSet and made all the necessary relationships. I need to generate a report on a DataGridView (or other tool) with columns specific to several tables. How…
-
1
votes1
answer85
viewsHow to add groups and items to an Objectlistview?
Good afternoon Personal. I’ll rephrase the question and try to express myself better... I am using the `Brightideassoftware.Objectlistview , is not the traditional Microsoft Listview - Visual Studio…
-
1
votes1
answer80
viewsIs it possible to integrate a windows Builder into Xamarin for Mac?
I’m currently using a Mac, but would like to continue using C# and create new GUIs, since I didn’t create much. So I looked for a solution to use C# for the Mac, and found the Mono framework, which…
-
1
votes1
answer141
viewsHow to import a cursor. cur in C#
I have a problem loading a cursor file in Windows Forms. Type I put the files in the folder but the program notes that the course file is not valid or is corrupted. But I really need these cursors…
-
1
votes2
answers2143
viewsFilter Datagridview by Interval Between Dates in VB.NET
I’m new to programming and I’m finishing a job, but I have a problem that I’ve been facing for weeks and I haven’t been able to solve. I created a simple system that registers the Oss (service…
-
1
votes2
answers406
viewsWindows form c# identify which Bindingnavigator button was clicked
How to identify which option (Add new, Delete and etc) was chosen in a BindingNavigator and which method to use to capture the click.
-
1
votes1
answer62
viewsMemory Leak in Video Player
I’m implementing an application in C++/cli and Winforms that features videos continuously. During execution, when videos are loaded the memory increases and is released later. I’ve noticed that…
-
1
votes1
answer287
viewsHow to retrieve the click on an array of buttons
I’m making a minefield, so I have to add an array of buttons to a panel (to be the houses). I created the button array and added each[x][y] button in a panel. But I don’t know how to retrieve the…
-
1
votes1
answer112
viewsPrint matrices with line break
I want to print the various variables of a List. I’m trying to use foreach but it hasn’t worked. Variables are written over each other instead of a line break. Look at my code in the event…
-
1
votes1
answer6384
viewsAdding values present in a List
I’ll explain what I want to do. I have this List: public static List<Cliente> Clientes = new List<Cliente>(); public class Cliente { public string Nome { get; set; } public…
-
1
votes1
answer302
viewsInsert tab when printing
I have a code to print each variable of a List. I am trying to insert a tab into these variables. Take a look at my code that is in the event printPage: int charactersOnPage = 0; int linesPerPage =…
-
1
votes1
answer968
viewsHow to capture file size from System.Drawing.Image?
I have a method to which I pass the parameter System.Drawing.Image and the percentage that this image will get after the resize. public static Image ResizeImagem(Image imgFoto, int percentual) {…
-
1
votes1
answer806
viewsProcess does not close in task manager
I have the following code snippet to close my winform application: private void frmAgent_FormClosing(object sender, FormClosingEventArgs e){ if (MessageBox.Show("Deseja realmente fechar o sistema?",…
-
1
votes1
answer1277
viewsHow to place image and text in the same Datagridview cell
How to place image and text in the same cell of Datagridview C#? I need both to be displayed in the same cell.
-
1
votes1
answer1101
viewsUnknown supplier
I finished an application on the C# Windows Forms platform and want to publish it on a website, but the application needs admin permission to connect to the server and download to a Windows folder.…
-
1
votes2
answers766
viewsRemove objects from memory
I have a DataGridView in my project and a timer with refresh 5 seconds. I realized that the system was overloading the memory, as each time I listed the previous data remained in memory. This is the…
-
1
votes1
answer241
viewsStarting the Windows Media Player component in fullscreen
When the application with Windows Media Player opens (Windows Forms) always have to press the button fullscreen to maximize the video that is running and would like it to start already in full…
-
1
votes1
answer370
viewsSqlcommand and Executereader parameters
I can’t get bank values and direct a form according to what "profile" is in the users table, if I take the part of ExecuteReader, works the login, however, I need to check the user profile, my code…
-
1
votes1
answer656
viewsCut an image every 300 pixels high
I’m developing a clipping report generator where I need to insert images captured from web pages. Most of the time it is necessary to cut them and to distribute them on the PDF pages. How do I…
-
1
votes1
answer388
viewsHow to save scrollbar position?
I would like to get the position of the scroll bar DataGridView, so that after giving a refresh, remain in the same position.
-
1
votes1
answer8181
viewsHow to make a button with rounded corners in C# (Winforms )
I’m trying to customize the appearance of a button, basically I’m trying to customize the edges, background, font color and round the corners of the button. I was able to do everything except round…
-
1
votes1
answer672
viewsSum selected values from a checkbox
I am developing an application for a beauty salon, I am using the checkbox component on the following screen: However, when selecting a checkbox and then deselecting, the program performs the…
-
1
votes2
answers264
viewsEnable Keypress in Panel C#?
I have an app and it works like this. I have a code to create TextBox dynamically when the maximum amount of letters in the TextBox1 for 2. Here is the code: private void VerificaTextBox(int…
-
1
votes2
answers2831
viewsFormat date (dd/MM/yyyy)
I have here a column in a Datagridview with the name "DBO" (date of Birth) which has the format month/day/year, I wanted to change the style of the date to dd-MM-yyyy but I’m not getting it.…
-
1
votes2
answers196
viewsError closing Forms
I have the following code snippet to close my application. private void frmAgent_FormClosing(object sender, FormClosingEventArgs e) { if (MessageBox.Show("Deseja realmente fechar o sistema?",…
-
1
votes1
answer369
viewsGrab project URL
Hello, I need to get the url where my project is (wpf). The reason is this: there is an image upload inside the Image folder (which is in the Image File of my project) and I need the image File to…
-
1
votes3
answers228
viewsDifficulty to popular the Gridview
I have a screen that I consult clients and fill a grid with the information coming from the bank, my project is separated by layers until where I am works, but I can not fill the grid with some…
-
1
votes1
answer752
viewsHow to trace routes in a C# Windows Forms application from latitude and longitude
Hello, I would like to know how to best display a route from the latitude and longitude that are in the database in a C# Windows Forms application. I’ve searched the web and I’ve managed to find…
-
1
votes1
answer467
viewsIdentify via Windows Forms C# the URL the user accesses
I have a LAN House and would like to do a search with graphics on the websites that my clients access. To do this, I need a way to capture the URL’s they type in the browser through a Windows Forms…
-
1
votes1
answer504
viewsCount and access checkbox marked
I need to count checkboxes that are marked on a panel and are horizontal. It’s Windows form, C#. I couldn’t format a listbox to the horizontal, so it’s in a panel. But I’d like to count them and…
-
1
votes0
answers446
viewsLayout does not appear when program runs
I’m testing a code and I put a button and a picture box in the windows form however, when I will perform is not shown the button and picture box I placed. I checked and the property Visible is as…
-
1
votes1
answer1626
viewsMessagebox with autoclose
I’m having some problems with an application I created, using C# and Windows Forms, and the situation is as follows:: The app is a chat. It does not keep record of conversations; When the…
-
1
votes1
answer786
viewsGenerate PDF images using Pdfsharp -Windows Form
I am using window form . net and would like to convert scanned images to PDF thus generating images pages in PDF. I’m using the Pdfsharp. I have the following code but it only generates a page.…
-
1
votes1
answer98
viewsPlay Query Dice For Datagridview in C#
Hello guys I’m facing problems with a listing. I have a Datagridview loading a list of products automatically and a combobox with the names of the categories, the idea is that when selecting a…
-
1
votes0
answers111
viewsGrouping Radiobutton in Windows Form
Everyone says that it is enough to place a container object (Panel, Groupbox and etc) and inside it the Radiobutton controls that the container groups. However, there is no way to work with the…
-
1
votes1
answer1834
viewsData Search with Datagridview
I’m working with Winforms and I’m trying to implement a DataGridView(dgv) on a research form I have in my project. What happens is: I have two dgvs that form the sort of master-detail. I did it by…
-
1
votes0
answers51
viewsPass values from a Gridview to a database
I would like to know how to take the values of a gridview in windowsform and pass to my database in Access.
-
1
votes1
answer167
viewsDeploy Windowsforms with bank . mdf
I made a program in Windows Forms (C#) in layers. Model DAO BLL Interface Create a Database (Generator.mdf) in the Model Project and its Context (edmx). Now I want to publish, and how do I get the…
-
1
votes0
answers613
viewsError accessing digital certificate page through Webbrowser Control Windows Forms
I’m trying to access through Control Webbrowser of Windows Forms . net 4.0 a page that requires a digital certificate. The site is only approved for versions 8 and 9 of the IE. The IE version of the…
-
1
votes1
answer156
viewsSave data and insert into Checkbox
To start I will already expose my problem: After the person responsible for adding this new service how will automatically appear in the form where is the list of all services in checkbox form? At…
-
1
votes1
answer67
viewsError converting with Duocode using Winforms
I developed a C# application using Windows Forms, but wanted to convert to Javascript using Duocode. But it is giving the following errors: tryduocode.cs(7,14,7,21): error CS0234: The type or…
-
1
votes1
answer731
viewsHow do you turn off a key in a full form?
How can I disable key TAB or ALT program? Example: clicking TAB does not make any changes. It is possible in the KeyDown?
-
1
votes1
answer75
views -
1
votes1
answer399
viewsMount Grid according to XML tags
I have a headache in my project here... I have to consume data from a webservice that sends them in format xml. At the present moment, I can receive this xml of webservice, but I can’t sweep the…