Posts by Luciano Trez • 96 points
4 posts
-
1
votes2
answers649
viewsA: Problem with connection between EF and Postgresql
It seems some version incompatibility of assemblies. Try to update all references via nuget. I use a little different settings in webconfig, if help follows: <entityFramework>…
-
1
votes3
answers347
viewsA: Form Inheritance created in Runtime
You are assigning an event and not method directly. I suggest looking at the Tcustomform class that is the parent class of Tform, there are methods that can be overridden. So, use Doshow, Doclose,…
-
2
votes1
answer1633
viewsA: Add Datatable C# columns with Linq
Nothing wrong, you should check if the Datatable is filled correctly. Follow an example to help. //cria DataTable var dt = new DataTable("teste"); dt.Columns.Add("valor", typeof(decimal)); //cria…
-
1
votes1
answer176
viewsA: How to restrict formats in c#’s textbox
If you only want to type numbers you can assign an event to the textbox.Keypress to handle this. Then mark the maximum size of characters to restrict the number of digits. public Form1() {…