I'm told to override "Text"

  • Thread starter Thread starter Dom
  • Start date Start date
D

Dom

I have a usercontrol, and I am trying to write a Property called
"Text", but the compiler tells me that the Usercontrol class already
has a member called "Text". When I look (in intellisense, or help) I
don't see the member. I can easily override or make it new, but I'd
like to know what is going on.

Dom
 
Dom said:
I have a usercontrol, and I am trying to write a Property called
"Text", but the compiler tells me that the Usercontrol class already
has a member called "Text". When I look (in intellisense, or help) I
don't see the member. I can easily override or make it new, but I'd
like to know what is going on.

MSDN lists UserControl.Text for me...
 
That's for ASP.NET - are you using that, or Windows Forms?

You're right. I guess I didn't see there were two different choices
before. I guess I'm still learning how to use Help. I still don't
see it in Intellisense when I type "UserControl.", and it doesn't show
up in the properties box of the design window. maybe because it has
no meaning until I override it?
 
You're right. I guess I didn't see there were two different choices
before. I guess I'm still learning how to use Help. I still don't
see it in Intellisense when I type "UserControl.", and it doesn't show
up in the properties box of the design window. maybe because it has
no meaning until I override it?

Not sure about the designer side, but if you go into the index in
MSDN, select "UserControl class" and then "about UserControl" there
should be two options - one for web, one for windows forms.

Jon
 

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

Back
Top