Questions tagged as 'windows-forms'

1
answer

How do I autoscaling my application in different screen resolutions?

I made a program with Windows forms in visual studio c # 2017, and I want to be able to add that the forms automatically adjust to the resolution of the screen, but I have not achieved it. In my search I found the following code: void AjustarR...
asked by 03.01.2019 / 04:13
1
answer

To work with asynchronous programming, do I need an asynchronous connection?

Good morning friends I am seeing some tutorials on the management of asynchronous programming with .net, in windows form .. many show concepts and basic practices on how to implement it. But my doubts is. when we want to work with persistence...
asked by 17.10.2018 / 17:16
1
answer

How to print from a DataGrind the current cell in which I am standing

I'm using this code but it does not work private void imprimirCeldaToolStripMenuItem_Click(object sender, EventArgs e) { r = new imprimirmanifiesto(); int pos = 0; bool a = true; try...
asked by 24.09.2018 / 23:54
2
answers

Ask to fill in a field c #

Well, what happens next I'm trying to ask for a field in case it's blank I have the following, I have a textbox with name txtEdad then I put it like that int edad=Int32.Parse(txtEdad.Text); if(txtEdad.Text=="") { MessageBox.Show("Debe...
asked by 23.09.2018 / 22:21
1
answer

Find an object in a List where 2 equal objects do not have the same instance

I'm wanting to fill a comboBox with a series of Matters but I do not want it to be repeated. What I do is go through courses already filtered for the student that contain a subject id. listaCursos = curlog.GetAllFiltrados(); foreach (C...
asked by 12.10.2018 / 15:05
2
answers

How to access and edit the properties of the controls contained in a UserControl? C #

I did a userControl that contains a Devexpress grid (DevExpress.XtraGrid.GridControl). What I want to do is access the properties of that grid in a Windows Form. Is there any way to do this? Greetings     
asked by 22.06.2017 / 14:38
1
answer

Restart winodws form in c # after inactivity

It is possible that the values of my form windows (digase labels, textbox, picturebox, datagrids) are deleted or return to their null value after a certain time has passed and, if possible, how or what is the method to achieve this? And if so...
asked by 03.03.2018 / 03:15
3
answers

Using List as data source Datagridview ordered

Currently I have a very heavy database query that retrieves a lot of records, painting record to record in the datagrid is too slow so my solution is to retrieve the information through a datatable and then pass that datatable to a List to be ab...
asked by 23.02.2017 / 13:03
1
answer

Add data from one DataGridView to another from another form

I am making an application that allows me to loan several equipment or tools, so I have created a loan form that registers the user and another form that searches for the product in question. The data that I would like to send would be the id of...
asked by 27.03.2018 / 23:25
1
answer

How do I access the event clik of a button that is in a User Control from a Form?

I have a UserControl with a button (and several other things, but the important thing here is that button). In execution, for some action, the program places this UserControl in a FlowLayoutPanel of Form , once set thi...
asked by 11.06.2018 / 08:44