mainit123
Technical User
- Jan 24, 2005
- 25
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.
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.