Click here to Skip to main content
15,890,527 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: vb.net 2010 code check if values exist Pin
Richard Deeming20-Jan-17 2:04
mveRichard Deeming20-Jan-17 2:04 
Questionvb.net menu strip Pin
Member 1295543917-Jan-17 19:32
Member 1295543917-Jan-17 19:32 
QuestionRe: vb.net menu strip Pin
Richard MacCutchan17-Jan-17 22:23
mveRichard MacCutchan17-Jan-17 22:23 
AnswerRe: vb.net menu strip Pin
Dave Kreskowiak18-Jan-17 4:18
mveDave Kreskowiak18-Jan-17 4:18 
Questiondynamically generated custom class datagridview cellmousedoubleclick event Pin
Yiğit Sertaç Subaşı17-Jan-17 2:28
Yiğit Sertaç Subaşı17-Jan-17 2:28 
AnswerRe: dynamically generated custom class datagridview cellmousedoubleclick event Pin
Eddy Vluggen17-Jan-17 4:32
professionalEddy Vluggen17-Jan-17 4:32 
AnswerRe: dynamically generated custom class datagridview cellmousedoubleclick event Pin
Yiğit Sertaç Subaşı18-Jan-17 0:03
Yiğit Sertaç Subaşı18-Jan-17 0:03 
GeneralRe: dynamically generated custom class datagridview cellmousedoubleclick event Pin
Eddy Vluggen18-Jan-17 4:41
professionalEddy Vluggen18-Jan-17 4:41 
You're creating a new database-object and then checking the rowindex;
VB
If e.RowIndex = -1 Then
    Return
End If
Would you not want to do that as the first thing in the event? If it is -1, you won't need the database anyway.

I'd also recommend using the IDbConnection/IDbCommand structures to query a database; it is more recognizable and easier to maintain.

..the way it is now, some of our members would blast you for leaving your code vulnerable against SQL-injection.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: dynamically generated custom class datagridview cellmousedoubleclick event Pin
Yiğit Sertaç Subaşı19-Jan-17 6:04
Yiğit Sertaç Subaşı19-Jan-17 6:04 
GeneralRe: dynamically generated custom class datagridview cellmousedoubleclick event Pin
Eddy Vluggen19-Jan-17 8:45
professionalEddy Vluggen19-Jan-17 8:45 
Question7 zip the folder part by part using vbscript Pin
Member 126754616-Jan-17 20:14
Member 126754616-Jan-17 20:14 
AnswerRe: 7 zip the folder part by part using vbscript Pin
Eddy Vluggen17-Jan-17 4:30
professionalEddy Vluggen17-Jan-17 4:30 
QuestionHow to embed Excel in web browser in vb .net Pin
Member 887818616-Jan-17 2:27
Member 887818616-Jan-17 2:27 
AnswerRe: How to embed Excel in web browser in vb .net Pin
Eddy Vluggen16-Jan-17 2:31
professionalEddy Vluggen16-Jan-17 2:31 
QuestionMessage Closed Pin
15-Jan-17 4:41
Live for Coding15-Jan-17 4:41 
AnswerRe: How to get JSON data into array Pin
Richard MacCutchan15-Jan-17 22:59
mveRichard MacCutchan15-Jan-17 22:59 
QuestionExcel open as ADODB.Connection Pin
hansoctantan12-Jan-17 2:24
professionalhansoctantan12-Jan-17 2:24 
AnswerRe: Excel open as ADODB.Connection Pin
Dave Kreskowiak12-Jan-17 2:45
mveDave Kreskowiak12-Jan-17 2:45 
GeneralRe: Excel open as ADODB.Connection Pin
hansoctantan12-Jan-17 2:57
professionalhansoctantan12-Jan-17 2:57 
GeneralRe: Excel open as ADODB.Connection Pin
Dave Kreskowiak12-Jan-17 6:33
mveDave Kreskowiak12-Jan-17 6:33 
GeneralRe: Excel open as ADODB.Connection Pin
hansoctantan13-Jan-17 2:24
professionalhansoctantan13-Jan-17 2:24 
GeneralRe: Excel open as ADODB.Connection Pin
Eddy Vluggen13-Jan-17 2:51
professionalEddy Vluggen13-Jan-17 2:51 
GeneralRe: Excel open as ADODB.Connection Pin
hansoctantan13-Jan-17 3:01
professionalhansoctantan13-Jan-17 3:01 
GeneralRe: Excel open as ADODB.Connection Pin
Eddy Vluggen13-Jan-17 3:21
professionalEddy Vluggen13-Jan-17 3:21 
GeneralRe: Excel open as ADODB.Connection Pin
Dave Kreskowiak13-Jan-17 5:04
mveDave Kreskowiak13-Jan-17 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.