473,378 Members | 1,531 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,378 software developers and data experts.

How to save a IExtenderProvider property that stores an object

When you add a ToolTip component to a Form (or UserControl) the other
controls on the form display a ToolTip property in the property grid. This is
because it implements the IExtenderProvider interface and other bits and
pieces. I've looked at examples on the following pages, but none of them show
how to add a property that returns a class object.
http://msdn2.microsoft.com/en-us/lib...rprovider.aspx
http://www.codeproject.com/dotnet/ie...der.asp?df=100

By using the examples in the above pages I've managed to get most of it
working.
It now:
- Adds an addition property (that stores and returns a MyInfoSettings
object) to the property grid when a control is selected
- Displays a ... button in the property grid when the MyInfo property is
selected and displays a form to allow the user to set the property

The only thing it doesn't do is save the property value.

I get a "Visual Studio cannot save or load instances of the type
MyProject.MyInfoSettings because the type doesn't provide any supported way
of saving or loading itself."

I was hoping it would add something like the following into the code when I
saved the form, but it doesn't.
this.myInfo.SetMyInfo(this.button1, new MyInfoSettings(true, false, "Help
Button Info"));

What do I need to do to make it save?

Thanks for your help

Regards
Mark

Aug 10 '06 #1
0 1463

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michel Racicot | last post by:
I've been trying to create my own extender provider... but I always got the "Object reference not set to an instance of an object" error message in the property. What is wrong with my code? ...
0
by: Genival P.Carvalho | last post by:
Hello folks, First sorry my bad english. I will try to implement a IExtenderProvider + Verbs (Designer). When compile tha follow code its compile fine, but whem drag resulting componet under form...
8
by: JackRazz | last post by:
Is it possible to add an extended property to components like I can with controls via IExtenderProvider? JackRazz
1
by: Phill. W | last post by:
I understand how to use the IExtenderProvider Interface to add a "dynamic" property to a Control, but is there any equivalent "mechanism" for using this extendability with just /any-old/ class,...
15
by: Sam Kong | last post by:
Hello! I got recently intrigued with JavaScript's prototype-based object-orientation. However, I still don't understand the mechanism clearly. What's the difference between the following...
5
by: \A_Michigan_User\ | last post by:
I'm using asp.net/vb.net/ado.net to create a very simple user interface. (Everything works if I use STATICALLY created textBoxes... but not when I make them DYNAMICALLY.) 1. Execute a SQL...
2
by: Lespaul36 | last post by:
I have a control that I have made that uses a custom class for storage of some of the information. I want it to display in the VS.Net 2003 property grid in the IDE like the Font property does, so...
0
by: =?Utf-8?B?VHJpc3RlbiBGaWVsZGluZw==?= | last post by:
I've added an IExtenderProvider interface to a class called RadioButtonGroupPanel (which derives from Panel) and have added the attribute called . I've defined the following members: public...
0
by: J.B. Moreno | last post by:
Hello, I'm migrating a VB6 app to .Net and of course it uses the DataField property for databinding, which of course isn't available under .Net. On several forms it also uses the Tag property...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.