Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Graphics and Button on same form

Status
Not open for further replies.

mainit123

Technical User
Jan 24, 2005
25
0
0
I can create code to draw a line on a form.
I can create code to place and display two buttons on a form, separated by some spacing. I am looking to be able to draw a line that connects two buttons such that it persists when the form is minimized then re-opened. I am aware that putting the line draw code in the Paint Event procedure forces the line to persist but how do I include the code to create and place the two buttons so that they all appear on the same form. I am creating this form with code, not Designer. I want to end up with a form created by code only that has a graphic element and two buttons that persists.
Thank you for pointing me in the right direction.
 
Try using the Anchor property.

I hope this helps.



Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top