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

.NET ContextMenu in a COM client and Intellisense

Hi All,

Is it possible to build a ContextMenu object into a DLL then display that
menu within a COM application? I'm having a problem with the ContextMenu
expecting a Control object as a parameter, which I'm assuming the COM
component can't be.

I'm working on extending a VFP app that will be eventually replaced with a
..NET app. In the meantime, we're doing whatever new development we can in
..NET and exposing the functionality in the VFP app.

A secondary question that may be more related to how VFP deals with things,
but is there anything to do on the .NET side to get Intellisense to
recognize the exposed methods of the wrapped DLL? I built another simple
DLL a while ago that is "recognized" by VFP's Intellisense.

TIA,

John
Jul 21 '05 #1
1 1275
well, one issue is the COM component is a component not a control. to add
that functionality, you would basically need to build a control and load it.
roughly

--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
_________________________
"John Spiegel" <js******@NOSPAMc-comld.com> wrote in message
news:Oi**************@TK2MSFTNGP14.phx.gbl...
Hi All,

Is it possible to build a ContextMenu object into a DLL then display that
menu within a COM application? I'm having a problem with the ContextMenu
expecting a Control object as a parameter, which I'm assuming the COM
component can't be.

I'm working on extending a VFP app that will be eventually replaced with a
.NET app. In the meantime, we're doing whatever new development we can in
.NET and exposing the functionality in the VFP app.

A secondary question that may be more related to how VFP deals with
things, but is there anything to do on the .NET side to get Intellisense
to recognize the exposed methods of the wrapped DLL? I built another
simple DLL a while ago that is "recognized" by VFP's Intellisense.

TIA,

John

Jul 21 '05 #2

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

Similar topics

0
by: MD | last post by:
I have a ContextMenu that is assigned to 3 RichTextBox's (i.e., if you right-click on any of the 3 RichTextBox's, you get the same ContextMenu). My ContextMenu has 2 items, each of which have their...
2
by: Derrick | last post by:
I've been working on an application which has a NotifyIcon (system tray icon), and a corresponding ContextMenu. I want to be able to update this menu dynamically. However, when I make changes to...
2
by: Zieben | last post by:
Hello! I have such problem! I have my UserControl. I override property ContextMenu for this Control as ..... new ContextMenu ContextMenu{ set {_contextMenu = value;}
0
by: cemino | last post by:
Hi, I got a problem with ContextMenu. I'm using a hot-key (like Ctrl-B) to show contextMenu in my program. Things is like below: contextMenu.Show(Form1, New...
1
by: John Spiegel | last post by:
Hi All, Is it possible to build a ContextMenu object into a DLL then display that menu within a COM application? I'm having a problem with the ContextMenu expecting a Control object as a...
11
by: Graham Charles | last post by:
I'm writing a control inheriting from ComboBox, and I'd like to add an entry to the ContextMenu for that combo box. I have no problem if I create an entirely new ContextMenu from scratch, but I'd...
3
by: Libby Sharf | last post by:
Hello, I have several ContextMenus and I want to connect them to the GridControl's ContextMenu property depending on the row that was right clicked. Is there an event that is raised just before...
3
by: asharda | last post by:
Hi, I am trying to create a context menu in my application. The context menu takes menu otems from an XML file. In XAML the code is <Grid.ContextMenu> <ContextMenu Name="cm" StaysOpen="true"...
2
by: eBob.com | last post by:
I've been working on an app which has an array of RichTextBoxes. And I have a context menu for the RTBs. The context menu has two levels; the first level has two items, "Load Sample Text File"...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.