473,403 Members | 2,284 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,403 software developers and data experts.

Child Form Location

41
OK guys I’ve got a question for you. I’ve developed a small knowledge base app for the software I support and it’s comprised (essentially) of two forms (not MDI). The first form (frmMain) is where the searching of the knowledge base takes place and where the results of the searchs are displayed. The second form (frmDetail) shows the details of any selected knowledge base article. What I would like to have happen is that when the frmDetails form is opened, that it would open on the same monitor (left or right) that the frmMain is opened on. So for example, if frmMain is open on the right monitor, when a user opens the details of an article the frmDetails opens on the same monitor. Now here is the hitch, I am reluctant to have frmDetails remember is position on the screen(s) since users can have several frmDetail forms open at once and I would rather they not stack right on top of one another but rather Tile over one another (as they do now, just on the wrong monitor). So I just want the child form to hang out with its parent form. What would you guys (and gals) suggest?

Thanks,
Torgg
Jan 18 '08 #1
2 1399
dip_developer
648 Expert 512MB
OK guys I’ve got a question for you. I’ve developed a small knowledge base app for the software I support and it’s comprised (essentially) of two forms (not MDI). The first form (frmMain) is where the searching of the knowledge base takes place and where the results of the searchs are displayed. The second form (frmDetail) shows the details of any selected knowledge base article. What I would like to have happen is that when the frmDetails form is opened, that it would open on the same monitor (left or right) that the frmMain is opened on. So for example, if frmMain is open on the right monitor, when a user opens the details of an article the frmDetails opens on the same monitor. Now here is the hitch, I am reluctant to have frmDetails remember is position on the screen(s) since users can have several frmDetail forms open at once and I would rather they not stack right on top of one another but rather Tile over one another (as they do now, just on the wrong monitor). So I just want the child form to hang out with its parent form. What would you guys (and gals) suggest?

Thanks,
Torgg
it would be better if you make an MDI application......MDI child forms can be arranged as you wish........
the code will be like....

Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Sub ArrangeChildForms(sender As Object, e As System.EventArgs)
  3. ' Tile all child forms horizontally.
  4. Me.LayoutMdi(MdiLayout.TileHorizontal)
  5. ' Tile all child forms vertically.
  6. Me.LayoutMdi(MdiLayout.TileVertical)
  7. ' Cascade all MDI child windows.
  8. Me.LayoutMdi(MdiLayout.Cascade)
  9. End Sub  
  10.  
Jan 18 '08 #2
Torgg
41
dip_developer,

I’ll give it a try… I’ve not been a big fan of MDI’s, but perhaps I need to give them a second look for this project. I'll let you know how it goes.

Thank you for your time and input,
Torgg
Jan 19 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: sshuangw | last post by:
Hello: I am encountering a very weird issue with MDI child, Overriden WndProc function and hidden form. Basically, the application has two forms, Form1(parent form), Form2(Child form),...
0
by: Udi | last post by:
Hi All, How do I set the location of a child form in an MDI (parent) form. I tried setting the "Location" propery of the child but it was still drawn at position (0,0). (I have several child forms...
3
by: Lance | last post by:
I've noticed that controls that are contained in MDI child forms fail to raise MouseLeave events if the MDI child form's MdiParent property is set to Nothing (after it was set to an existing MDI...
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...
0
by: Henry Wu | last post by:
Hi, I am aware that TransparencyKey only works with top-level forms or Non-MDI Child Forms, if one tries to set the opacity or transparencykey property to a MDI-Child form, it will have no effect....
0
by: Bruin | last post by:
Hi All, I'm having a problem with MDI child forms when the reference to the MDI Parent is set in a Control library. (Sorry for the long post) I have an control library assembly which holds all...
3
by: Zack Sessions | last post by:
I am using VB.NET 2003. I have read the threads concerning the problem where the FormStartPosition of CenterParent is ignored if the form is displayed with the Show method as opposed to the...
2
by: JohnR | last post by:
Let's say I have an MDI parent form with a textbox. If I create an MDI child form and, at runtime, move the MDI child window over the textbox on the MDI parent, the textbox appears in front of the...
2
by: Lenster | last post by:
Environment --------------- Visual Studio.NET 2003 Version 7.1.3088 ..NET Framework 1.1 Version 1.1.4322 SP1 XP Professional 5.1.2600 SP2 Build 2600 Problem Description...
5
by: vul | last post by:
I have an MDI application with a ListBar on the left side of MDI form. All child forms are displayed inside of the client area of MDI form. Now I need to display a third form from a child and...
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: 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
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...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.