|
-
Feb 13th, 2009, 10:45 AM
#1
Thread Starter
Junior Member
Message Boc Creator Problem =[
right i got board so i falt i might as well make a mesage box creater but im stuck all i need is the icons but i cant figuer out were to put it in the code e.g
text2 is the title
text1 is the caption
text3 is were they will enter the icon code E.G vbcritical
but i cant find how to fit text3.text into the code
Code:
Private Sub Command1_Click()
MsgBox (Text2.Text), vbInformation, (Text1.Text)
End Sub
can anyone help thanks =]
p.s is there a way to put it in a drop down menu instead of text3.text and sorry for bad spelling
Last edited by sttc2; Feb 13th, 2009 at 10:48 AM.
-
Feb 13th, 2009, 01:36 PM
#2
Re: Message Boc Creator Problem =[
Instead of a textbox, use a drop down combo for the icon selection.
-
Feb 13th, 2009, 02:27 PM
#3
Re: Message Boc Creator Problem =[
And set the .ItemData to the value of the icon constant value so when its selected you can easily pass the value to your function.
Code:
Option Explicit
Private Sub Command1_Click()
MsgBox Combo1.ItemData(Combo1.ListIndex)
End Sub
Private Sub Form_Load()
Combo1.AddItem "Critical", 0
Combo1.ItemData(0) = 16
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 13th, 2009, 03:08 PM
#4
Re: Message Boc Creator Problem =[
I found this little messagebox and have started using it. It may give you some ideas:
http://www.planet-source-code.com/vb...51231&lngWId=1
Waiting for a full featured smart phone with out marrying a provider
Go Android
Go raiders 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|