Custom Context Menu - Problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have developed a custom context menu inheriting it from Native window
Now i want it to add to the toolbox item and later after dragging anf dropping it it shd appear in the component tray
Any idea how can I add these supports?
I have completd almost all the development and now do not want to agian develop it from scracth by inheriting it from Component

any suggestions?????
 
To display an object in the component tray it must be inherited from
component.

I would suggest creating a very simple component based class that uses the
native-window derived class that you've created internally to display the
menus. It only needs to expose a popup or track-menu method.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Check out February's edition of Well Formed.
Non-client drawing, Graphics Transform stack and Flood-Filling
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

Nilesh Rade said:
I have developed a custom context menu inheriting it from Native window.
Now i want it to add to the toolbox item and later after dragging anf
dropping it it shd appear in the component tray.
Any idea how can I add these supports?
I have completd almost all the development and now do not want to agian
develop it from scracth by inheriting it from Component?
 
* "=?Utf-8?B?TmlsZXNoIFJhZGU=?= said:
I have developed a custom context menu inheriting it from Native window.
Now i want it to add to the toolbox item and later after dragging anf dropping it it shd appear in the component tray.
Any idea how can I add these supports?
I have completd almost all the development and now do not want to agian develop it from scracth by inheriting it from Component?

The control must inherit from 'System.ComponentModel.Component'.
Nevertheless, this component can use other classes.
 
Hi Bob,
Thanks a lot for the suggestion.
But am not exaclt getting how can i do it?
Please Can u suggest me with a skeleton code so that i can get the
direction?

How is it that Herfried is saying that it is not possibel? Have u read
his reply?
 
Hello Bob,
I have creatd a simple class inheriting form Component class. But am
stucked I don't know how can i make use of my custom contextmenu
inherited from NativeWindow to render in this class.

Please help me........
 
Back
Top