Posts by Agnaldo • 162 points
19 posts
-
0
votes3
answers97
viewsA: Navigation.Popasync() does not work when used as an option to exit the application
Hello. I use the code below to exit and close an App. // opção usada para sair do aplicativo private async void Sair(object sender, EventArgs e) {…
-
2
votes1
answer52
viewsA: Passing parameter between layers
Greetings. Your reply was answered in the comments by @Lucas Miranda. See: public int Verificar(Modelo mo)// aqui você deve receber o objeto Modelo { int r;// aqui a variável que você usa como…
-
0
votes2
answers1749
viewsA: How to browse a dataGridView and store the values in a List or Array
Greetings. You can use the for in place of foreach to walk the DataGridView and take the data through the cell indices of each row. //percorre o DataGridView for (Int32 i = 0; i <…
-
1
votes2
answers211
viewsA: Capture mouse event
Greetings. I managed to do it here in a way that I think suits what you need. The events used will be the Mousehover and the Mouseleave. I created a Panel which will serve as a lateral background,…
-
0
votes2
answers211
viewsA: Capture mouse event
Greetings. The events are the Mouseleave and Mouseenter. first Place the submenus panels with the property Visible = false so that they start without appearing in form leading. I’m going to assume…
-
0
votes1
answer418
viewsA: Take the directory of the executable and save image in a folder inside this directory
Greetings. To get the path of the directory either in debug or when the program is already running on some PC use the command asegui: System.Environment.CurrentDirectory Ex: txtCaminhoRaiz.Text =…
-
0
votes2
answers165
viewsA: How to take the first character of a String and make it uppercase by storing it in a variable?
Greetings, I suggest you follow @Maniero’s recommendations. In answer to your question, and just to your knowledge, follow the example: Change this: body: Console.WriteLine("Ja possui login?");…
-
2
votes2
answers93
views -
0
votes1
answer104
viewsA: Windowsforms - C# - Reportviewer - "Full HD Resolution" Remove Edges
Greetings. In my project I solved with the following code: First create the method Configurarmargens. private void ConfigurarMargens() { // Configura as margens do relatório…
-
1
votes2
answers289
viewsA: Read xml file ready
Greetings. What you are trying to get is the tag attribute <PATCHNODE>, so when you say: string fileName = n["NAME"].InnerText; It would be the content(text) of the tag <NAME> that…
-
0
votes2
answers1379
viewsA: Select line from a gridview and pass the values to a textbox
Greetings. Let’s assume a grid : myDataGridView 3 columns: Name | Age | Sex Carlos | - 12 - | - M Maria | - 18 - | - F John | - 16 - | - M // passando valor da linha selecionada para textBox…
-
1
votes3
answers5991
viewsA: Convert number to string to two decimal places
Decimal meuValor = 0; String minhaString = "010,87147"; meuValor = Math.Round(Convert.ToDecimal(minhaString), 2); I have not treated errors, your string should always contain a comma to work…
-
3
votes2
answers1578
viewsA: How to Perform IF function when selecting Combobox item?
You want to perform certain function when some item of your Combobox is selected right? At the event Selectedindexchanged of Combobox it is possible to perform such action, see. private void…
-
0
votes1
answer213
viewsA: Blank tablix
Greetings. I’ll post it like I do it and see if it helps. First make sure your DataTable He’s bringing the database. Then change the tapeworm and test to see if it’ll work. The only difference I see…
-
0
votes3
answers838
viewsQ: Check Whether Datagridview field of type Datagridviewcheckboxcolumn is marked
I have a dataGridView and do the check to see if in the column of type Datagridviewcheckboxcolumn there are any selected lines. If there is at least one line with this selected field executing an…
-
0
votes2
answers322
viewsA: Read and edit a specific word in a string (c#)
What I understood from your question was: You want to change what’s inside the tags <name>..esse texto aqui..</name> this text belongs to a String So do the following: // adicione a…
-
2
votes2
answers1331
viewsA: How to remove the value of the last Textbox position with Substring?
You can also use the Replace to remove any sign or character from your string. Say: String texto = "0,00%"; // Retirando o sinal de porcentagem texto = texto.Replace("%",""); Resultado: 0,00 //…
-
0
votes2
answers67
viewsA: Select line in datagridwier and write to the database
To check if the CHECKBOX column is checked I do the following way: // varrendo o dataGrid for (Int32 index = 0; index < meuGrid.Rows.Count; index++) { //verifica se a linha do grid está com o…
-
0
votes1
answer329
viewsA: Pagination x de y for Danfe in Report Viewer
I’m developing for Nfe too, I believe this part of DANFE is in the header(header) of the report yes. In the Nfe contributor manual in item 7.5 (page 140) it talks about additional sheets and these…