Questions tagged as 'vb.net'

1
answer

How does Visual Studio Edit and Continue work?

Visual Studio allows you to edit the C #, VB.NET, or C ++ code in debug when you hit a breakpoint or click the break button (pause icon). The tool name is Edit and Continue . According to the documentation    is a productivity feature that a...
asked by 25.10.2017 / 17:11
1
answer

Get an image of the body of an email, write to the database or in memory and show it in a new Viewer

I'm trying to build an E-mail viewer. To do this, I access my IMAP server and get mail, using the ComponentSoft.Net.Mail DLL. After getting the message, I want to display it in my viewer. However, I'm having problems with the Linked re...
asked by 29.01.2014 / 18:35
2
answers

How do I close / close a msgbox via code?

I tried to find out how I could do this, but I did not find anything clear. I want to know if it is possible to close the first msgbox , just after 2 seconds . Follow the Code: MsgBox("Iniciando Conexão Com a Impressora Fiscal", MsgB...
asked by 16.02.2015 / 12:54
2
answers

Make Regex.Split in between "..."

What regular expression do I use to get the comma character that is not within the "..." fields, eg: line1, "line2", "hello,world", 215, X + Y ^ ^ ^ ^ I want to get only the referrals, I'm using the expres...
asked by 15.02.2016 / 01:06
2
answers

Pass SQL value to a VB.Net variable?

I have this code that executes a SQL: strsql = "select Nome, Senha from users where Nome=@field1 and Senha=@field2" objcmd = New Data.MySqlClient.MySqlCommand(strsql, objconn) With objcmd .Parameters.AddWithValue("@field1", "valor1") ....
asked by 13.10.2017 / 01:37
2
answers

How to pass data from one table to another SQL

I'm having trouble passing data from one table to another: Example: Table 1 --- > Table 2 --- > delete all information from Table 1 I'm creating the project in VB.NET and using SQL     
asked by 03.03.2015 / 16:18
1
answer

What are the differences between the following casts and when to use each one?

   Casting   [...] process where one type of object is explicitly converted to another type, if conversion is allowed. Source: > Stack overflow in Portuguese Assuming the following situation: var i = 10 What are the di...
asked by 09.09.2016 / 00:51
1
answer

Difference between If and IIf

In VB.NET, what's the difference between using If and IIf under these conditions? If Condicao Then x() Else y() End If IIf(Condicao, x(), y())     
asked by 23.09.2016 / 04:18
3
answers

Search in List (Of String) - Case insensitive

How do you search for String on List(Of String) without considering the case? I am using .net 2.0. Contains does not allow you to pass any additional parameters. I tried to use Find but it also did not work. Dim...
asked by 22.10.2015 / 14:19
1
answer

HTTP Error 500 using HttpWebRequest

I come here to ask for help regarding HttpWebRequest requests. I need to get the html return from an HTTP 500 error (HTTP / 1.1 500 Internal Server Error). Could someone tell me how it could be done? Below is an example of a HttpWebRequest reque...
asked by 18.08.2015 / 20:39