Click here to Skip to main content
15,892,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionImage Element Qn Pin
honkie_thong2-Dec-06 17:12
honkie_thong2-Dec-06 17:12 
AnswerRe: Image Element Qn Pin
Dave Kreskowiak2-Dec-06 17:26
mveDave Kreskowiak2-Dec-06 17:26 
GeneralRe: Image Element Qn Pin
honkie_thong2-Dec-06 17:35
honkie_thong2-Dec-06 17:35 
GeneralRe: Image Element Qn Pin
Dave Kreskowiak2-Dec-06 18:21
mveDave Kreskowiak2-Dec-06 18:21 
GeneralRe: Image Element Qn Pin
honkie_thong2-Dec-06 19:02
honkie_thong2-Dec-06 19:02 
GeneralRe: Image Element Qn Pin
Dave Kreskowiak3-Dec-06 4:28
mveDave Kreskowiak3-Dec-06 4:28 
GeneralRe: Image Element Qn Pin
Guffa3-Dec-06 11:23
Guffa3-Dec-06 11:23 
Questiontimer and showing forms Pin
jady842-Dec-06 8:52
jady842-Dec-06 8:52 
Hi,
Im' getting system errors and i cant figure out whats wrong with my code. Im basically trying to get a form to pop up, when the timer function hits a certain time.
basically after 10secs a form (alternative1) should automatically pop up, then 35secs later the form alternative2 should popup.
below is the code.

int numberofcalls = 0 <---error: declaration expected?

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

if numberofcalls = 0 then
form alternative1 = new form() <-- form is a type and cannot be used as an expression (same error for alternative1)

alternative1.show() <-- reference to non-shared members requires an object reference
numberofcalls = 1
timer1.interval = 25000
end if

if numberofcalls = 1 then
form alternative2 = new form
alternative2.show()
numberofcalls = 2
timer1.interval = 30000
end if


help....
AnswerRe: timer and showing forms Pin
Guffa2-Dec-06 9:16
Guffa2-Dec-06 9:16 
AnswerRe: timer and showing forms Pin
The ANZAC2-Dec-06 18:58
The ANZAC2-Dec-06 18:58 
AnswerRe: timer and showing forms Pin
Taylor Kobani3-Dec-06 2:56
Taylor Kobani3-Dec-06 2:56 
QuestionCan Perl be used in Visual Studio? Pin
someone_blank2-Dec-06 3:09
someone_blank2-Dec-06 3:09 
AnswerRe: Can Perl be used in Visual Studio? Pin
mr_lasseter2-Dec-06 5:03
mr_lasseter2-Dec-06 5:03 
GeneralRe: Can Perl be used in Visual Studio? Pin
someone_blank2-Dec-06 17:28
someone_blank2-Dec-06 17:28 
QuestionApplications in a ListView Pin
Zaegra2-Dec-06 1:46
Zaegra2-Dec-06 1:46 
AnswerRe: Applications in a ListView Pin
Thomas Stockwell2-Dec-06 9:28
professionalThomas Stockwell2-Dec-06 9:28 
AnswerRe: Applications in a ListView Pin
Nandha Kumar3-Dec-06 6:27
Nandha Kumar3-Dec-06 6:27 
QuestionADO problem Pin
obarahmeh2-Dec-06 1:36
obarahmeh2-Dec-06 1:36 
AnswerRe: ADO problem Pin
Bassam Saoud2-Dec-06 2:04
Bassam Saoud2-Dec-06 2:04 
GeneralRe: ADO problem Pin
obarahmeh2-Dec-06 2:06
obarahmeh2-Dec-06 2:06 
AnswerRe: ADO problem Pin
Guffa2-Dec-06 8:45
Guffa2-Dec-06 8:45 
GeneralRe: ADO problem Pin
obarahmeh2-Dec-06 20:16
obarahmeh2-Dec-06 20:16 
GeneralRe: ADO problem Pin
Bassam Saoud2-Dec-06 9:20
Bassam Saoud2-Dec-06 9:20 
QuestionStrings Pin
Cedrickdeorange2-Dec-06 1:12
Cedrickdeorange2-Dec-06 1:12 
AnswerRe: Strings Pin
mr_lasseter2-Dec-06 4:57
mr_lasseter2-Dec-06 4:57 

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.