Re: Changing the Height of a MaskedTextBox Control (Add a custom border)
- From: "Liviu Balan" <lbalan79@xxxxxxxxxxxxxxxx>
- Date: Wed, 7 Mar 2007 09:54:27 -0500
Hi Linda,
Thank you so much for all the time you spent on this. It seems that your
quick solution works. It is much better than what I was trying to do which
was catching all windows sizing messages.
Thank you again,
Liviu Balan
"Linda Liu [MSFT]" <v-lliu@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:7WJdNLIYHHA.2204@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi Liviu,
After I research this issue for more than one hour, I found a simple
workaround. That is to set the AutoSize property of the MaskedTextBox to
false and then set the Height property of the MaskedTextBox to change its
height.
The AutoSize property of the MaskedTextBox is inherited from its base
class
TextBoxBase. This property gets or sets a value indicating whether the
height of the control automatically adjusts when the font assigned to the
control is changed.
Althrough the AutoSize prorperty is not available in the Properties
window,
or the intelligence, we could still use it in code.
Hope this helps.
If you have any question, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
.
- References:
- Changing the Height of a MaskedTextBox Control (Add a custom border)
- From: Liviu Balan
- RE: Changing the Height of a MaskedTextBox Control (Add a custom border)
- From: Linda Liu [MSFT]
- Changing the Height of a MaskedTextBox Control (Add a custom border)
- Prev by Date: Re: Toolbar button retains focus while Click handler executes
- Next by Date: Remove border from popup button More options
- Previous by thread: RE: Changing the Height of a MaskedTextBox Control (Add a custom border)
- Next by thread: Custom Control Mouse Events
- Index(es):