A
Adam Rzecki
Hello,
I have a problem connected with a custom control I created.
I derived the custom control from System.Windows.Forms.TextBox.
The strange problem is that when I drag and drop my new control from the
toolbox onto a form, the control doesn't display its Text property
value. Instead of this, it just shows its class name
(MyProject.Controls.SmartTextBox)...
After this, I tried do the same with a new UserControl. I created a
UserControl derived class and put a button onto it. When I drag the User
Control and drop onto my form, only its class name, but no button (no
content) is displayed.
Finally, I created a new project, then derived Custom Control from
TextBox and... it worked - control was visible and its "Text" property
value was properly displayed inside. So I suppose something is wrong
with my project... :-(
Thank you in advance for any suggestions or informations,
Best regards,
Adam.
I have a problem connected with a custom control I created.
I derived the custom control from System.Windows.Forms.TextBox.
The strange problem is that when I drag and drop my new control from the
toolbox onto a form, the control doesn't display its Text property
value. Instead of this, it just shows its class name
(MyProject.Controls.SmartTextBox)...
After this, I tried do the same with a new UserControl. I created a
UserControl derived class and put a button onto it. When I drag the User
Control and drop onto my form, only its class name, but no button (no
content) is displayed.
Finally, I created a new project, then derived Custom Control from
TextBox and... it worked - control was visible and its "Text" property
value was properly displayed inside. So I suppose something is wrong
with my project... :-(
Thank you in advance for any suggestions or informations,
Best regards,
Adam.