Click here to Skip to main content
15,886,919 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: connection string Pin
Tamimi - Code27-Feb-07 19:28
Tamimi - Code27-Feb-07 19:28 
AnswerRe: connection string Pin
samerh27-Feb-07 21:15
samerh27-Feb-07 21:15 
QuestionPrint Screen Function? Pin
Yep-ItsMe27-Feb-07 18:59
Yep-ItsMe27-Feb-07 18:59 
AnswerRe: Print Screen Function? Pin
Harini N K27-Feb-07 19:13
Harini N K27-Feb-07 19:13 
GeneralRe: Print Screen Function? Pin
Yep-ItsMe28-Feb-07 3:49
Yep-ItsMe28-Feb-07 3:49 
Questionwhy aint my else working!! Pin
harveyhanson27-Feb-07 16:26
harveyhanson27-Feb-07 16:26 
AnswerRe: why aint my else working!! Pin
Christian Graus27-Feb-07 17:00
protectorChristian Graus27-Feb-07 17:00 
AnswerRe: why aint my else working!! Pin
Guffa27-Feb-07 22:56
Guffa27-Feb-07 22:56 
It adds the colon as an in-line line break, because you can't have the statement following the Else on the same line.

Your second If statement is only affecting the statement on the same line, and the Else belongs to the first If statement.

Here is your code indented for clarity, and rearranged to not use one-line If statements:

If stage = 1 Then
   lblFormName.Text = "Top Row"
   If intScoreTop <= 4 Then
      pcbIcon.Image = My.Resources.Cross_big()
   End If
   lblScore.Text = "You did ok, but only got " & intScoreTop & vbCrLf & " out of 10"
Else
   lblScore.Text = "Well done, you got " & intScoreTop & vbCrLf & " out of 10"
End If



---
single minded; short sighted; long gone;

QuestionCreate Share Folder in VB.NET Pin
alexfromto27-Feb-07 14:26
alexfromto27-Feb-07 14:26 
AnswerRe: Create Share Folder in VB.NET Pin
Dave Kreskowiak28-Feb-07 1:55
mveDave Kreskowiak28-Feb-07 1:55 
GeneralRe: Create Share Folder in VB.NET Pin
alexfromto1-Mar-07 9:38
alexfromto1-Mar-07 9:38 
GeneralRe: Create Share Folder in VB.NET Pin
Dave Kreskowiak1-Mar-07 14:25
mveDave Kreskowiak1-Mar-07 14:25 
GeneralRe: Create Share Folder in VB.NET Pin
alexfromto2-Mar-07 3:16
alexfromto2-Mar-07 3:16 
GeneralRe: Create Share Folder in VB.NET Pin
Wrongway432125-Sep-07 9:30
Wrongway432125-Sep-07 9:30 
Questionposition messagebox? Pin
cstrader23227-Feb-07 13:30
cstrader23227-Feb-07 13:30 
AnswerRe: position messagebox? Pin
Dave Kreskowiak27-Feb-07 13:42
mveDave Kreskowiak27-Feb-07 13:42 
QuestionWeb automation and scraping? Pin
chantymalo27-Feb-07 11:08
chantymalo27-Feb-07 11:08 
QuestionReadAllText vs .Peek = -1 [modified] Pin
Marcus J. Smith27-Feb-07 10:28
professionalMarcus J. Smith27-Feb-07 10:28 
AnswerRe: ReadAllText vs .Peek = -1 Pin
TwoFaced27-Feb-07 12:09
TwoFaced27-Feb-07 12:09 
Questionflashing text in lbl box in vb.net Pin
bapu288927-Feb-07 10:12
bapu288927-Feb-07 10:12 
AnswerRe: flashing text in lbl box in vb.net Pin
JUNEYT27-Feb-07 11:06
JUNEYT27-Feb-07 11:06 
AnswerRe: flashing text in lbl box in vb.net Pin
TwoFaced27-Feb-07 12:05
TwoFaced27-Feb-07 12:05 
GeneralRe: flashing text in lbl box in vb.net Pin
bapu288928-Feb-07 9:28
bapu288928-Feb-07 9:28 
QuestionListbox loop Pin
China-Gary27-Feb-07 6:03
China-Gary27-Feb-07 6:03 
AnswerRe: Listbox loop Pin
haggenx27-Feb-07 7:13
haggenx27-Feb-07 7:13 

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.