Jump to content


Photo

Visual Basic 6, need help


  • Please log in to reply
3 replies to this topic

#1 Spartacus

Spartacus

    Young Padawan

  • Members
  • Pip
  • 129 posts
  • Gender:Male
  • Location:Sweden
  • Interests:Photoshop, Vb, Basketball

Posted 02 November 2006 - 12:17 PM

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 :D


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 :)
Is it some thing I have to add so they work?


and finaly :D
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.

Edited by Prince Mikey, 09 November 2006 - 12:07 PM.


#2 Boom_

Boom_

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 22 December 2006 - 07:13 AM

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.

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.

#3 Spartacus

Spartacus

    Young Padawan

  • Members
  • Pip
  • 129 posts
  • Gender:Male
  • Location:Sweden
  • Interests:Photoshop, Vb, Basketball

Posted 22 December 2006 - 06:42 PM

I have already figured everything out:P

thanks though ;)

#4 Boom_

Boom_

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 23 December 2006 - 11:13 PM

ok no worries, I'm afraid I registered a bit late :flowers:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users