|
-
Nov 20th, 2000, 05:49 AM
#1
Thread Starter
Addicted Member
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
-
Nov 20th, 2000, 08:43 AM
#2
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|