Questions tagged as 'winforms'

1
answer

Problem with accentuation when exporting data from Sql Server to Excel

I have the following code inside a button responsible for performing the export of the data from my table to excel. string caminho = "c:\caminho"; // criar um arquivo para escrever using (StreamWriter sw = File.CreateText...
asked by 03.04.2018 / 16:36
0
answers

I can not select a listbox item and get the other information in the database from that selected item

The idea of the software is to select a name in the combobox (cmb_nomeGu) and thus to play in the listbox (lst_result) all the dates found that contain the chosen name, then click on the existing dates to search the last information, which is th...
asked by 18.03.2018 / 16:08
0
answers

RTF table border size

I'm doing a simple RTF editor (with RichTextBox ). I'm working on the editing part of tables, the code to insert them is ready: private void InsertTableInRichtextbox(int rows, int columns,int csize) { //CreateStringBuilder o...
asked by 23.03.2018 / 20:59
1
answer

Why does the array get too many lines?

private void abrirLabirintoToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog Abrir = new OpenFileDialog(); Abrir.ShowDialog(); string CarregaArq = null; string teste = null; //s...
asked by 16.03.2018 / 01:34
0
answers

Com3 there is no windows form for arduino

I'm trying to create a program that sends information from windows form to arduino but an error says that com3 (the port I'm using) does not exist. We are using the xy coordinates of the mouse to control two servo motors. Everything works fine,...
asked by 15.03.2018 / 15:05
2
answers

Method to automate the call of Forms in C #

Here's what I'm trying to do I'm creating an application in C #, MainFrame is the MDI Parent, and I own other windows as well. What I want is to use a class called "FormCaller" to call other Forms automatically, so I do not always have to wri...
asked by 02.03.2018 / 16:27
0
answers

VS2017 locking in design mode

Good afternoon everyone. I've been having a problem with VS2017 for a few days now, which has irritated me a lot !! I have a form with a usercontrol developed by me and some grids. One of these grids was bound to a datasource pointed to a...
asked by 26.02.2018 / 19:34
0
answers

Changing value in integer array in an index works in one case, and in another not, why?

privatevoidbtnRodaLabirinto_Click(objectsender,EventArgse){char[,]Lab=newchar[10,10];int[,]Lab2=newint[10,10];intI=0,J=0;RandomNumerosRandomicos=newRandom();//abaixo,setandolabirintocom0e1for(I=0;I<10;I++){for(J=0;J<10;J++){Lab2[I,J]=Nume...
asked by 01.03.2018 / 15:00
1
answer

Error while backing up in wpf c #

I'm having trouble backing up my system. I'm using WPF with SQLSERVER 2008 , in this system I need to back up the data on the local machine of the client, so to create the directory of the backup on Disk C:\ . But he is returning...
asked by 19.02.2018 / 20:04
1
answer

How to create checkbox dynamically with windows forms?

I have a list that returns from the Database and for every record I need to create a% of dynamic form , I did a search and found some examples for WebForms and I need an example for Windows Forms It would be something like this, Example:...
asked by 13.02.2018 / 01:22