Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / October 2008

Tip: Looking for answers? Try searching our database.

PropertyGrid Updating Properties

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Derek Hart - 09 Oct 2008 05:07 GMT
I set a property grid to show the properties for a command button.

mypropgrid.selectedobject = myButton

How can I, from another button on the winform, update a property on the
property sheet so it shows the new property? Seems like it should be the
simplest thing. Code example would be appreciated. Going in circles with
this.

Thank You.
Derek Hart - 09 Oct 2008 05:16 GMT
To add some more information, I know how to do this if I am using my own
class in the property grid. For example:

Dim prop As PropertiesStandaloneLabel = New PropertiesStandaloneLabel()
propGrid.SelectedObject = prop
prop.MyProperty = SomeValue

But when I simply set the property grid to a control, and see all the dotnet
properties, I cannot figure out how to do the same thing. Any ideas on how
to do the equivalent code above?

>I set a property grid to show the properties for a command button.
>
[quoted text clipped - 6 lines]
>
> Thank You.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.