Questions tagged as 'windows-forms'

1
answer

read a string from a file in c #?

I'm using this code to read a whole line in excel, but I want to read only one cell or a string System.IO.StreamReader file = new System.IO.StreamReader(@"c:\Users\Public\TestFolder\Base.xls"); line = file.ReadLine();     
asked by 17.07.2016 / 19:25
1
answer

write an excel cell with a specific format in c #?

When I write a file with this code automatically occupies a "general" format to write it, the problem is that if I want to write numbers that start with 0 this automatically omits, for example if I want to write 0123445 I will 12345 as I can wri...
asked by 26.07.2016 / 03:56
1
answer

TextBoxt KeyDown Event

I'm working with Visual Studio 2015, windows forms, the problem I have is that it does not enter the KeyDow event private void txtCondicionPago_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Return) {...
asked by 19.08.2016 / 10:28
1
answer

Save picturebox image in bd access with C #

I have a BD Access 2016 with a table that contains an OLE object field, in Visual Studio 2012 I have a WF project where I have a form that contains a pictureBox to attach the logo. I have an insert button that calls the statement made in...
asked by 29.05.2016 / 12:08
1
answer

Winform project installer in vs 2008 does not recognize the app.config

Dear, I have a problem, I have a project in vs2008 that works perfectly, I create the installer and everything is fine, the inconvenience is to install it in another machine it does not work, I put a log to see where the error comes from, and in...
asked by 20.05.2016 / 00:38
2
answers

How can I save the userInput in Windows Form

I would like to know what is the best way to save the information that a user enters in different textBox in a Windows Form application. I have read several forums recommending to save the whole in an XML file. What I'm looking to do is ev...
asked by 08.04.2016 / 18:47
1
answer

How can I access a control from a child form

I am working on a Windows Forms app. The problem is the following: I have a main form in which I have a panel where I call my forms which are user control. Starting from there, when I have a form in the panel I call a form (forms) and from th...
asked by 29.07.2016 / 18:39
1
answer

Create Id in a DataGridView

Hi, I have a DGV in which, through a button, I want to create its correlative code when I press the button private void btnNuevoClasificacion_Click(object sender, EventArgs e) { ClasificacionTalla ct = new ClasificacionTalla();...
asked by 30.04.2016 / 18:55
1
answer

How to know if I am in the last row of a DataGridView

When I want to check if I find myself in the last row, I get an error if (dgvClasificacion.CurrentRow.Index == dgvClasificacion.Rows.Count - 1) { dgvClasificacion.Rows.Add(); } Reference to object not establishe...
asked by 01.05.2016 / 03:36
1
answer

Avoid the step to the previous form but has closed the current one, vb Devexpress

I have a form in which information is entered, it's like a pop-up window. There is some function that prevents me from using the previous form with just a click, the problem is that it is only clicked and remains open, I hope I have un...
asked by 19.04.2016 / 21:33