mukulmukul
Member
- Joined
- Jun 21, 2009
- Messages
- 10
- Programming Experience
- Beginner
hi,
i have created a windows form that has some labels, lines , buttons and i have enabled autoscroll property to true.
i am having trouble with relocating and resizing of the controls with resizing of form and change in screen resolution.
i have used a code liike
dim tmpctrl as control
for each tmpctrl in me.controls
tmpctrl.setbounds((tmpctrls.location.x/X)*me.width, (tmpctrls.location.y/Y)*me.height, (tmpctrls.size.width/X)*me.width,(tmpctrls.size.height/Y*me.height))
next
now as my form is a scrollable form.and the total window portion with respect to which i want to resize n relocate.
m having trouble in choosing X , Y in the above code.
kindly help out please..
i have created a windows form that has some labels, lines , buttons and i have enabled autoscroll property to true.
i am having trouble with relocating and resizing of the controls with resizing of form and change in screen resolution.
i have used a code liike
dim tmpctrl as control
for each tmpctrl in me.controls
tmpctrl.setbounds((tmpctrls.location.x/X)*me.width, (tmpctrls.location.y/Y)*me.height, (tmpctrls.size.width/X)*me.width,(tmpctrls.size.height/Y*me.height))
next
now as my form is a scrollable form.and the total window portion with respect to which i want to resize n relocate.
m having trouble in choosing X , Y in the above code.
kindly help out please..