Questions tagged as 'winforms'

1
answer

Setting cursor at the position of the string inside the textbox

I'm trying to make a mask for a textbox manually, and I'm trying to imitate the Windows calculator, where when the user types 1000 the code automatically places 1.000 and when I give txtPreco.Text = the course is in the begi...
asked by 12.11.2018 / 20:13
1
answer

Generate standard-format txt

Alright? I need to generate a txt file with a default format as below: D00000002 200014002154129 $9997 7720 0000 0012 * 12/19 *CLARICE LISPECTOR *0014-00 215412-9 * %B9997772000000012^CLARICE LISPEC...
asked by 19.09.2018 / 21:21
1
answer

Process.Start does not load executable dependencies

I created a code that opens a program, but the program needs the DLLS / Folders - in the folder it is located, so when I run it from the error, it seems that it is not picking up the DLLS / Folders (if I perform normal, usually the program)....
asked by 23.09.2017 / 14:48
1
answer

Checkbox Check C #

I have the following code: private void lsvRecebeGrupoLayout_ItemChecked(object sender, ItemCheckedEventArgs e) { Layout lay = new Layout(); GrupoLayout grupo = new GrupoLayout(); RepositorioLayout repolay = new RepositorioLayout()...
asked by 06.10.2017 / 21:04
1
answer

Change color of expressions that begin with '@'

I need to create a winform to change the color of expressions that start with '@'. For example: nothing @examples nadamais The @expressao must be of another color. The text will come from the input of a textbox that the user type...
asked by 26.01.2018 / 13:18
1
answer

checkbox in datagridview

I'mdevelopingaC#applicationthatdoeslabelprintingsothatIcanuseadatagridview,whichbringsupthelinesIneedtoprint,soInowneedtoputacheckboxtoselectthelineIneedtosendtotheprinter.Ineedtohavetheoptiontoselectallthelinesorselectonlyoneline,I'mhavingtrou...
asked by 25.07.2017 / 15:27
1
answer

Error saving data from a form in DB with C #

Is my registration logic right? Because I can not write the fields in the Database, the button code below follows: private void cmdSalvarGuiche_Click_1(object sender, EventArgs e) { if (MessageBox.Show(this, "Deseja realmente Salv...
asked by 10.04.2017 / 20:04
2
answers

How to Record the Date, Time, Minute, and Second in C # WINFORMS and SQL SERVER?

I created a sales system, and I need you to record the date, time, minutes, and seconds. The way I did, just record the date, and the rest comes 00:00:00. Here is the code I did: //evento load do formulário vendas. private void Vendafrm1_Load(...
asked by 02.03.2017 / 12:30
2
answers

Recording of rows in txt file in c # windowsform

I'm doing a program that queries some Mysql tables and generates a list to which populo in a gridview. After that, I did a C # routine that reads each line and writes to the txt file in c: \ text.txt. So far so good, the problem is that when rec...
asked by 26.02.2016 / 20:42
1
answer

List box detects that iteam is being selected

I want to double click on the item in the listbox, when start it does an action, when I double click on any other item it does another action. Code: //btnWhenClicked private void btnWhenStart_Click(object sender, EventArgs e) { ListItem...
asked by 09.08.2016 / 11:11