473,385 Members | 1,409 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,385 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 1272
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"...
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
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.