Hi All, I have a form which contains a UserControl - the control is more a wrapper as it only consists of a transparent form containing a line, it is intended that this control will sit on top of everything else on the form and the line can be moved either manually by the user or by code. The control is NOT an activex, it's just a new control added to the project, it won't ever be shared. Here's the questions.....
Within the code of the control it needs to refer to other objects on the form containing the control (for example there is both a picturebox and this control on the same form). Clearly the control code can directly reference it (eg Form1.Picture1.Left) but is there a "better" way of doing it? I suppose I could have properties in the control to set the Form name and Picbox name but is this how "you" would do it? More importantly, the control needs to reposition and resize itself on the form, how does it refer to itself, other than by a full reference, ie is there an equivalent of "me.left" where me refers to the control? Thanks Ian [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Domains - Claim yours for only $14.70 http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/k7folB/TM --------------------------------------------------------------------~-> '// ======================================================= Rules : http://ReliableAnswers.com/List/Rules.asp Home : http://groups.yahoo.com/group/vbHelp/ ======================================================= Post : [EMAIL PROTECTED] Join : [EMAIL PROTECTED] Leave : [EMAIL PROTECTED] '// ======================================================= Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/vbhelp/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
