Results 1 to 2 of 2

Thread: Thanks for Shrog's Precious Advice on Toolboxes Building

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    hongkong
    Posts
    251
    Thanks for your advice of using picture boxes to implment the toolboxes that I want.

    By the way, Can I put a "Cross" (close) "button" at the right top corner of the picture box like the ordinary window?

    Thanks for kind attention

  2. #2
    Addicted Member Shrog's Avatar
    Join Date
    Aug 1999
    Location
    Darkest Africa
    Posts
    186

    Smile Command Button

    Yes. You can use a command button. Command buttons are a little tricky here, because you have to make it so small, but it can be done.

    Place a command button on the picturebox, just like you did with the toolbox buttons. Set the Style property of the button to Graphical. Make the Caption property = "". Set the Picture property of the button to a little bitmap of a cross. You can draw this using paintbrush. You can make this picture 8x8 or 9x9, but you could make it even smaller if you want.

    If you don't want to draw a little picture, you could put a "x" in the caption and leave the Style as standard, but I find that that does not always look so good.

    Now all you have to do is respond to the click event of this button. Whenthe user clicks it, make the picturebox invisible. You would probably want to include a menu option for the user to show it again.

    Hope this helps.
    Shrog

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