Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

 

I want to use a PropertyGrid in my application to change some properties of some controls in my application at runtime.

 

Is there a way to hide some properties so you can't edit it? The Enabled, the Visible and some other properties should'nt be shown in the PropertyGrid.

 

How can I do this?

 

<BrowsableAttribute(False)> _    
Public Property ...

would work if I would use my own class to show its properties. But I can't use this for Buttons, Labels and so on because I can't modify their code.

Posted

Thanks for your answer. But that's much too much work.

I need this for a upgrade from vb6 to vb.net

 

In vb6 AxPropList was used. If it's not too much work i want to change to PropertyGrid.

 

It seems to be much less work upgrading AxPropList usage to .net than changing to PropertyGrid.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...