Re: User control and resizes
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 15 Jun 2005 14:24:33 -0400
Rodrigo,
In your event handler for the resize event, you will have to call the
GetKeyState API function through the P/Invoke layer, in order to determine
the state of the VK_LCONTROL and VK_RCONTROL keys (which correspond to the
left and right control keys).
You can find the declaration for GetKeyState in winuser.h, or possibly
on http://www.pinvoke.net, as well as the values for the constants.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Rodrigo Ferreira" <rjrferreira@xxxxxxxxx> wrote in message
news:eo7icIdcFHA.2652@xxxxxxxxxxxxxxxxxxxxxxx
>
> I have an user control and inside him i have one label and 1 textbox!
>
> My problem is:
>
> When i'am in design mode (a new project with this user control), i want
> to:
>
> - If i resize the user control with the left ctrl key down the size of
> the label increses/decrease.
> - If i resize the control with the right ctrl key down the size og the
> textbox change!
>
> Any ideias to do that?
>
>
.
- Follow-Ups:
- Re: User control and resizes
- From: Rodrigo Ferreira
- Re: User control and resizes
- References:
- User control and resizes
- From: Rodrigo Ferreira
- User control and resizes
- Prev by Date: Re: Declaration Area
- Next by Date: Re: Declaration Area
- Previous by thread: User control and resizes
- Next by thread: Re: User control and resizes
- Index(es):
Relevant Pages
|