Results 1 to 5 of 5

Thread: Any header icon/picture for GroupBox control ideas?

  1. #1

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    354

    Any header icon/picture for GroupBox control ideas?

    Hi, Consider you want to distinguish between lots of similar built-in GroupBox controls, prior to their header titles with a small 32×32 pixels (Like old school ImageList controls for TreeViews and such). Since it does not "Image" property in itself, How can we achieve it? (If it has one, I think it was for background image, not the header)

    I already used tabs for changing subitems therefore exclude this controls as an alternative.
    Peace/.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: Any header icon/picture for GroupBox control ideas?

    I'm not sure whether this would work or not but one hacky option may be to adding some leading spaces to the Text to create a gap and then draw the Image in the appropriate place on the Paint event. I'm just not sure whether you could raw all the way to the edge of the control or only inside the frame.

  3. #3
    Addicted Member -Franky-'s Avatar
    Join Date
    Dec 2022
    Location
    Bremen Germany
    Posts
    223

    Re: Any header icon/picture for GroupBox control ideas?

    While this is for C#, I'm sure it translates easily to VB: https://www.codeproject.com/Articles...oupBox-control

  4. #4
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: Any header icon/picture for GroupBox control ideas?

    You could draw your own GroupBox…

    https://social.msdn.microsoft.com/Fo...forum=winforms

  5. #5

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    354

    Re: Any header icon/picture for GroupBox control ideas?

    Great ideas, thanks all for contribution.

    How about a simple dark red circle on a tab control indicating an alarm and when it's appropriate it flickers? I mean a graphical image or an outlined drawn eclipse shape. Formerly I was using ○ and ● in series repeatedly (There are even emojis supported by newer versions of Windows including 🔴 and ⚫). They are text symbols so lesser the resources files, simpler the code but harder to read and informing for user.

    Is your approaches same to this?

Tags for this Thread

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