The code: Line (0,0) - (100000,100000) draws a line on the form, but what is the code that draws a line inside a frame?
Any help would be appreciated
domt
You can't set the focus of a Frame. And even if you could, a frame doesn't have any drawing methods so you would still need to draw on the form - and all such drawing sits below any placed controls...
Frankly a control such as Frame is a real bind to perform drawing operations on (if you want the drawing to remain persistent), so your best bet (unless you really want to get down and dirty with the API) is to place a borderless picture box inside the frame, and draw on that.
If all you want is a line in a frame, place a line control. you can move it around and change its color etc..
If your making table grids that size dinamically I agree with strongm, a picturebox is best.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.