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

Visual Basic

 
AnswerRe: ms-sql server database-bkp & restore Using VB6 Pin
abhinish2-Dec-05 19:56
abhinish2-Dec-05 19:56 
GeneralRe: ms-sql server database-bkp & restore Using VB6 Pin
Roy_Joseph5-Dec-05 19:55
Roy_Joseph5-Dec-05 19:55 
QuestionVB.Net Controls: Default-Value of a Property Pin
vocaris1-Dec-05 13:44
vocaris1-Dec-05 13:44 
AnswerRe: VB.Net Controls: Default-Value of a Property Pin
Christian Graus1-Dec-05 14:11
protectorChristian Graus1-Dec-05 14:11 
GeneralRe: VB.Net Controls: Default-Value of a Property Pin
vocaris2-Dec-05 2:23
vocaris2-Dec-05 2:23 
AnswerRe: VB.Net Controls: Default-Value of a Property Pin
[Marc]2-Dec-05 4:01
[Marc]2-Dec-05 4:01 
GeneralRe: VB.Net Controls: Default-Value of a Property Pin
vocaris2-Dec-05 5:02
vocaris2-Dec-05 5:02 
QuestionPublic Integers........ Pin
daviiie1-Dec-05 13:42
daviiie1-Dec-05 13:42 
This is probably a very dumb rookie question. But its too late and I want to go to bed Smile | :)

I have a button, and a label. When I click the button I want the label to go from 1, then to 2, 3 etc.

So obviosuly I need a

Dim i as integer
i = 0

and when I click the button a
i = i + 1
label.text = i

But the problem is that i cant seem to put the integer decleration anywhere that doesn't refresh the value. If I put a Public i as integer at the top, all I get when I click the button is 1 again and again.

I also put the code to insert it into a list box. And all I got were 1, 11, 111,1111 etc but obviously downward.

So how do I declare a "global" integer that will hold the value after it has been changed?

Like I said its probably unbelievably simple. But its slumber time for me. Hopefully I will have my answer when I wake up.

Cheers.
AnswerRe: Public Integers........ Pin
Christian Graus1-Dec-05 14:13
protectorChristian Graus1-Dec-05 14:13 
AnswerRe: Public Integers........ Pin
tusar1231-Dec-05 18:11
tusar1231-Dec-05 18:11 
Questionserver socket instance blocking Pin
mpage1-Dec-05 12:06
mpage1-Dec-05 12:06 
QuestionGraphics flickering in VB6 Pin
Hoopla!1-Dec-05 11:56
Hoopla!1-Dec-05 11:56 
AnswerRe: Graphics flickering in VB6 Pin
Christian Graus1-Dec-05 12:14
protectorChristian Graus1-Dec-05 12:14 
GeneralRe: Graphics flickering in VB6 Pin
Hoopla!1-Dec-05 14:28
Hoopla!1-Dec-05 14:28 
GeneralRe: Graphics flickering in VB6 Pin
Christian Graus1-Dec-05 14:34
protectorChristian Graus1-Dec-05 14:34 
AnswerRe: Graphics flickering in VB6 Pin
Joshua Quick1-Dec-05 12:18
Joshua Quick1-Dec-05 12:18 
AnswerRe: Graphics flickering in VB6 Pin
Joshua Quick1-Dec-05 13:11
Joshua Quick1-Dec-05 13:11 
GeneralRe: Graphics flickering in VB6 Pin
Hoopla!1-Dec-05 14:42
Hoopla!1-Dec-05 14:42 
Questionconverting a varchar datatype to a bit data type using VBScript Pin
abhishk2001@yahoo.com1-Dec-05 10:32
abhishk2001@yahoo.com1-Dec-05 10:32 
AnswerRe: converting a varchar datatype to a bit data type using VBScript Pin
KaptinKrunch1-Dec-05 18:47
KaptinKrunch1-Dec-05 18:47 
QuestionHelp for efficiently populating a listview Pin
eatwork1-Dec-05 9:17
eatwork1-Dec-05 9:17 
AnswerRe: Help for efficiently populating a listview Pin
jan larsen1-Dec-05 9:48
jan larsen1-Dec-05 9:48 
GeneralRe: Help for efficiently populating a listview Pin
eatwork2-Dec-05 6:34
eatwork2-Dec-05 6:34 
AnswerRe: Help for efficiently populating a listview Pin
Joshua Quick1-Dec-05 11:54
Joshua Quick1-Dec-05 11:54 
GeneralRe: Help for efficiently populating a listview Pin
eatwork2-Dec-05 6:32
eatwork2-Dec-05 6:32 

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.