Questions tagged as 'winforms'

1
answer

Insert data into a real-time text box with Timer [duplicate]

I'm using timer as follows: System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 1000; aTimer.Enabled = true; In the OnTimedEvent method I do the...
asked by 20.10.2016 / 13:27
1
answer

Coloring row in datagridview C #

I'm trying to use the following method: for (int i = 0; i < dgvRequisicao.Rows.Count; i++) { valor = Convert.ToDouble(dgvRequisicao.Rows[i].Cells["valor"].Value); if (valor > 20000.01 && valor &...
asked by 04.07.2016 / 19:48
1
answer

Consuming REST windows forms

I'm trying to consume a JSON REST, I'm developing a module for a legacy Windows Forms system, it's not working, it does not return anything. Follow the code: var client = new RestClient("https://selador.homologacao.portalseloam.com.br/auth"...
asked by 08.08.2016 / 16:16
1
answer

How to create method in C # to do insert of SQL Query 2? [closed]

How to create a method in C # to insert data, this method make more than one INSERT one behind the other? Because I tried here and it did not work!     
asked by 08.07.2016 / 13:54
1
answer

Clear Form1 and add new things, such as the game maker's room system

Oops! How do I clean a form and put new elements in it? For example: Something like an installation screen when we click Next. Edit1: For example, this screen: Flipthisscreenbyclickingonanydollicon: So that one is not on top of the other,...
asked by 10.07.2016 / 18:44
1
answer

How to create a virtual keyboard?

I have a form (Form1) and when I click on a button I would like a new window with several buttons to appear that when I click on one of them would add a letter to a Form1 textbox. Is it possible to do this without having to create a new form? If...
asked by 22.08.2016 / 13:49
1
answer

Forms C # Windows Forms Do Not Open After VS 2013 Update for VS 2015

I installed Visual Studio 2015 and opened a VS 2013 project, after which the old C # Windows Forms do not open. I use F5, the debug menu appears but does not open anything on the screen, the project appears running in the task manager but not...
asked by 15.04.2016 / 20:22
2
answers

Error trying to delete image file? [duplicate]

I'm trying to do an image update on a cadaster. When I do this update I want to change the existing image to the new update image. For this I am using File.Exists and File.Delete where I check if an image already exists and if...
asked by 22.03.2016 / 07:40
1
answer

Pick up coordinates of the mouse position when clicking

I have to draw a line with a starting and ending point, I can do this line if I provide these coordinates through the keyboard, but I want to do this by clicking the mouse, the first would be the starting point and the second the end and the dat...
asked by 24.02.2016 / 03:36
2
answers

How a CheckBox can receive a DataGridView CheckBoxCell

In my DataGridView, the user's information is included in the database, whether the user is an administrator or not, this cell has a DataGridViewCheckBoxCell. Iwanttopassthevalue(True/False)toaCheckBoxControl.Itriedusingthefollowingcode,buti...
asked by 15.01.2016 / 15:20