SunQuest
 
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old July 6th, 2004, 12:27 AM
leafbumperin leafbumperin is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 3 leafbumperin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Random Form Load

Hi guys, I'm extremely new to VB, I actually just started yesterday. I worked all day yesterday and am satisfied with my progress, but I have ran into a snag that I cannot figure out for the life of me. So if anyone could help I would appreciate it very much. Ok, this is what I'm trying to do. Here is the page setup.

There are multiple Option Buttons on the screen. I have the code set to unload the form and load another form when one of the options is chosen and the command button is clicked. So my code says something like this:

Private Sub Command1_Click()
If Button1.Value = True Then
Unload Form1
Load Form2
Form2.Show
Else
MsgBox "Please Select Another Option"
End If
End Sub

What I need to learn code for is a random generator of some sort that will allow when I click the command button it will load either Form2 or Form3 depending on a variable. I hope I explained my problem sufficiently, again, any help would be greatly appreciated.

Rich

Reply With Quote
  #2  
Old July 6th, 2004, 04:22 AM
ragavan1980 ragavan1980 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 ragavan1980 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
For what u r doing this?. Can I assume u have only two forms(From2 and Form3)?

Reply With Quote
  #3  
Old July 6th, 2004, 12:48 PM
leafbumperin leafbumperin is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 3 leafbumperin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
For this example, there are only two options, later on I might have more than two though, but for now I only have the form1 going to either form2 or form3. This is just for a little project for my job. Thank you.

Reply With Quote
  #4  
Old July 6th, 2004, 04:40 PM
leafbumperin leafbumperin is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 3 leafbumperin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I've got it figured out, thanks.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Random Form Load


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway