UserControl TextBox Properties

D

Dave Wurtz

All,

I have a custom control that has a textbox on it. I want to be able to set
properties of the textbox in the IDE. I have exposed the textbox with a
property and it now shows up in my properties window in the IDE. I can set
attributes (i.e. character casing, etc.) but it will not 'save' those
settings by writing it back to the source code. What am I doing wrong here?


Public MyControl
Inherits UserControl

.... system generated control which adds a textbox and label to this control

Public ReadOnly Property TextBox As TextBox
'This property will expose the textbox to the properties window in the
IDE allowing me
'to change attributes of the textbox control, but they do not save.
This is my problem.
Return Me.TextBox1
End Property

End Class

Thanks in advance!

Dave Wurtz
 
M

Mohamoss

Hi Dave
you need to make sure that you Rebuild your control , and the readd (
refrech) its reference in your test project so you can see the effect of
the changes take place. hope it is as simple as that :)
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top