Questions tagged as 'vb.net'

1
answer

Why can I invoke functions without parentheses in VB.NET?

In C #, this code does not compile: public static string Teste(){ string val = ""; return val.Trim; } Because the Teste function requires a return of type string , and Trim is a MethodGroup . That makes per...
asked by 21.07.2017 / 14:47
3
answers

Dollar next to number in ToString formatting

When I try to format a value using .ToString("c2") .NET, the currency symbol is stuck with the number. This makes the formatting ugly and wrong to my point of view. Example: cdec("1234.56").toString("c2") | Resultando: "R$1.234,56"...
asked by 03.12.2017 / 16:22
1
answer

How to simulate the click of a button via code?

Buttons in WPF applications do not have Button.PerformClick . So, how could I simulate the click of a button via code?     
asked by 20.12.2016 / 22:26
1
answer

How to Duplicate Values from an ArrayList

I would like to know how I can separate values that show duplicity, an example: I have a% Variable with% set to FormaPagto , In this variable I have 6 data:    0 - Money 1 - Debt 2 - Debt 3 - Money 4 - Money 5 -   Check What I...
asked by 28.05.2015 / 15:42
1
answer

How to write bit information to SQL Server database?

I am developing a registry system in VB and need help writing the CheckBox information to the SQL Server database. The column is in bit in the database, I do not know how to pass the parameter so that the user's choice is saved...
asked by 25.09.2015 / 16:52
2
answers

Compare the values of an entire column of the DataGridView with a variable

I would like to compare the value of a string variable with an entire column of the DataGridView. There is a code that looks at the whole column, more or less textbox.Text = datagridview.columns("nome_da_coluna").value Or do I have to...
asked by 02.02.2014 / 02:39
1
answer

Grid Fill dynamically with dapper framework return

I have a screen written in VB.NET WinForms, where the goal of it will be to execute SQL commands without the need to open an sql studio. For simpler commands like delete, update, alter table among others, it already works perfectly. Now, the...
asked by 03.02.2017 / 20:37
1
answer

Delay in creating internal document through V9 engines

Good afternoon, I have a web application to create internal documents in Spring ERP. The problem is that each document takes, on average, 2 to 3 minutes to be created. When the document has 1 or 2 lines it takes but creates, but when it takes...
asked by 12.11.2018 / 15:48
2
answers

Javascript - Populating a field with paragraph

I'm developing a javascript to populate a text box, however I came across a situation that is generating me difficulty. I need popular with this message for example: TEST TEST TEST But I can not bring row breaks when I populate the f...
asked by 28.08.2015 / 15:30
1
answer

What are the differences between these NuGet packages?

I use the JavaScriptEngineSwitcher.Msie package in my webapps in asp.net mvc, I found 2 more JavaScriptEngineSwitcher packages what the difference between them What are the pros and cons? JavaScriptEngineSwitcher.V8 JavaScriptEngineSwitche...
asked by 17.07.2015 / 16:41