Custom ListBox (probably)-VBForums
Results 1 to 3 of 3

Thread: Custom ListBox (probably)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2010
    Posts
    115

    Exclamation Custom ListBox (probably)

    Hello everybody .

    I am creating a custom menu for my app , and I can have N options in that menu .
    So , the idea is to have a listbox or some other object which can let me scroll down all my options .
    In this case , I could just is a listbox with some titles for the respective option but instead I want to have a Label in there . I want to set the bgImage for that label , on_MouseEnter/Leave/Click events, etc (all those properties of a label) .
    The thing is , when I try to add some object to the listbox it just creates a blank item in that listbox .

    I've been googling for quite a while now and it led me nowhere .
    Any help with this matter ?

    Thanks in advance.
    Sincerely,
    HelderMPinhal

  2. #2
    Fanatic Member proneal's Avatar
    Join Date
    May 2011
    Posts
    762

    Re: Custom ListBox (probably)

    How are you adding the Items to the Listbox? Can you show what code you used?

    Below is way to add an Item of text to a Listbox
    vb Code:
    1. ListBox.Items.Add("a string of text usually stored in some local variable")

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2010
    Posts
    115

    Re: Custom ListBox (probably)

    Nevermind . I found a way to do it , but thanks for your help .

    Using a FlowLayoutPanel, setting the right properties I can get a ListBox alike object , this being capable of handling any control i need to add .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.