Questions tagged as 'winforms'

1
answer

Title bar text in the center

The title bar text of the Form in my Visual Studio 2015 is on the left by default. How do I get it centered by default? Thankful.     
asked by 11.05.2017 / 14:36
2
answers

How to free memory after performing a task?

On a certain task, I have to load 6 photos in 6% with%, for this I use the method below: private void simpleButton1_Click(object sender, EventArgs e) // botao carregar foto { OpenFileDialog carrega_foto = new OpenFileDialog();...
asked by 11.05.2017 / 03:51
0
answers

Lock DataGridView Changes

I am creating a Windows Forms C # request screen in which the user fills in the order item data and then clicks an "Add" button, which instantiates an OrderItem object, adds it to a list and then assigns this list to the DataSource of a DataGrid...
asked by 29.03.2017 / 03:52
0
answers

x509 - The key set is not set

I use the x509certificate class from C # to read an A3 certificate for XML signature, it happens that it was necessary to renew the certificate and at first nothing changed, it continued same type, but when trying to sign now is giving the error...
asked by 23.03.2017 / 19:11
2
answers

Row editing by a textBox and receiving in the dataTable

I have a class that has two methods that get what is typed in textBox , all stored in dataTable (without database). When I click on a line ( Row ) of dataGridView I show the values saved in dataTable back in t...
asked by 09.03.2017 / 20:51
0
answers

X-axis time of C #

I have the following graph in my Windows Form : IconfiguredtheXaxistodisplayTime,asshownbelow: BelowarethemethodsIcalldrawing:privatevoidfuncaoQualquer(){while(true){funcaoArray[funcaoArray.Length-1]=hScrollBar1.Value;Array.Copy(funcao...
asked by 30.01.2017 / 12:14
1
answer

How to adjust the Form according to the size of the PictureBox?

How do I resize my form according to the size of the PictureBox component? In this case, captcha images may have different sizes. So I'd like my Form to fit the size of the PictureBox. For example, if the image increases in size, the Form sho...
asked by 18.01.2017 / 18:20
1
answer

ISession + NHibernate (no session or session was closed)

In a WindowsForms project Using standard repository, in a generic class I have the following method: public IList<T> Listar() { using (ISession session = SessionFactory.Instance.GetSession()) { return (from c...
asked by 17.01.2017 / 14:12
0
answers

Losing data from Designer.cs file when opening form - C # Windows Form Application

I have a custom editor that adds buttons to a collection. This procedure is working fine, the data is serialized in the Designer file, but when I reopen the form or do a project build, the data that was in the Designer disappears. What before...
asked by 07.12.2016 / 12:12
1
answer

Problem with ComboBox - SystemDataRowView

I have a problem. My software has a order registration screen and there are some Combo Boxes that pull certain information according to what is selected in the Product field (Cake, Candy or Cupcake). They are 3 combobox: Cover, Type and Filling....
asked by 18.11.2016 / 12:07