Results 1 to 5 of 5

Thread: [2008] ToolStripItem Image Margin?

  1. #1

    Thread Starter
    Frenzied Member Icyculyr's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    1,934

    Resolved [2008] ToolStripItem Image Margin?

    Hey, I'm writing a custom class (1200 lines so far) for coloring toolstrips and they're buttons, it also works for context menu's, what I am wondering is where is the option on a toolstrip item to show an image, IE...

    There's the check margin, which has a tick in it, when you set Checked = true, but I've seen ImageMargin, and an option to show that (AND, add an image to it) can anyone tell me if I'm making things up in my mind?

    Because I can't find it

    Cheers
    Last edited by Icyculyr; Apr 5th, 2008 at 02:02 AM.

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

    Re: [2008] ToolStripItem Image Margin?

    The ToolStripItem class has an Image property. Is that what you're asking about?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Frenzied Member Icyculyr's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    1,934

    Re: [2008] ToolStripItem Image Margin?

    Erm no, you know how there's a 'Check Margin'

    Which if you set a toolstrip item's checked state to true, it shows a 'Tick', (assuming Show Check Margin is set to true), now I have seen (somewhere, maybe even another control), an Image Margin option, which shows an image, it might be on a menustrip,

    It's not an image, it's like a mini icon that goes near the name (on the left, like the check margin)

    Any idea?

    Cheers

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] ToolStripItem Image Margin?

    Quote Originally Posted by Icyculyr
    Erm no, you know how there's a 'Check Margin'

    Which if you set a toolstrip item's checked state to true, it shows a 'Tick', (assuming Show Check Margin is set to true), now I have seen (somewhere, maybe even another control), an Image Margin option, which shows an image, it might be on a menustrip,

    It's not an image, it's like a mini icon that goes near the name (on the left, like the check margin)

    Any idea?

    Cheers
    Yeah, it's the Image property. You assign an Image object to the image property and it gets displayed in the image margin. That's why it's called an image margin: because that's where the Image is displayed.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Frenzied Member Icyculyr's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    1,934

    Re: [2008] ToolStripItem Image Margin?

    hmm, ok, cheers


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