Questions tagged as 'vb.net'

1
answer

Raw does not render link in vb.net

I'm doing a code snippet that also returns a string in vb.net mvc 4.5 however the string is mounted correctly. But in the view @Html.Raw(item.metodo.ToString()) it does not show the links the string I'm mounting so strDiv += "<a...
asked by 28.03.2016 / 21:38
1
answer

Possibility to drag a form with the mouse when its title bar was hidden

Ihaveaproblem!WhenItrytomovemyprogramsomewhereelseonthescreen,Icannot,itseemstobefixed.Doesanyoneknowhowtosolveit?@PS:I'vetriedthiscodeprovidedbyRobertoanditdidnotwork.PublicClassForm1PrivateWM_NCHITTESTAsInteger=&H84PrivateHTCLIENTAsIntege...
asked by 04.10.2015 / 22:14
1
answer

VB - Too many arguments

Well, I have the following error: Error: Too many arguments to 'Friend Sub LerClientes1()'. In the following code: Imports MySql.Data.MySqlClient 'importar as classes do MySQL Imports MySql.Data.MySqlClient.MySqlConnection 'importar...
asked by 08.06.2017 / 10:19
2
answers

Only allow 5 attempts on the EntityFrameWork key duplication? to 6 on SaveChange ()

In key duplication when burning with EntityFrameWork in competition with many users, it only allows 5 attempts and in 6 SaveChange () tag (example 1). If it is with SqlConnection it does not give a problem (example 2). Example 1: Public...
asked by 17.02.2017 / 13:07
1
answer

Data does not appear in the datagridview, even when setting a populated datasource, Why?

I'm trying to capture some information from the database, filter it, and then do validation tests on each of the returned rows. Then I try to get the rows that failed the test and insert into a new datatable. However, after having the datatable...
asked by 16.04.2014 / 15:18
1
answer

Read a .txt file in ANSI VB.net

I'm trying to read a text file using visual basic, but it puts "?" in words with accent and cedilla, for example, how do I read the files in ANSI format? this does not work: Dim ArqTemp As String = File.ReadAllText(Arquivo, Encoding.UTF8)    ...
asked by 31.07.2015 / 16:57
1
answer

How to get text from a Span with Class [VB.NET]

<span class="odometer-value">0</span> This is the code. I need to get the result "0" and put it in a Label. But sometimes you can have ex: 10 (2 numbers) and the code will be: <span class="odometer-value">1</span&g...
asked by 30.10.2018 / 18:22
1
answer

How to Select the second line of a text in textbox and change it to the first line

I'm trying to make a text editor, but I'm finding it difficult to find a solution to select the second line of a text in multiple lines textbox and I want to change the second line by the pimeira. I've tried searching for it and can not find any...
asked by 24.10.2018 / 03:38
1
answer

How to create a basic browser only to execute embedded JavaScript codes

How can I create a basic browser in VB.NET or C # and execute JavaScript code inside it, and without showing the code? Because I wanted to hide my JS code.     
asked by 27.05.2018 / 01:07
2
answers

I can not decrease the quantity of stock

I am trying to reduce the quantity of the stock at the time of the sale and without success, I used the code below, no error appears .. Public Sub UpdateDecreaseQuantity() Try For Each row As DataGridViewRow In DataGridView1.Rows...
asked by 07.12.2017 / 09:15