jeffMaskedEdit (Расширенная глаг маски редактирования) – VB 5.0, VB 6.0 – База кода

Скачать

Название (оригинал): jeffMaskedEdit (enhanced vb masked edit control)

Описание:
Англ (оригинал)This control is my replacement for the standard VB masked edit control. It came about by my need to add a .Locked property to the masked edit control… and my utter disgust with the colors and performance of the masked edit controls available in the 3rd party libraries. For the most part, I was pleased with the performance of the MS masked edit control, but it needed some tweaking (in addition to the .Locked property).
For starters, I needed an alignment property because I wanted to use the masked edit with numeric and money fields. Then, for the purpose of money fields, I wanted to be able to apply a .Format, and then programmatically block certain keystrokes (alpha characters, for instance). And referring to fields, yes, it had to be data bindable.
I accomplished all of these things, while retaining the MS masked edit control at the heart of my user control. This preserved the flexibility that was generally lost in the 3rd party controls… and spared me from the much more difficult chore of trying (like other examples I have seen) to implement a masked edit control using a plain ol’ text box. In my research, I came across several examples, and none had gone so far as to perfectly preserve the flexibility of the masked edit.
Anyway, this user control adds the following properties to the standard masked edit control: .Alignment, .AutoSelectAll, .Locked, and .AllowedKeys (a clever and easy to enhance enum; check it out).
For updates to this or other useful VB stuff, check my page: ???????????????????????????????????????????????????????????????????????????????????????????????????????? http://members.tripod.com/thefrogprince/ ???????????????????????????????????????????????????????????????????????????????????????????????????????? If?you?are?not?currently?involved?in?the?coding contest, I WOULD REALLY APPRECIATE YOU VOTING FOR MY CODE. Will only take a minute or two to make an account, and while it won’t make me any money… =) it will encourage me to keep posting good quality code and controls like this one.

Рус (машинный)Этот контроль является моей заменой стандартному глаг маски редактирования. Это произошло по моему нужно добавить .Свойство locked контроля масках редактировать… и мое отвращение с цветами и производительность редактирования элементов управления масках доступен в 3-й партии библиотек. По большей части, мне было приятно с выполнением МС маски редактирования, но она нуждалась в некоторой настройки (в дополнение к .Свойство locked).
Для начала, мне нужно свойство выравнивания, потому что я хотел использовать редактирование в масках для числовых и денежных полей. Затем, с целью заработать поля, я хочу быть в состоянии применить .Формат и программно заблокировать определенных клавиш (букв, например). И ссылаясь на полях, да, это должно быть связываемо данных.
Я сделал все эти вещи, сохраняя МС маски редактирования в основе моего пользовательского элемента управления. Это позволило сохранить гибкость, что вообще терялся в 3rd партия контролирует… и избавили меня от гораздо более сложной задачей, пытаясь (как и другие примеры, которые я видел), чтобы осуществлять контроль в маске редактировать, используя текстовое поле равнина ол’. В моих исследований, я наткнулся на несколько примеров, и ни один из них не зашел так далеко, что отлично сохраняют гибкость редактирования в масках.
Во всяком случае, этот пользовательский элемент управления добавляет следующие свойства стандартных маски редактирования: .Выравнивание, .AutoSelectAll, .Заперты, а .AllowedKeys (умный и легко для повышения перечисление

база кода