Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,582 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,929 people online right now. Registration is fast and FREE... Join Now!




Button Click Event

 
Reply to this topicStart new topic

Button Click Event, Need help

jboy012000
7 Oct, 2008 - 05:58 AM
Post #1

New D.I.C Head
*

Joined: 7 Oct, 2008
Posts: 27

Hi All,

I am trying to create a simple little program were I have my main screen with 8 buttons in it, what I want to happen is when I click a button a new screen opens up.

I want to be able to change some of the properties in the new screen as I want to add some text boxes and images to that screen.

So what I really need to know is do I need to add the new screens to my project and edit them ( 1 screen for every button)

Also how do I wire up the button with the event handler, I know to double click the button to create the click event but what code do I need to enter so that when it is clicked it will open the window saved in my project.

Thanks
User is offlineProfile CardPM
+Quote Post

thava
RE: Button Click Event
7 Oct, 2008 - 04:53 PM
Post #2

D.I.C Regular
Group Icon

Joined: 17 Apr, 2007
Posts: 450



Thanked: 18 times
Dream Kudos: 50
My Contributions
you have to create a form for every button and try the following link
this will help you how to show the form in your click event
http://www.dreamincode.net/forums/showtopic66124.htm

This post has been edited by thava: 7 Oct, 2008 - 04:53 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 12:32AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month