Questions tagged as 'windows-forms'

1
answer

Windows forms control type property window?

Does anyone know if there is a control similar to the properties window of visual studio? I'm trying to replicate the control of the next image but I do not find a control like this, I hope you can help me:     
asked by 10.08.2017 / 06:29
2
answers

How to prevent a script under "_" from being added to the end of the contents of a TextBox

I'm working with nicks (first names). When a user registers, he must enter his nickname, he can not contain symbols (except the underscore), only numbers and letters. I use the event KeyPress of my TextBox Username for this:...
asked by 02.05.2018 / 00:57
2
answers

Access a control of the main form

I have a windowsform application with 2 form and form2 windows, which is generated by default (I consider it the main one) and a 2nd form, and I wanted to access a textbox of the main form from it form2 form to update it with a button from this....
asked by 04.03.2016 / 19:42
1
answer

How to replace a line break of a richTextBox with a space c #

Good morning ... I have a richTextBox in which I enter a text then that text I pass it to string , then that same string I put it in textbox . But when I assign that string to textbox the line breaks that...
asked by 17.11.2016 / 18:12
2
answers

Subtract product stock when making a Sale

I am working on a desktop application in Windows Forms and MySQL as a database manager. How do you rest in inventories when you make a Sale? That's the code I use for the save sales button. The data is added to a sale table, and the fi...
asked by 16.11.2016 / 16:34
1
answer

How to create PK identity in temporary DataTable?

I'm working on a Windows Forms app, Visual Studio 2015. The scenario is that I have a DataGridView where I will enter items to a Detail, I will enter data from a product of a range of sizes that are worth a price, and the same product I will ent...
asked by 12.08.2016 / 18:08
2
answers

Is it possible to save what is drawn in the "Panel" control using the Paint event?

Next I use the following code to save and draw. But when saving does not save what is drawn. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System....
asked by 27.01.2016 / 20:21
2
answers

Problem with combobox selecting the Index c #

Well the following happens I have 2 ComboBox with names of countries then let's say the following a trip from Spain to Germany worth 800000 vice versa is worth the same so I have it like this if(combo1.Selectedindex==1 && comb...
asked by 23.09.2018 / 05:33
1
answer

Cultural reference C # is not supported

I've been having problems wanting to install the published program, being that compiling and running directly from Visual Studio 2015 works fine here is the error that I generated when installing the published program INFORMACIÓN DE VERSIÓN...
asked by 23.07.2018 / 04:46
1
answer

Draw figure in Panel with Bitmap, C #

How can I draw these specific figures on the panels? I have two panels to which I want to draw these two figures:    A figure in each one, could put the image as such in the background property BackgroundImage of the panel,...
asked by 18.01.2018 / 15:59