Help - Search - Members - Calendar
Full Version: Visual Basic 6, need help
Pixel2Life Forum > Help Section > Desktop Programming
Spartacus
Okaay, I'm working on a big project now in VB 6 but I need some help!!

I need login but how do you do so if the user enters the wrong password it takes you to an other form but if the user enters the right password it takes you to the correct form?
I don't want a user login just a password login if you know what mean.
EDIT: I figured out the login part victory.gif


what should you write so when a person clicks on a button and it takes you to paint??
.....C:\WINDOWS\System32\mspaint.exe

2EDIT:btw I need help with one more thing. what is the code so the user can se his Local IP and Host name?
Label3.Caption = WC.LocalIP
Label6.Caption = WC.LocalHostName

I have used those codes before but they don't work know sad.gif
Is it some thing I have to add so they work?


and finaly tongue.gif
what should I write so when a person clicks on a button it takes you to a website??


I would be very happy if someone could help me with these problems.


peace.
Boom_
QUOTE
what should you write so when a person clicks on a button and it takes you to paint??
.....C:\WINDOWS\System32\mspaint.exe
You can vb's shell() function, just give the function the path to the program you want to launch or there's the more powerful API: ShellExecuteA I think, cant remember, havent used vb6 in a while.

QUOTE
what should I write so when a person clicks on a button it takes you to a website??


Again you can use the shell function e.g. explorer.exe URL or better yet, make use of the ShellExecuteA api so you can launch the url in the users default browser, the first method unfortuately defaults to using IE when your user may prefer firefox or opera etc.
Spartacus
I have already figured everything out:P

thanks though laugh.gif
Boom_
ok no worries, I'm afraid I registered a bit late w00t.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.