Questions tagged as 'winforms'

2
answers

DataGridView with columns of different tables in a DataSet

I imported 16 tables from my MSSQL into 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 can I do this?     
asked by 02.12.2014 / 13:48
4
answers

C # e.HasMorePage is in Eternal Loop

I'm creating a system for printing labels as follows: private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { Image newImage; Point ulCorner; int x = 0; int xn = 0; int y = 0; int yn = 0; bool x...
asked by 13.08.2014 / 16:22
1
answer

Insert data into the database via a dataGridview in C #

I have a form in C #: InthisformthereistextboxwhereItypethedayoftheweekandadatagridwhereItypethehours.Iputacolumncalledtime,withDataGridViewCellStyle{Format=t}manual.Butthe__:__maskisnotappearingatruntime.Iamusingthefollowinglooptosave.voidIN...
asked by 13.08.2014 / 14:34
1
answer

Format cell in DataGrid at runtime C #

I'm creating a DataGridView automatically with a time column and I'm using the 00:00 time format, as follows. dgvhorario.ColumnCount = 1; dgvhorario.Columns[0].Name = "Horário"; dgvhorario.Columns[0].DefaultCellStyle.Format = "t"; dgvhorario.C...
asked by 15.08.2014 / 16:33
1
answer

C # Registry Navigation

I have two buttons: Next and Previous in a Windows Forms application in C #, I am using a SQL statement: SELECT * FROM aluno LIMIT 1; for MYSQL. This instruction takes the 1st record. Now comes the dilemma, I am not able to do log s...
asked by 03.08.2014 / 22:46
1
answer

How to add groups and items in an ObjectListView?

Good afternoon, people. I will rephrase the question and try to express myself better ... I'm using 'BrightIdeasSoftware.ObjectListView', it's not the traditional ListView from Microsoft - Visual Studio it's much more complete For learn m...
asked by 08.09.2014 / 00:33
1
answer

How to import a .cur cursor into C #

I'm having a problem loading a cursor file into Windows Forms. I type the files in the folder but the program notices that the course file is not valid or is corrupted. But I really need these cursors for developing an application. I tried...
asked by 27.09.2014 / 04:15
2
answers

How to fix this problem with the DataGridView Check Box cell?

I'm having a problem with the DataGridView checkBox cell: Click the checkBox , and it marks the Checkbox and updates a value field. I click again, and it does the opposite. Everything works fine until I quickly click on the checkBox . i...
asked by 15.07.2014 / 15:37
1
answer

How do I know if the client is already open on another computer?

I'm making a system that can and will open on possibly 2 to 7 computers. There is concern in the following case: PC1 opened the client's account and started editing. PC4 has opened the client account John just to see some data. PC1 has f...
asked by 23.07.2014 / 16:15
2
answers

Method does not work when called

I have two forms: No form1 is a ListBox with some pre-inserted data and a method. In form2 there is a button that executes a method in form1 . //form1 public void limparListBox() { listBox1.Items.Clear(); } /...
asked by 22.03.2014 / 04:05