![]() |
|
|||||||
| Component Development Development of components with VB.NET |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Ok I have a textbox on a user control, and I set the MaxLength property to 3, but it does not stop at 3 when the program is running. These controls are added at runtime and I have even added the maxLength property in code when building the control. Any ideas?
__________________
![]() If you find your way you can't be lost... Close Counts for; Horseshoes, Handgranades, and Nuclear Missiles! |
|
|||
|
Appearently btn_click events that add text override the MaxLength property.
So check the text.length in the click event before adding the text...
__________________
![]() If you find your way you can't be lost... Close Counts for; Horseshoes, Handgranades, and Nuclear Missiles! |
|
||||
|
You had to find out emperically now, but next time you check the help documentation, which in this case in very clear about your inquiry, for example if you press F1 on MaxLength property in designer or code.
Quote:
Quote:
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ DR. WEIR: Download it to a non-networked, firewalled computer. TECHNICIAN: Yes, ma'am. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|