Intellisense not working for NumericUpDown.Text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Strange one happening with VS 2003.
If I put a numericupdown on a form and then type the following:
string myString = this.numericUpDown1.Text;
then after the "." the intellisense pops up - but it _doesn't_ have Text -
the closest it has in the list is TextAlign.

However, if I choose that and then delete it back to match the above code,
it compiles fine (and works).

Any expert care to take a stab at why it doesn't pop up correctly?
 
C# Learner said:
Because it uses:

EditorBrowsable(EditorBrowsableState.Never)

Have just done a few minutes investigation into this and I can't understand
why 'Never' exists as an option. If you don't want someone to use something,
make it private - all this does is make it a pain to use!

Thanks for the answer though.

Andy D
 
Andrew Ducker said:
If you don't want someone to use something, make it private - all this
does is make it a pain to use!

Note that, in this case, Text is inherited. Therefore, making
NumericUpDown's implementation of it private wouldn't prevent callers from
accessing the base class implementation.
 
Back
Top