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:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old August 17th, 2004, 02:09 PM
SpiffyDude SpiffyDude is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 SpiffyDude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Custom MSGBOX

I need a custom msgbox that displays three specific options. Does anyone know the best way to do this?

Reply With Quote
  #2  
Old August 17th, 2004, 02:42 PM
QueenVBA QueenVBA is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 22 QueenVBA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 43 sec
Reputation Power: 0
Quote:
Originally Posted by SpiffyDude
I need a custom msgbox that displays three specific options. Does anyone know the best way to do this?
What options are they? Be more specific.

Reply With Quote
  #3  
Old August 17th, 2004, 05:55 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,738 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 1 h 34 m 28 sec
Reputation Power: 443
You can create your own custom messagebox out of a regular form.

Reply With Quote
  #4  
Old August 17th, 2004, 06:29 PM
SpiffyDude SpiffyDude is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 SpiffyDude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well I need to give the user three options. So they would be able to choose Option 1, Option 2, or Option 3... and then the script would do its thing. I could do an input box and have them type in 1, 2, or 3, but thats a last resort. So If anyone knows how I could make three buttons or make tree radio buttons, just to give the user three options when they run the script.

Thanks

Reply With Quote
  #5  
Old August 19th, 2004, 08:26 AM
QueenVBA QueenVBA is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 22 QueenVBA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 43 sec
Reputation Power: 0
Create a form with your options like Memnoch said.
Then access it from you main form as a custom msgbox.

Reply With Quote
  #6  
Old August 19th, 2004, 10:24 AM
Mythomep Mythomep is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Zaandam, The Netherlands
Posts: 70 Mythomep User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 37 sec
Reputation Power: 4
Send a message via MSN to Mythomep
Cool

Hi,

First time I try to attach a file, but this zip holds a basic setup to what you want. It shows a custom form with three option buttons. I have not included any error handling, you need to do that yourself. To use it, do the following:

Code:
Private Sub cmdGetUserOptions_Click()
  Dim oForm As frmOptions
  Dim lReturn As Long
  
  Set oForm = New frmOptions
  Load oForm
  
  lReturn = oForm.Execute
  
  Select Case lReturn
  Case vbOK
	MsgBox "You selected option: " & oForm.UserOption
  End Select
  
PROC_EXIT:
  Unload oForm
  Set oForm = Nothing
End Sub


Pretty straight forward. Any questions, feel free to ask.

Grtz.©

M.
Attached Files
File Type: zip frmOptions.zip (1.1 KB, 402 views)

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Custom MSGBOX


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 5 hosted by Hostway