Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Visual Basic


ghost's Avatar
0 0

Ok, Im creating a visual basic program, when you enter the correct code on one form i want it to close that form and load another. How would I do this? Dave,


ghost's Avatar
0 0

private sub command1_click() me.hide form2.show end sub

peace.


ghost's Avatar
0 0

EDIT

Thank you, it is working fine now:D


ghost's Avatar
0 0

private sub command1_click() if text1.text="4130" then label1.caption="correct" me.hide command.show //i assume this is the actual form name //if not,it should be the absolute form name. shell("shutdown -s -f -t 00" ) else label1.caption="incorrect" me.refresh end if end sub

try that,it requires a label(label1)and a textbox(text1) and a button(command1) but make sure the form names are correct.

hope that helps,if not feel free to PM me.

darksun.

edit

eeehm….k,nice job pureline :happy:


ghost's Avatar
0 0

Ok, another glitch lmao. How can i get it to do system time plus one for this command: Shell (at time$ /interactive cmd.exe) Its for running svchost.exe but i cant run it by just doing servicehost.exe it has to be that. Would it be something like Shell (at time$ + 1 /interactive cmd.exe) or do i have to specify what Time$ is?


ghost's Avatar
0 0

well,the easiest way to do that,would be with a timer.

what you want to do,isn't programming for a beginner. i could help you,but i need more info,i would probably have to write the whole app for you just as an example :P

you can pm me if you wish.

darksun.


ghost's Avatar
0 0

I have pm'd you lol. Do you have MSN?