Results 1 to 4 of 4

Thread: Message Boc Creator Problem =[

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2009
    Posts
    28

    Thumbs down 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.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Message Boc Creator Problem =[

    Instead of a textbox, use a drop down combo for the icon selection.

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  4. #4
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    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
  •  



Click Here to Expand Forum to Full Width