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
answers19
viewsCom3 there is no windows form for Adian
I’m trying to create a program that sends information from windows form to Adian but an error says that com3 (the port I’m using) does not exist. We are using the mouse xy coordinates to control two…
-
0
votes1
answer313
viewsRichtextbox specific line in bold
I have a Richtextbox where I need to leave the lines of positions [0] and [6] in bold. I have the following code: rtbDadosAdicionais.Select(0, rtbDadosAdicionais.Lines[0].Length);…
-
0
votes2
answers1946
viewsHow to release memory after performing a certain task?
In a certain task, I have to upload 6 photos in 6 PictureBox, for this I use the method below: private void simpleButton1_Click(object sender, EventArgs e) // botao carregar foto { OpenFileDialog…
-
0
votes1
answer87
viewsenable full transparency of the png background in the form
Well I have a form c# however I use a render png, which contains some shadows and smoke effects, the only way I found to give transparency was the key, but it does not get totally transparent,…
-
0
votes2
answers2572
viewsHow to change button color using RGB or Hexadecimal code?
I have a Winforms application and would like to use colors that are not in the presets of the object Color, how could I do that ? By way of example: How the code is found: this.btnLogout.BackColor =…
-
0
votes1
answer45
viewsView Form in a Tablelayoutpring C#
How do I open a form named frmOrcamentos within a TableLayoutPanel so-called tlpPrincipal. Remembering that the form frmOcamentos will open in the TableLayoutPanel that is inside the form…
-
0
votes0
answers292
viewsHow to add boot to a panel?
I need to add a button to my flowLayoutPanel when clicked on the add button ( btnAdd ). My Panel is called mainPanel NOTE : I managed to add, but I need to add the size of the other buttons. CODE…
-
0
votes1
answer150
viewsDoubt about the Messagebox
I have a question about our famous MessageBox.Show();, this command is an event, method what would be?? Another question is about instantiating object, in the example below we are taking our login…
-
0
votes1
answer41
viewsHow to use regular expression without using the Regex class?
I need to validate the input of values and strings, but I have doubts about how to use without using the Regex class, how can I get the solution? var CampoExpressao = new Regex(@"[0-9]"); Above has…
-
0
votes1
answer394
viewsProgress Bar - How to take decimal values?
By learning, I am creating a very stupid "game" in C# and I make a bar the bar of life, but I need to decrease a decimal value and apparently the Progress only takes int values. How can I get her to…
-
0
votes1
answer44
viewsQuestion about contexMenuStrip
The thing is, I need to add these tools, exactly as shown in the image. I just need a little push on how to get started. Insert text Insert Image Delete (button) CODE namespace frmLoginRPG { public…
-
0
votes1
answer2159
viewsPick 2-column value in Gridview to perform calculation
I am developing a simple Input/Output system of users in an environment and I have a Grid with some data and among them 2 fields of type Datetime, being them Input and Output. I need to take the…
-
0
votes1
answer160
viewsHow to change value within a gridview c#line
Staff I am working on a PDV form and I am with the following doubt. In my example it would be like modifying the quantity of the same product in a single line without having to repeat the product…
-
0
votes1
answer107
viewsHow to find a number inside an HTML list
I’m trying to find the number that the person wrote in the box, in Document.getElementByID on the site, but I can’t do in c#, or tried at least: private void btnvalidar_Click(object sender,…
-
0
votes1
answer319
viewsUpdate Chart with data from a column in Gridview
I have in my project a Gridview where I manually insert data in the last column (index 7) and a Piechart that must be updated according to this last column, however, as much as I can get the data…
-
0
votes2
answers36
viewsSearch WEB date only
I need to search the date acts from the Internet, in the code below the return is the date, hour, minutes and seconds. public static DateTime GetNistTime() { var myHttpWebRequest =…
-
0
votes3
answers44
viewsInsert text from text boxes and read only after |
Hi, I was wondering how can I do so that the 2 textboxs inserts the ID this way in txt: txt file.: id|192919 <---- textbox1 id2|29b9a92 <---- textbox2 And then when you open the program again…
-
0
votes1
answer938
viewsdisplay data from a mysql database column under label
How to select a die from my table column and display it in a label? EX: id = 10 -> Banana Select * From tabela where id = 10 label.Text = Banana MySqlConnection conexao = new MySqlConnection();…
-
0
votes0
answers58
viewsVB: Datagridview
Good morning. I have the problem that the table design does not update. The Design: Private Sub DataGridClientsDesign() 'Procedimento que contem o novo estilo da datagrid…
-
0
votes1
answer161
viewsHow to view data from various tables in Datagridview?
I’m trying to display several tables on DataGridView, from a database that is Entity Framework. Example, person table, address. I tried to use pessoa.BindingSource, then comes the address list, but…
-
0
votes1
answer36
viewsCalling a method
Hello, I would like to do something extremely simple, but I’m having difficulty applying. I made the following class: public class nome { string aluno = "Olá, eu sou um aluno"; string aluna = "Olá,…
-
0
votes2
answers453
viewsIncrement variable while holding a button
I need to do an action inside a Button, when the person presses and holds with the left hand side of the mouse on the Button, increment a variable until release. Let go, to action. Within the method…
-
0
votes1
answer447
viewsAccess Combobox Selecteditem Windows Forms C#
I put the items inside the combobox as follows: cmbSituacao.DisplayMember = "Text"; cmbSituacao.ValueMember = "Value"; cmbSituacao.Items.Add(new {Text = "TODOS", Value = "000000"}); foreach(var sit…
-
0
votes1
answer165
viewsClear Datagridview without firing Cellvalidating event
I am trying to clean a Datagridview from C#. However when executing Rows.Clear(), before that he is running an event CellValidating which is also attached to Datagridview You can not perform the…
-
0
votes3
answers431
viewsUpload Datagridview photo and move to picturebox - Windows Forms C#
This is Good Afternoon Guys! I have a little difficulty in passing my registered photo to my PictureBox to update the registry. My scenario is this:: I have a Form data entry registration and A Form…
-
0
votes1
answer70
viewsProblem using Bindingsource C#Canceledit()
I am creating a CRUD and I am using the Bindingsource component with Datasource Typed with my Parents class. In the form I placed a textbox linked to my bindingSource in the property Name of my…
-
0
votes0
answers96
viewsWindowsform - How to add two Datagridviewbuttoncell in the same Ell?
Is it possible to add two Datagridviewbuttoncell type buttons in the same cell in a Datagridview? I’ve done a lot of research and so far I haven’t been able to find any solution. Edit 1: For…
-
0
votes1
answer38
viewsIs it possible to open a form with an ordinary user and another as an administrator in the same application?
I have a program that in certain parts needs to be run as an administrator, in others it needs to be run as an ordinary user. Example: configuracoes.Show() 'Esse será executado como usuário comum'…
-
0
votes1
answer47
viewsHow to pass a parameter to Dataprpetyname (in Datagrid) C#
How can I pass a parameter there? For example change the id_inss to id_example? I couldn’t find a way.…
-
0
votes1
answer42
viewsProblem leaving form as top c#
I have 2 Forms. The main contains a button that opens the second form inside the main. private void btnCalculadora_Click(object sender, EventArgs e) { Calculadora = new frmCalculadora();…
-
0
votes0
answers27
viewsWindwosforms between windows 10 workspaces
I have an application in Windows Forms and several work areas and I need to open a window in all these areas, I already searched the internet and found…
-
0
votes1
answer324
viewsC# - Passing data between Windows Form using Listview
I have a project in C# Windows Form, in my project I have 2 screens, 1 - Listview to show the information, 2 Form to get the user data and pass to Form1 Listview, but the problem is: pass the…
-
0
votes1
answer34
viewsHow to update one Datagridview when changing the other?
I have a DataGridView called gridProfissional which lists all the professionals I have registered in a table. I have another DataGridView called gridAgenda that lists the days that the professional…
winformsasked 7 years, 4 months ago Italo Rodrigo 4,344 -
0
votes0
answers136
viewsPass Login Enter Password to an external application. C# with Windows Forms
I used the code passed in Write program in another’s textbox To write login/password in another manufacturer’s program. I did so: Process processo = Process.Start(@"C:\Program Files…
-
0
votes1
answer164
viewsHow could I reverse the way a foreach travels through the object?
Code to follow: foreach(Control objCtrl in groupBox.Controls) { if (objCtrl is NumericTextBox) { int i = objCtrl.Text.Length; MessageBox.Show(i.ToString()); if (String.IsNullOrEmpty(objCtrl.Text) ||…
-
0
votes1
answer592
viewsSwap background color and item text in Gridview
I have a GridView with multiple numbers and I have a click event on the items in this GridView. I would like the items that have already been clicked to change the background and text colors to show…
-
0
votes0
answers205
viewsSave a byte array to sql from a Datatablereader
In one of the system tasks, I need to query an Sql Server database, which returns a Datatable, in this Datatable, one of the data is of the type Byte[] So to read the Datatable use a…
-
0
votes1
answer69
viewsHow to block the application from minimizing C#
Guys, I have a windows form app that after opening a new screen it’s minimizing alone and I’m not able to figure out why. All the screens I call as follows Home PagHome = new Home(); PagHome.Show();…
-
0
votes1
answer104
viewsDoes`Webbrowser` use any native windows browsers as a base?
I see you can use one WebBrowser in the C# Form but I was wondering if he’s like a iFrame that uses the browser itself to create this navigation window. My question is whether he uses the Edge or…
-
0
votes0
answers82
viewsMetroframework - scrollbar only style after click event
Good guys, there is a bug in the layout that when I load the Grid, the scrollbar (horizonal and/ or vertical) is not stylized until after some click event. For example: Scrollbar before the event:…
-
0
votes3
answers335
viewsAdd data from a sql column c#
My problem is this: I need to sum up the total hours of the employee who are in the bank, already in a separate column. Just to be clear, the hours the employee worked the day are already ready, I…
-
0
votes1
answer54
viewsError loading database information to a datagridview via Entity Framework
My project has four classes: public class Manifestacao { public long Id { get; set; } public string NumeroChamado { get; set; } public string DataHoraReg { get; set; } public Cliente Cliente { get;…
-
0
votes0
answers141
viewsLog in to AD and create users c# Forms
Good afternoon, everyone! I’ve done a lot of research on this, but not on c# Forms, I tested some codes I got here and nothing. what I would like to do is: make a Forms where I inform the (IP, USER…
-
0
votes1
answer99
viewsList local windows users with Forms c#
Good users! I created an application to create windows users local in bulk, got help here from some users was ball show, but I’m in a little trouble now: i need to make a condition where I before…
-
0
votes1
answer56
viewsHow to Open Another Form by Double Clicking on the Cell
I have a table called tournaments that shows the type of game, the name of the tournament and the date. I want you to do double click in the cell of the type of game open the teams of this type of…
-
0
votes1
answer155
viewsHow to change the properties of a Form being inside a Usercontrol that is not in the Form? C#
In my code I am inside a Usercontrol that is not inside the Form and I would like to change the properties of my Form through this Usercontrol. Example of my code: private void btn_Click(object…
-
0
votes1
answer68
viewsWindows Forms + windows service
I have a windows Forms project, added a windows service class, would like to install the service and run from a one button event(no need to use Installutil). There’s some way to do it?
-
0
votes1
answer247
viewsHow to encrypt to a . txt file in Windows Forms C#?
I have a job to do where I need to save data from a list to text files. These figures are for the most part, password, username, idade, nacionalidade and numeroCC. At work you are asked to store in…
-
0
votes0
answers61
viewsWriting in Textbox freezes form
I have a form that has a Textbox and would like to write in it but give an effect of Typewriter so that the text is not added fully "dry". I created a method that takes the text I’d like to add and…
-
0
votes1
answer38
viewsHow do I assign a function to Contextmenustrip in c#?
How do I assign a function to a Contextmenustrip that is on a Notifyicon? I have the following code: private void Thread_Notify_MouseClick(object sender, MouseEventArgs e) {…