By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,744 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

IDE benhavious

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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" <mr******@ifrance.com> wrote in message
news:3f***********************@news.free.fr...
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

Nov 20 '05 #2

P: n/a
* "Michel" <mr******@ifrance.com> scripsit:
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
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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

Mick

"Tom Spink" <th**********@ntlworld.com> a écrit dans le message de news:
O2**************@TK2MSFTNGP12.phx.gbl...
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" <mr******@ifrance.com> wrote in message
news:3f***********************@news.free.fr...
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


Nov 20 '05 #4

P: n/a
select the Icon property, and press delete

"Michel" <mr******@ifrance.com> wrote in message news:3f***********************@news.free.fr...
Yes I agree with your remark but in fact I try
to suppress an icon from the Form.Icon. ==> Reset to (None)???

Mick

"Tom Spink" <th**********@ntlworld.com> a écrit dans le message de news:
O2**************@TK2MSFTNGP12.phx.gbl...
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" <mr******@ifrance.com> wrote in message
news:3f***********************@news.free.fr...
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



--
-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.


Nov 20 '05 #5

P: n/a
Sorry, but that works only when Reset is avalable!!

"Rick Mogstad" <ri**@NOSPAM.computetosuit.com> a écrit dans le message de
news: eU**************@TK2MSFTNGP10.phx.gbl...
select the Icon property, and press delete

"Michel" <mr******@ifrance.com> wrote in message news:3f***********************@news.free.fr...
Yes I agree with your remark but in fact I try
to suppress an icon from the Form.Icon. ==> Reset to (None)???

Mick

"Tom Spink" <th**********@ntlworld.com> a écrit dans le message de news:
O2**************@TK2MSFTNGP12.phx.gbl...
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" <mr******@ifrance.com> wrote in message
news:3f***********************@news.free.fr...
> 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
>
>


--
-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.

Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.