IDE benhavious

  • Thread starter Thread starter Michel
  • Start date Start date
M

Michel

If you right-click onto a property of a control in the IDE,
a dialogbox is displayed with 2 options - Restaure or Reset ( I dont have
english version of .net)
- Description

The Reset option is locked in grey

How or where to modify this option to reset my parameter to its default
value.

Thanks for your help.

Mick
 
Hi, the Reset command will *only* work if there is a DefaultValue attribute
assigned to the property:

<DefaultValue("MyDefVal")> _
Public Property MyProp() As String
...
End Property

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 
* "Michel said:
If you right-click onto a property of a control in the IDE,
a dialogbox is displayed with 2 options - Restaure or Reset ( I dont have
english version of .net)
- Description

The Reset option is locked in grey

How or where to modify this option to reset my parameter to its default
value.

\\\
<System.ComponentModel.DefaultValue(GetType(String), "Hello")> _
Public Property Bla() As String
Get
...
End Get
Set(ByVal Value As String)
...
End Set
End Property
///
 
Yes I agree with your remark but in fact I try
to suppress an icon from the Form.Icon. ==> Reset to (None)???

Mick
 
select the Icon property, and press delete

Michel said:
Yes I agree with your remark but in fact I try
to suppress an icon from the Form.Icon. ==> Reset to (None)???

Mick


--
-Rick

________________________________

Hardware, n.: Part of a computer, that when played with long enough, will eventually break.
Software, n.: Part of a computer, that when played with long enough, will eventually work.
 
Back
Top