Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

VB Help


  • Please log in to reply

#1
Tigger93

Tigger93

    Trusted Helper

  • Retired Staff
  • 1,870 posts
Okay, so I was messing around with VB, and have come up with a problem. I have 3 buttons on the "main screen". Let's name the first button, button 1. When I press that button, is there a way so it takes you to a different screen, like to a screen that says something like "hi" or something? If so, is there a code for it? Thanks. :tazz:

Edited by Tigger93, 18 March 2006 - 11:07 AM.

  • 0

Advertisements


#2
Spike

Spike

    nOoB

  • Member
  • PipPipPipPip
  • 1,357 posts
Hey there Tigger93, it depends what you want it to do. Do you want it to go to a diffrent form or do you want a message box to come???
  • 0

#3
Tigger93

Tigger93

    Trusted Helper

  • Topic Starter
  • Retired Staff
  • 1,870 posts
Hi spike_hacker_inc, I would like it to go to another form.
  • 0

#4
Spike

Spike

    nOoB

  • Member
  • PipPipPipPip
  • 1,357 posts
Ok, start by going to the "project explorer" in VB (This is usually the windows where all your forms are, top right corner) right click and "Add..." a "Form"

By defualt the form will be name "form2". Double click on your command button on form 1. and type in.

=====================
Private Sub Command1_Click()

Me.hide
Form2.show

End Sub
=====================

Thats all it is to it, if you want form 1 to still be visible when you click the button just take out "me.hide"

Cool, anything else??? :tazz:
  • 0

#5
Tigger93

Tigger93

    Trusted Helper

  • Topic Starter
  • Retired Staff
  • 1,870 posts
Ahh, thanks much! :tazz:
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP