Posts by Danillo Victtor • 539 points
28 posts
-
0
votes1
answer52
viewsQ: C# MVC project launching Exception System.Invalidcastexecption
Dear colleagues, I am trying to learn how to develop an MVC project. But I am having some difficulties. When running the program, it runs normally, but when I want to record a product input note…
-
1
votes1
answer93
viewsA: Get the ID value in Datagridviewe C#
I got the result using this line of code dataGridView1.CurrentRow.Cells[0].Value.ToString()
c#answered Danillo Victtor 539 -
-1
votes1
answer93
viewsQ: Get the ID value in Datagridviewe C#
I have a datagridview and in this grid there is data associated with a database table, so I wanted to take only the id of the value that is in the datagridview, and play in a property of type int…
c#asked Danillo Victtor 539 -
0
votes1
answer254
viewsA: Insert using parameters in the C# application for the Oracle database error: ORA-01036: invalid variable name/number
This information should be very useful: This information has been removed from Microsoft’s official documentation…
-
0
votes1
answer902
viewsQ: Generate plot values and dates in a datatable c#
Hello, I have a form where is placed a Total Sale Value, the Number of Installments of Payment. Then I would like my Datatable that is located in the other Form to present the values and the due…
-
0
votes0
answers76
viewsQ: Write an XML file inside Solucion C#
Good evening Everyone, I would like a help, the structure of my project is according to the image below. I would like to import data from my table to this 'Arq.xml' file that is inside the project.…
-
1
votes1
answer445
viewsA: How to check if the user typed something when prompted for a C#entry
Console.Write("Informe um valor: "); string value = Console.ReadLine(); if (String.IsNullOrEmpty(value)) { Console.WriteLine("O usuário não informou valor"); goto Start; } else {…
c#answered Danillo Victtor 539 -
1
votes1
answer813
viewsA: INNER JOIN WITH WHERE MYSQL
SELECT a.website_id as websiteid, b.category_id as categoria, b.position as positioncat FROM catalog_product_website a INNER JOIN catalog_category_product b ON a.website_id = b.product_id WHERE…
-
0
votes2
answers566
viewsA: Select values that are not in another table
I believe this image will help you.
-
0
votes3
answers79
viewsA: C# doubling value alone
First of all, variables must be initialized. However, the code can be simplified both for better understanding and for reading the code itself. Note below the code with the change and compare with…
-
1
votes2
answers776
viewsA: Visualg - Boolean result
I tested your code with some changes and other values, but the result keeps getting a boolean value 'True' and printing on the value screen EQUAL: Observe... algoritmo "semnome" var x: inteiro…
-
3
votes1
answer236
viewsA: Difference between select a. or b
Suppose the example we want to list the name of the Employee and their respective Position: SELECT f.nome, d.cargo FROM Funcionario f INNER JOIN Departamento d ON F.IdCargo = D.IdCargo Obserse that…
-
1
votes1
answer122
viewsA: Problem to save content C#
A suggestion would be you use the using clause. Example: private void salvarComoToolStripMenuItem_Click(object sender, EventArgs e) { using(SaveFileDialog fileDialog = new SaveFileDialog()) {…
-
4
votes2
answers455
viewsQ: How to fix this error "Cannot Convert from 'int' to 'char[]'
Why is this error presented? I believe the logic is right.…
-
1
votes1
answer378
viewsQ: Force user to select Radio Button inside the Groupbox
How do I force user to select a Radio Button inside the Groupbox. Example of the image below…
-
2
votes2
answers1331
viewsQ: How to remove the value of the last Textbox position with Substring?
How to remove the value of the last position of the TextBox with the Substring? Suppose the TextBox receive a value with this mascara = 0,00%, however, I just want to save the numbers and not the…
-
6
votes3
answers2216
viewsQ: How to reverse an integer?
Note this statement: /* * Faça um programa que peça um numero inteiro positivo e em seguida mostre * este numero invertido. Exemplo: * o 12376489 * => 98467321 * */ Console.Write("Informe um…
-
2
votes2
answers48
viewsA: Selection of chekbox in datagridview
I believe you are putting this code in the wrong event or method. Do it like this: private void btnImprimir_Click(object sender, EventArgs e) { printDocument1.Print(); } In the…
c#answered Danillo Victtor 539 -
0
votes1
answer605
viewsA: checkbox in datagridview
Try to follow these steps, I believe it will help you. Select your Datagridview within the Form. Select the Datagridview Smart-Tag according to the image. When selecting appear the following…
-
0
votes1
answer19
viewsQ: Change Toolstripstatus value while typing in Richtextbox
I’m developing a little text editor just to practice. But I ran into a little problem, i wanted that while the user is typing, the value of Toolstripstatus that by default is 'READY', wanted to…
-
1
votes1
answer379
viewsQ: Do not go to another FORM1 while open FORM2 esiver
Suppose you have two Forms, the first Form1 is the main screen to which you give an option to open any other form, when any form is open, the user cannot go to the main form until you close/close…
-
0
votes1
answer70
viewsA: Problem using Bindingsource C#Canceledit()
What you can understand is that when you click the new button, c# creates a new instance. It tries to destroy the instance manually. It does so: private void btnCancelar_Click(object sender,…
-
2
votes5
answers38715
viewsA: Calling a form and closing a form in the same event
Hello, I was having the same problem that our colleague @Andersonbp mentioned, there searching on the internet, I found a reply from @Juniortunjr that was easier to understand and solved my problem.…
-
0
votes1
answer541
viewsQ: Pass data from one gridview to another gridview
I have a datagridview1 that searches the database for the data and shows the information, I want to click the add button to take the selected line in the first datagridview1 and move to another…
c#asked Danillo Victtor 539 -
2
votes1
answer162
viewsQ: Load the combobox
When save a dice in the combo box, and in this combo box has two options (gasoline, diesel, alcohol, natural gas) When I select diesel and save it works normally. The problem is when I want to load…
-
1
votes1
answer476
viewsQ: Radio Button on C#
Hello, I have a registration screen and save everything ok according to the data filled, but when I click the change button returns all values entries, but does not return radio button selected as…
-
0
votes1
answer117
viewsQ: Problems with the DAO
My DAL class launched the Typeinitializationexception exception. How to correct? Follows the code public partial class FrmConvenio : Form { ConvenioDAO convenioDAO = new ConvenioDAO(); // Lança…
-
0
votes1
answer769
viewsQ: Database connection in Windows Form?
How to make/call the database connection in Windows Form? Knowing that the database configuration is in the app.config