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

how to properly reparent mdi child from vb6 to vb.net

sbs
Hello,

I have a funny question. We are in the process of moving a software of
ours from vb6 to vb.net. In order to get smooth transition we plan to
use the former app inside the newer as an activeX server, so that all
forms can be ported to vb.net one after another.

However, The problem is that both the original and the newer app are MDI
applications.

I have managed to get the old app to run as an activeX that is
instanciated in the newer app.
I can reparent the mdichlid windows from the older app to the newer app,
however I cannnot set the proper style so that it will behave as a
proper child window of the newer frame windows. As a consequence the new
MDI children cannot overlapp the older ones, and the maximizing of the
older forms in the newer app is not properly handled by windows.
I have tried using the spyXX to grab the ex_style of a forms10 mdi
child, but eventually ended with a right-to-left misbehaving child
(ExStyle += 50).

Thank you for your help

Stéphane
Nov 21 '05 #1
1 1982
sbs
Hi All,

For those that may be interested by the matter, the solution is as follows:
- Change all mdi childs to vb6 windows to borderless
- Reparent them to a docked-fill panel ina standard .Net MDI child form
- Maximize the vb6 window so it will fill the panel

This seems to take care of all the refresh problems I have seen and
works around the problems linked to the window not "thinking" it is a
mdichil of the .Net frame window.
sbs wrote:
Hello,

I have a funny question. We are in the process of moving a software of
ours from vb6 to vb.net. In order to get smooth transition we plan to
use the former app inside the newer as an activeX server, so that all
forms can be ported to vb.net one after another.

However, The problem is that both the original and the newer app are MDI
applications.

I have managed to get the old app to run as an activeX that is
instanciated in the newer app.
I can reparent the mdichlid windows from the older app to the newer app,
however I cannnot set the proper style so that it will behave as a
proper child window of the newer frame windows. As a consequence the new
MDI children cannot overlapp the older ones, and the maximizing of the
older forms in the newer app is not properly handled by windows.
I have tried using the spyXX to grab the ex_style of a forms10 mdi
child, but eventually ended with a right-to-left misbehaving child
(ExStyle += 50).

Thank you for your help

Stéphane


Nov 21 '05 #2

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

Similar topics

2
by: TomekR | last post by:
Hello ! I was developing xslt sheet lately and - experimenting - I made mistake resulting in that, the effect of the transformation is not well-formed xml document. I made these tests using...
3
by: DavidS | last post by:
Have parent.aspx from which I open Driver.aspx form via button on parent.aspx. When I first open the modal dialog, the driver.aspx Page_Load function is called. After I close the dialog, then...
0
by: Kartic | last post by:
Hi, I have a MDI form and 2 child forms Form1 and Form2. Each of this child form has two command buttons having Text "Button A" and "Button B" with A and B as shortcut. Now when both these forms...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
10
by: Sean Dockery | last post by:
I have the following HTML file that I've been using for testing... <html> <head> <script type="text/javascript"> <!-- function handleWindowLoad() { var items = ; for (var i = 0; i < 11; i++)...
2
by: Michael D. Reed | last post by:
I am using ClickOnce to distribute a program. It works well except for one detail. When a new version is installed, the program does not initialize properly immediately after the update. The...
7
by: Hong | last post by:
Hi I have a main form with 7 subforms where the master/child link is the RefID in the main form where the Main form is 1-many relationship to those subforms. All the subform have the same...
4
by: jewel87 | last post by:
Hi everyone! I'm writing some code in C under UNIX, which should give some output like this: PARENT: pid = 10063 CHILD: my pid = 10064 CHILD: my parent's pid = 10063 CHILD: Sleeping... PARENT:...
3
by: Joel Hedlund | last post by:
Hi! I've raised this issue on #pygtk and #gtk+ but with no luck. I haven't been able to solve this even with aid of google, the pygtk reference and the gtk C source, so pretty please help? ...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.