Posts by Leandro • 327 points
24 posts
-
2
votes1
answer69
viewsQ: How to split a Datetime-like column from an Entity Framework query?
I own a field of the kind DateTime? (void allowed) which is in the full date/hour formed (dd/MM/yyyy hh:mm:ss). I need to display the date and time in separate columns in a datagridview. I tried to…
-
1
votes1
answer98
viewsA: Error creating an executable distribution with sql database using Entity Framework
I ended up finding a better solution for my need: Sqlite. Sqlite also supports the Entity Framework and is much simpler to use in a stand-alone application, requires no additional installation on…
-
2
votes1
answer98
viewsQ: Error creating an executable distribution with sql database using Entity Framework
I am developing a C# winforms desktop application in Visual Studio with Sql database through the Entity Framework. The intention is that it be a local database, the program will be installed on…
-
1
votes1
answer648
viewsQ: Import MS Access data to Sql Server via code
I need to import data that is in an Access database via Sql Server code. My software that is made in C# for many years has been integrated into an Access database. From now on we are migrating to…
-
0
votes1
answer79
viewsQ: Conflict between similar objects in the Entity Framework
I have the following class: public class Conteudo { public long Id { get; set; } public string Categoria { get; set; } public string SubCategoria { get; set; } public string Descricao { get; set; }…
-
0
votes1
answer122
viewsQ: Error trying to save information to the database via Entity Framework
My project has the following classes: public class Manifestacao { public long Id { get; set; } public string NumeroChamado { get; set; } public virtual Cliente Cliente { get; set; } public virtual…
-
0
votes1
answer54
viewsQ: Error loading database information to a datagridview via Entity Framework
My project has four classes: public class Manifestacao { public long Id { get; set; } public string NumeroChamado { get; set; } public string DataHoraReg { get; set; } public Cliente Cliente { get;…
-
1
votes0
answers197
viewsQ: How to implement Navigation Drawer with Bottom Navigation in the same application
In a app that has NavigationDrawer with Bottom Navigation, what would be the recommended path for implementation? I searched for tutorials and did not even find in the official documentation. I…
-
1
votes1
answer1164
viewsA: Problems trying to send email via smtp server
I was able to solve the problem through the people who manage the company’s network. They said that the server was blocking.
-
2
votes1
answer1164
viewsQ: Problems trying to send email via smtp server
I am developing an application which sends emails via smtp.gmail.com server. When I am connected to a common network, it works perfectly. But, by the network of my company occurs the following…
-
0
votes2
answers902
viewsQ: How to send form fields by email in a table format?
My application takes some data that the user fills in the Textbox fields (txtEmpresa, txtContato, etc...) and sends it to a preconfigured email. I can send the data via smtp, but they are being sent…
-
1
votes1
answer79
viewsQ: How to count how many instances of a program are running from a shared folder?
I am developing an application that runs from a shared folder. In the same folder is the Access database. To avoid conflicts in Access, it will only be allowed to run by only one user at a time, and…
-
6
votes2
answers9412
viewsQ: Is it possible to make an INSERT INTO SELECT + other values outside of SELECT?
I need to insert into a table ACCESS some values from another table plus the time and the user who made the record. I know to get the data from the other table just do something like: INSERT INTO…
-
1
votes1
answer74
viewsQ: How to make Numericupdown return to the minimum value when Upbutton is clicked and the current value is the maximum?
I’m wearing a NumericUpDown in an application where the user can set a desired time for any action to be performed. There are three NumericUpDown: one for the hour (from 0 to 23), another for minute…
-
0
votes1
answer1369
viewsA: How to browse a Dataset based on the data contained in a Datagridview?
The mistake was in: dgvListage.CurrentRow.Cells["Balance"]. Value = result; It worked as follows: void VarreDataGrid() { var resultado = 0; string strRowMaterial = string.Empty; Conexao ca = new…
-
1
votes1
answer1369
viewsQ: How to browse a Dataset based on the data contained in a Datagridview?
I need to fill out a datagridview which already contains the list of all items. This is based on the records of material movements in a DataSet. The datagridview already has all items, for example:…
-
0
votes1
answer137
viewsA: How to print two images on two different pages at once?
I was able to solve it thanks to the help of a member of the stack (English version): https://stackoverflow.com/questions/37888445/how-to-print-two-bmp-into-two-different-pages/37890164#37890164…
-
0
votes1
answer137
viewsQ: How to print two images on two different pages at once?
Hello! I can print a panel (pnlPrint) using the following code. But, I am not able to print a datagridview that already belongs to the same form together, on the second page so that the two leave in…
-
0
votes2
answers131
viewsA: Error while trying to add an auto-incrementable column to a datagridview
I was able to find a solution as follows: ds.Tables["DetGraf"].Columns.Add(Legenda); int index = 0; foreach (DataRow row in ds.Tables["DetGraf"].Rows) row.SetField(Legenda, ++index);…
-
0
votes2
answers131
viewsQ: Error while trying to add an auto-incrementable column to a datagridview
I’m trying to add a column self-adjusting in a datagridview but I am not able to figure out what is missing to work properly. My program reads the data from a database table and displays in a…
-
0
votes2
answers994
viewsQ: A single form with multiple panels or MDI Forms. Which option is more efficient for program performance?
I’m a beginner in C#. I’m developing a simple application, which has several windows. Depending on what you need to do in the program, the user needs to open multiple windows to get to the required…
-
0
votes0
answers431
viewsQ: Error trying to print document: The RPC server is not available
I made a software where one of the pages can be printed. On some computers it works normally and prints the page in PDF without problems. In others, when trying to print, the error appears: "The RPC…
-
0
votes1
answer644
viewsQ: Problems when working with dates in the database using a maskedtextbox in dd/MM/yyyy format
I am using a Maskedtextbox in BR culture to force the user to fill in the date in the correct format (dd/MM/yyyy). I remove the Maskedtextbox string to insert into the database and record…
-
1
votes1
answer648
viewsQ: Error trying to create Excel table with Closedxml
I’m trying to create an application that generates an Excel spreadsheet through Visual Studio 2015 using Closedxml as a reference. As I found some examples on the web, I added it to the code (using…