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
answer1598
viewsHow to create a virtual keyboard?
I have a form (Form1) and when I click on a button I would like to see a new window with several buttons that when I click on one of them would add a letter to a Form1 textbox. Is it possible to do…
-
1
votes1
answer55
viewsado.net version of iis
Good, I have the following code: private void AspNet35() { String sWebSite = "W3SVC/1"; DirectoryEntry site = new DirectoryEntry("IIS://localhost/" + sWebSite + @"/Root"); try {…
-
1
votes0
answers60
viewsDisplay class relationship in Datagridview?
I’m trying to display a class relationship in Datagridview but I’m not getting it. I have 3 classes Produto and Unidade and ItemVenda, the class Unidade refer to the unit of the product if it is…
-
1
votes1
answer1167
viewsHow to disable editing and block adding Gridview lines
I have a GridView that the user enters with some information and saves, I would like that after clicking save. put all grid in mode ReadOnly and also would like to block to insert or delete lines.…
-
1
votes1
answer994
viewsFormat number in reportviewer?
I’m trying to format a number on ReportViewer and I’m not getting it, so I’m trying to use the function Format of TextBox in the ReportViewer. The number is a code and I’m trying to fill it with 3…
-
1
votes1
answer58
viewsTransforming a content into an image
I’m creating a project in Windows Forms to help my company generate automated email signatures for our employees. I have in the case a single windows Forms that contains a Tab Control, with Data and…
-
1
votes1
answer438
viewsFast and continuous change of the background color of a Panel
I’m trying to get a panel to constantly change color with the following code while (true) { panelColor.BackColor = Color.Blue; Thread.Sleep(500); panelColor.BackColor = Color.Red; Thread.Sleep(500);…
-
1
votes1
answer190
viewsPick up Variable from one Config directly on in another Config
A doubt. Is it possible to take the value of a variable from one config directly within the other config? Possible example below. Config1.config: <add key="webservice" value="http.teste.com"…
-
1
votes1
answer592
viewsScroll bars of the dataGridView c#
The option ScrollBars is as Both, but they’re not showing up at all. I don’t even have the code to exemplify it. Someone’s been there before? I’m carrying a datagridview, but there are appearing the…
-
1
votes1
answer86
viewsCurrentitemchanged event of a Bindingsource is not called when changing a subitem
I got a class like that: public class Foo { #region Construtor public Foo() { } #endregion #region Propriedades public virtual int? Id { get; set; } public virtual string Description { get; set; }…
-
1
votes1
answer472
viewsGrab file size through Openfiledialog and save to a List<Attachment>
I’m making an application Windowsforms to send email, within this application I have an Opendialog that selects the files and saved within a: List<Attachment> AttachmentList = new…
-
1
votes1
answer2787
viewsC# Datagridview align header in center
I am suffering to be able to align the header of Datagridview. I want the text to be centered in the center. Here’s the code: dg.EnableHeadersVisualStyles = false; // Desabilita formatação padrão…
-
1
votes0
answers100
viewsError creating Windows Form in Visual Studio 2015 C++
created an empty project CLR ai went into project >> add new item>> UI >> Windows Form but he gives that mistake there, how to solve it?…
-
1
votes1
answer110
viewsDisplaying Bitmap in C#application
I have the following code in my application : Bitmap original = new Bitmap("C:/Projeto/Imagens/antialiasing.jpg"); Graphics g = Graphics.FromImage(original); g.DrawImage(original, 100, 100, 390,…
-
1
votes1
answer574
viewsCommunication between Forms
Hello. I am working on an application that should work as follows: When running, a main form (Form1) should open and always remain in the background. This main form contains options for the user to…
-
1
votes1
answer89
viewsHow do the text of a cell occupy two lines within the same cell in Crystal Reports with C# winForms?
I’m creating a report with Crystal Reports. It’s working, but it has the following problem: When the content of the cell is larger than its space, a part of the content does not appear. How do I…
-
1
votes2
answers795
viewsDisplay date formatted in datagridview
In the datagridview has a date field in the format yyyyMMdd and need to display formatted in the correct form. tried this: dgvRequisicao.Columns["data"].DefaultCellStyle.Format = "dd/MM/yyyy"; But…
-
1
votes1
answer102
viewstabpage - read-only textbox
Guys good night how are you? I have a form, with a tabpage, and with some textbox, I’m trying to deploy in the page load, that the property isreadonly is true. but I’m not getting it, I’m using the…
-
1
votes2
answers908
viewsPrinting windows Forms with direct reportviewer on printer
I have an application made in windows forms and reportviewer, my problem is in printing: I need to print right to the printer without having to open the check box to select the printer How to do…
-
1
votes2
answers734
viewsHow to hide and re-view taskbar in C#?
I want my application to have a button that hides and re-exports the Windows taskbar in C#, to block user access to it. Any suggestions?
-
1
votes2
answers1164
viewsHow to make the selected line font bold in Datagridview?
In Datagridview of Windows Forms it is possible to change the font color and background color of the selected line easily using the properties DataGridView.DefaultCellStyle.SelectionBackColor…
-
1
votes1
answer38
viewsThe angles are crazy!
I’m creating a simple orbiting system, where you have the earth and the sun, created on the basis of a UserControl, the problem is I don’t know why the angle gets crazy by placing an angle on the…
-
1
votes2
answers2237
viewsDownload all files from a folder on FTP?
Good morning, I am developing a system that does file exchange . txt via FTP. I need to download all the files that are in a certain folder. Today I can download one file at a time, in case I pass…
-
1
votes2
answers181
viewsLinks in strip menu
You can link to a site in the Strip Menu of Windows Forms? I have the following code snippet in the click of my menu, but does not open the link. private void menuSobre_Click(object sender,…
-
1
votes0
answers30
viewsLicensemanager.Usagemode C#
I have a form basis that all others inherit. I picked it from a question here from the same site. That’s the construtor: public BaseForm() { if (LicenseManager.UsageMode ==…
-
1
votes1
answer424
viewsAs time passes and progressbar grows change the label text
Before you start it’s just a game not a virus. My goal is when the progressbar reaches 1% put the text as downloading viruses and when it reaches 50% put the text as Installing virus but instead it…
-
1
votes2
answers4207
viewsCapture file name
I have a form that I search the path of a file in .mdb (Access database), however I wanted to know how I can limit and pick up exactly the string of the file between the last bar of the…
-
1
votes2
answers560
viewsWindows form integration with html page
I have an application that is a Windows Forms that I need to integrate into an HTML page of my web application In case it causes Windows Form to stay there fixed as if the two were one thing. This…
-
1
votes1
answer113
viewsConvert a winform to webform
I have an application in a winForms I need to turn this project into a webform for web application, I am looking to know if it is possible and there is some way to do this.
-
1
votes5
answers1114
viewsSave Combobox C# values to database instead of descriptions
I have a screen in a simple registration form, where it has some combobox. I set its values manually same. EX; In a combo that will register the access profile of a user, I have in this combo the…
-
1
votes1
answer48
viewsCheck Text Box character to mark on a radiobutton
I would like to know how to check whether the letter filled in a textBox is A or B as the result Checked in a RadioButton.
-
1
votes0
answers139
viewsClient chat It is not possible to read data from the transport link:
Hello everyone is the following I made a Tc Pque server I already concluded, in the last days I have been doing the client but is giving the following error Cannot read data from transport link: A…
-
1
votes2
answers2794
viewsMaximize screen without edge without hiding the Windows taskbar
When I put the window to FormBorderStyle = None and maximize it, it sits in full screen, hiding the taskbar. I’d like to know how to make it maximized, but without hiding the taskbar.…
-
1
votes1
answer1122
viewsBest method to locate values in a Datatable
In a unit of measure registration screen, I have to check if the unit that the user is wanting to register, if it already exists, then as I have a DataGrid populated by a DataTable, I thought I’d…
-
1
votes1
answer344
viewsHow to choose the first form to be displayed?
When I run my project, fmPrincipal is always open, however, I decided to create a fmLogin to be displayed first and the user login to it. How do I set up fmLogin to be displayed first?
-
1
votes2
answers230
viewsQuestion about how to position buttons
The images are only illustrative. What I need to do is this: There are several buttons with their respective names, can be so-called (clicked). I type the name of that button in the play fetch and…
-
1
votes1
answer466
viewsHow do you recover data typed in Gridview and then save to the database?
In a certain register screen, I have a GridView with a few blank lines, then the user would have to type the information in those lines, and then when clicking the save button, do the INSERT at the…
-
1
votes1
answer1858
viewsPopup when right-clicking mouse
I’m trying to make a popup by right-clicking a mouse inside a GridView. I’m using the event MouseDown and the event MouseUp to do the popupControlContainer appear and disappear. but how to make it…
-
1
votes1
answer302
viewsGet cursor coordinates in C#
I’m using the Control.MousePosition to get the mouse coordinates in windows 10. Then use the following function to get a Printscreen: public static Bitmap PrintScreen(Point Source,Point Destination)…
-
1
votes0
answers218
viewsMove buttons in a form in Visual Studio through a fixed control
I want to add buttons to my form and be able to move it when the application is running, how to do this? I would also like to apply a control button that sets whether they are in fixed state or…
winformsasked 7 years, 6 months ago Daniel Castro 41 -
1
votes1
answer381
viewsinclude decimal places Value 1500 and leave it as 1500.00 without comma!
I have an integer value of 1500 in the monetary value variable and want to send to another value variable like 1500.00 . How to do in c#. I have tried conversions and nothing happens... In the end,…
-
1
votes1
answer79
viewsHow to count how many instances of a program are running from a shared folder?
I am developing an application that runs from a shared folder. In the same folder is the Access database. To avoid conflicts in Access, it will only be allowed to run by only one user at a time, and…
-
1
votes1
answer121
viewsConvert UTF-8 string to C#standard format
I’m downloading a string via WebClient() and I get a string with the badly formed accents. Example:…
-
1
votes1
answer818
viewsCustomize Tabcontrol C#
I need to customize a Tabcontrol, like, change the colors of the tabs when selected, leave the Tabcontrol without border (flat type), etc. I tried using the Tabcontrol component of Windows Forms and…
-
1
votes2
answers530
viewsWinforms C# - Display loading form
I own a main Winforms and would like while the asynchronous task is processing a new form (with GIF) is displayed, this would only close upon completion of processing. frmProcessor _frmProcessor =…
-
1
votes2
answers2096
viewsFind a string anywhere in the List c#
Good Afternoon. I would like to know how to find a string anywhere in the list. Ex.: string "123". It can be in Pessoa.id, Pessoa.Nome, Endereco.id, Endereco.Rua or Endereco.CEP; People’s List…
-
1
votes1
answer242
viewsupdate tab of tabcontrol
I’m creating a program in Windows Forms and on my page I put a Tab Control with a tab to register and insert the data in Mysql and the other to see the data registered in a Combobox. Only when I…
-
1
votes1
answer64
viewsHow to create a Privatefontcollection
I have some fonts that are not standard Windows, so I’m creating a PrivateFontCollection but I’m having a hard time. These sources are used by the entire program, so I thought I’d create a Classe…
-
1
votes1
answer146
viewsTopmost Windows Forms
I have two screens in Windows Forms that are enabled with Topmost, but when the second window opens, the first one (which also has top Most) is underneath, but I need both windows to be above…
-
1
votes1
answer229
viewsUsability tutorial with transparency c#
I am working with c# and I need to do a usability tutorial, as well as in games that darken the screen, highlight a component and display a tip below. So far I made a Form on top of the other,…