472,328 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Displaying non-modal forms via interop from COM DLLs

I'm continuing work on getting my VB6 plug-ins to work within my VB.NET
application and am making reasonable progress.

I've just experienced an error that has me a bit worried though.

Many of my plugins use non-modal forms to present data to the user. They
typically open the form and then use it to display progress through whatever
operations they are performing, closing it once they have finished.

As soon as I try to use one of these through COM interop, I get the
following error message:

Non-modal forms cannot be displayed in this host application from an
ActiveX DLL, ActiveX Control, or Property Page

I have two immediate questions:

1. Why? I don't understand why this is a problem?

2. What on earth am I supposed to do about it? :) If I can't get this to
work then virtually all of my plug-in DLLs will break, which will be very
expensive to fix.

My thanks in advance,

--

(O) e n o n e
Nov 21 '05 #1
4 7586
Check out this article

http://support.microsoft.com/default.aspx?kbid=176468

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
http://blogs.msdn.com/jaredpar
"This posting is provided "AS IS" with no warranties, and confers no rights"
"Oenone" <oe****@nowhere.com> wrote in message
news:U0******************@newsfe5-win.ntli.net...
I'm continuing work on getting my VB6 plug-ins to work within my VB.NET
application and am making reasonable progress.

I've just experienced an error that has me a bit worried though.

Many of my plugins use non-modal forms to present data to the user. They
typically open the form and then use it to display progress through
whatever
operations they are performing, closing it once they have finished.

As soon as I try to use one of these through COM interop, I get the
following error message:

Non-modal forms cannot be displayed in this host application from an
ActiveX DLL, ActiveX Control, or Property Page

I have two immediate questions:

1. Why? I don't understand why this is a problem?

2. What on earth am I supposed to do about it? :) If I can't get this to
work then virtually all of my plug-in DLLs will break, which will be very
expensive to fix.

My thanks in advance,

--

(O) e n o n e

Nov 21 '05 #2
Jared Parsons [MSFT] wrote:
Check out this article
http://support.microsoft.com/default.aspx?kbid=176468


Hi Jared,

Thanks for the link. I was initially unconvinced that this was relevant, but
the section describing the behaviour of modeless forms in some containers
does describe the problem I'm encountering.

However, this still doesn't explain (to me, anyway) why this is an issue
(particularly as the host in this case is a .NET application, not IE) or how
to work around it. The proposed solution of "don't open modeless windows"
isn't going to help me much. :-(

Regards,

--

(O) e n o n e
Nov 21 '05 #3
I can't seem to find any explanation of why this behavior occurs.

The only work around I can think of that _might_ work is the following. Add
a callback to your plugin API that passes back a reference to your ActiveX
control. Then use your winform app to create a non modal dialog hosting
this control via AxHost.

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
http://blogs.msdn.com/jaredpar
"This posting is provided "AS IS" with no warranties, and confers no rights"
"Oenone" <oe****@nowhere.com> wrote in message
news:Mj******************@newsfe6-win.ntli.net...
Jared Parsons [MSFT] wrote:
Check out this article
http://support.microsoft.com/default.aspx?kbid=176468


Hi Jared,

Thanks for the link. I was initially unconvinced that this was relevant,
but
the section describing the behaviour of modeless forms in some containers
does describe the problem I'm encountering.

However, this still doesn't explain (to me, anyway) why this is an issue
(particularly as the host in this case is a .NET application, not IE) or
how
to work around it. The proposed solution of "don't open modeless windows"
isn't going to help me much. :-(

Regards,

--

(O) e n o n e

Nov 21 '05 #4
Jared Parsons [MSFT] wrote:
I can't seem to find any explanation of why this behavior occurs.
Oh well :)
The only work around I can think of that _might_ work is the
following. Add a callback to your plugin API that passes back a
reference to your ActiveX control. Then use your winform app to
create a non modal dialog hosting this control via AxHost.


Thanks for the suggestion. I should clarify that it's a simple form I'm
trying to display, not an ActiveX control. It's a COM DLL with a normal form
within it, and I'm trying to display the form.

I'll have a think about retrieving instances of the form back into the .NET
app and see if there's anything I could do with it, though. It looks like
the possibility of me running the plug-in DLLs unchanged (as I had
originally planned) has more-or-less evaporated. :(

--

(O) e n o n e
Nov 21 '05 #5

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

Similar topics

4
by: Gregory | last post by:
Hello, I've managed to build two web pages, one that can display images with associated text data in a table, and one that can resize and display...
2
by: John B. | last post by:
I'm using <h1>MY HEADING</h1> to display a title, however I would like to show one short line of text beside it<p>The short line of text</p>, and...
5
by: Jelks Cabaniss | last post by:
I asked this in two of the Opera newsgroups, but except for one person who advised me to just use namespaced HTML elements in my XML, there were no...
3
by: Deepa | last post by:
Hi Am doing a web app which has a datagrid with template columns. One of the columns has dropdowns for each row. I also have the EditCommandColumn....
15
by: dixie | last post by:
I have a command to open the Access Options dialogue from code: DoCmd.RunCommand acCmdOptions It also opens the Database Window behind it. Is...
3
by: active | last post by:
I draw text in a bitmap and then draw the bitmap on a picturebox and get text that is not all displayed the same. Note the different text style in...
11
by: prats | last post by:
I want to write a GUI application in PYTHON using QT. This application is supposed to take in Japanese characters. I am using PyQt as the wrapper...
13
by: hornedw | last post by:
I have been working on a ecommerce website for myself. What I needed some assistance on was when i was trying to display the...
7
by: Jonathan Wood | last post by:
Okay, I have a site that displays information based on user input, a couple of the items are plain strings that the user entered. I understand...
1
by: ajos | last post by:
This may be very dumb question, but still...I am displaying a value in a input tag with the value shown as readonly... <input type=text size=18...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

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.