vb6 基于文本框的自定义控件的问题
这个自定义控件是别人写的,没有locked属性属性部分代码是
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)PropBag.WriteProperty "MaxLength", MaxLengthPropBag.WriteProperty "ValidChar", ValidCharPropBag.WriteProperty "Text", txtEdit.TextPropBag.WriteProperty "Enabled", EnabledPropBag.WriteProperty "IMEMode", miImeModePropBag.WriteProperty "AutoSel", mbAutoSelPropBag.WriteProperty "Left", txtEdit.LeftPropBag.WriteProperty "Width", txtEdit.WidthPropBag.WriteProperty "Top", txtEdit.TopPropBag.WriteProperty "Height", txtEdit.HeightPropBag.WriteProperty "Font", txtEdit.FontPropBag.WriteProperty "FontName", txtEdit.FontNamePropBag.WriteProperty "FontSize", txtEdit.FontSizeEnd Sub
PropBag.WriteProperty "Locked ", txtEdit.Locked, False
Public Property Let UnLocked(piEnabled As Boolean)txtEdit.Locked = Not piEnabledPropertyChanged "UnLocked"End Property