Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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,355 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,355 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