Questions tagged as 'winforms'

2
answers

dataGridView1_CellDoubleClick does not work!

I have the simplest function in the world and I can not make it work. When giving 2 clicks on any cell in my datagridview I want it to display the message "1" but it is not working! What's wrong? See my code: private void dataGridView1_...
asked by 16.06.2016 / 01:27
1
answer

How to bring information by clicking the dataGridView C #, and adding values from a column

Hello I'm having trouble creating a query from a gridview I used entity framework Well, I have a gridView it loads the Data normally In the TextBox below I want to get the name of the person that is selected put in the field and in the gri...
asked by 05.06.2017 / 18:02
1
answer

Visual Form Inheritance C #

I have created a base form with an appearance that I will use in all my system registration forms, done that, all the forms that I create for registers will inherit the base class. By doing this, I came across the following problem. Error...
asked by 02.06.2017 / 22:35
1
answer

VB.NET Error DataGridView [closed]

Error:    There is no row at position 0 Does anyone know how to solve or explain what this error is?!     
asked by 21.05.2017 / 21:03
1
answer

Doubt over contextMenuStrip

It'sthefollowing,Ineedtoaddthesetoolsexactlyasshownintheimage.Ijustneedapush,howtogetstarted.  Inserttext    InsertImage    Delete(button)CODEnamespacefrmLoginRPG{publicpartialclassfrmMenuPrincipal:Form{privatereadonlyButton[]_todosBotoes;publi...
asked by 20.05.2017 / 02:30
1
answer

How do I stop the program until a form is closed?

I want it when Form1 is opened, the whole program stops, and only comes back when it is closed. How can I do this? Code that opens Form1: if (x == DialogResult.Yes) { Form1 f1 = new Form1(); f1.Show(); } As it's called: public...
asked by 28.05.2017 / 18:12
0
answers

How do I add a button to a panel?

I need to add a button in my flowLayoutPanel when I click the add button (btnAdd). My Panel is called mainPanel NOTE: I was able to add, but I need to add the size of the other buttons. CODE namespace SlidingPanel { public...
asked by 19.05.2017 / 08:39
1
answer

Update Chart with data from a column in GridView

I have in my project a GridView where I manually enter data in the last column (index 7) and a PieChart that should be updated according to this last column, however, however much I can get the data from column I can not pass them to the Chart...
asked by 26.05.2017 / 02:36
0
answers

WindowsForm - How to add two DataGridViewButtonCell on the same cell?

Is it possible to add two buttons of type DataGridViewButtonCell in the same cell in a DataGridView? I researched a lot and so far I could not find any solution. Edit 1: For example, I wanted to add a button [Morning] and another [Late] on...
asked by 19.06.2017 / 15:12
1
answer

Doubt about searching buttons [duplicate]

The idea is: In the "Find Game ..." field, I look for the buttons, which are already named with their respective games: btnArcheAge , btnDiablo3 , btnWoW , etc. The tags are also already named with the actual name of eac...
asked by 08.05.2017 / 11:23