Re: UserControl Design Mode

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ed Kaim (ed_at_sharplogic.com)
Date: 12/13/04


Date: Mon, 13 Dec 2004 06:40:11 -0800

Yes, but it takes a little work. Check out
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconimplementinguitypeeditor.asp
for more details.

"Rick" <Rick@discussions.microsoft.com> wrote in message
news:B0C3287F-9A5C-4373-BA7B-8B5CA10B36E1@microsoft.com...
>I have a UserControl that contains a label and a textbox (just as an
> example). Is there any way during design mode via the VS.Net Designer, to
> allow the developer using the designer access to that label or textbox of
> the
> user control? Ie. click on the user control but directly where the label
> is
> and have focus come on the label of that user control and not the user
> control itself?
>
> My goal is to allow a developer to resize the label or textbox of a user
> control with their mouse and not having to go through the properties grid
> (ie. by make the textbox and label public). Is this even possible?
>
> Thanks,
>
> -Rick



Relevant Pages

  • Re: Newbie: Resize textbox at design time inside usercontrol possi
    ... Thanks for your response Peter. ... I want to be able to click on the label and resize it ... do the same with the textbox. ... designer for the user control, thought the designers for that controls are ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Write, Move, Delete text on PictureBox
    ... Simply place a Label control ... Now, whenever you want create a Label, you would just use ... TypeOf FormOrPictureBox Is PictureBox Then ... Public Sub TransferTextFromTextBoxToLabel(TB As TextBox, ...
    (comp.lang.basic.visual.misc)
  • Re: Write, Move, Delete text on PictureBox
    ... Simply place a Label control ... Now, whenever you want create a Label, you would just use ... Public Sub TransferTextFromTextBoxToLabel(TB As TextBox, ... Before using the dynamic TextBox, ...
    (comp.lang.basic.visual.misc)
  • Re: Write, Move, Delete text on PictureBox
    ... Simply place a Label control on ... Now, whenever you want create a Label, you would just use this code ... Public Sub TransferTextFromTextBoxToLabel(TB As TextBox, ... Before using the dynamic TextBox, you must initialize the module variables. ...
    (comp.lang.basic.visual.misc)
  • Re: Write, Move, Delete text on PictureBox
    ... Simply place a Label control ... Now, whenever you want create a Label, you would just use ... TypeOf FormOrPictureBox Is PictureBox Then ... Public Sub TransferTextFromTextBoxToLabel(TB As TextBox, ...
    (comp.lang.basic.visual.misc)