|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Permanent Rectangle on Form.Hi, I have some code that will draw a rectangle on my form, does what I
need, but it's simple code that just draws, therefore menus and other items clear the drawing. Has anyone got a way to draw the rectangle permantently? I need to change the size of the rectangle from time to time so I can't load an image. Cheers, Tull. "T Clancey" <t***@idcodeware.co.uk> wrote in message Where are you doing the drawing? If you are handling a Paint method, it news:SaudnRlQkYMF7YfYnZ2dnUVZ8tOdnZ2d@bt.com... > Hi, I have some code that will draw a rectangle on my form, does what I > need, but it's simple code that just draws, therefore menus and other > items clear the drawing. > > Has anyone got a way to draw the rectangle permantently? I need to change > the size of the rectangle from time to time so I can't load an image. > > Cheers, > Tull. should automagically redraw. If you are drawing elsewhere it will be overwritten. If its just a box you need...
Cant you put an Image box on the form, give it a borderstyle, and the same background color as your form? and put ur objects on top? Its like a fake box. Or use an image and set the image.stretch to true. Change the size during ur code. I miss the "line" draw feature in the old vb's. Miro Show quoteHide quote "T Clancey" <t***@idcodeware.co.uk> wrote in message news:SaudnRlQkYMF7YfYnZ2dnUVZ8tOdnZ2d@bt.com... > Hi, I have some code that will draw a rectangle on my form, does what I > need, but it's simple code that just draws, therefore menus and other > items clear the drawing. > > Has anyone got a way to draw the rectangle permantently? I need to change > the size of the rectangle from time to time so I can't load an image. > > Cheers, > Tull. > create a bitmap and draw on it, and then use bitmap as backgroundimage
Thanks to everyone for their input, I founds that creating a picture box,
sizing it as required, then drawing the labels on the box did just what I need. There is another problem, which I'll put in a new post! Thanks again, Tull. Show quoteHide quote "Stuart Nathan" <stuart.nat***@homecall.co.uk> wrote in message news:OMm3Kyu4GHA.3592@TK2MSFTNGP05.phx.gbl... > create a bitmap and draw on it, and then use bitmap as backgroundimage >
how to get both old and new value for a changed text box
How can I create a Shortcut (with parameters) on a user-desktop with vb.net? how to run the execuatable before windows shutting down Posting login data with HttpWebRequest VB Program - CHM help integration Redirecting standard output Getting nodes from an XML-document How to re-start application? HTTP Client Request Object Button with dropdown style like on a toolbar |
|||||||||||||||||||||||