473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

IDE benhavious

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
5 837
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
* "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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.