VS 2008 MDI And Child Within A Child?

Feb 13, 2010

I have an MDI application where a child form (A) opens a second form as a Dialog (B), which works great but you can't do anything in the MDI until you close the Dialog form.I've now changed the Dialog form (B) so it just calls as a Show and I have disabled the parent form (A). This works better and allows you to click anywhere in the MDI (except the parent form (A)) which is ideal and works much better.

The problem comes if you maximize the parent form (A) and then open form (B), this is then also maximised but I need it to be a fixed.I've done some research and I've tried using the API SetParent which gets round the problem of the form being maximized but this makes the form TopMost in the MDI.

All I need is form B to be topmost of form A and to be a fixed size. Is there any solution?

View 2 Replies


ADVERTISEMENT

Interface And Graphics :: MDI Parent / Child - Child To Check To See If It Is The Last Child Object Before Closing

Feb 18, 2011

Im working with MDI parent/child objects. when closing the child objects i need the child to check to see if it is the last child object before closing. i couldn't find anything on google, maybe im searching for the wrong thing.

View 2 Replies

Creating DataRelation With Parent And Child Tables And Generating Xml With Subnodes For Child Table?

May 21, 2012

Dim obj_DataTable As New System.Data.DataTable("Category")
Dim obj_DataSet As New DataSet()
'Declaring the array of DataColum to hold the Primary Key Columns

[code].....

View 1 Replies

Syntax Checker - Populating My Combo Box With All Of A Root-child's Child Element's Names?

Mar 10, 2009

My program handles XML files that have certain elements within a root-child node that are identical expect for their inner text value. So while populating my combo box with all of a root-child's child element's names I get like five identical items listed. Which brought about the problem of selecting say the third item and getting the value of the first displayed. So I came up with a loop function that determines if the selected combo box item is preceded by one of the same name, if it is, then it adds +1 to a counter variable and keeps checking farther and farther up the list. Once it loops to an item that doesn't have the same name it exits and it reads the Xth (X = counter mentioned earlier) element's inner text from the file. This works great for elements 1, 3, 4, and 5. But not for 2. A while back when I was focused on this problem I discovered the root of the problem but I was unable to circumvent it. I'll put the loop below so you can see the problem in action instead of trying to follow my verbose explanation:

[code]...

View 3 Replies

Access A Button Through Code There Is On A Panel There Is A Child On Several Other Child-panels?

Aug 18, 2011

I'm from denmark and hope I can explain my question for you. This is just a example: I have a panel, let's say panel1 and another panel on that panel (panel2) and so on until for example panel5 - on panel5 I have a button (button1). Now I would like to change button1's backcolor property through code how do I then get access to button1, now it's a child-control on panel5 that is a child control on panel4 etc. ??

View 3 Replies

FindwindowEX Send Message In Child Of A Child Of An Application?

Apr 29, 2009

findwindowEX Send Message in Child of a Child of an ApplicationFirst:- my english is very ad (german)- i am a newby of Visual BasicMy Form with SQL-Integration is sending Data per Button to Notepad sucessfull. Unfortunately, the purpose application has interlocking children.But the application don become the data. to found a solution / or a Idear. i think i put in screenshots an my

Public Class Form1
'Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[code].....

View 5 Replies

How To Work On Both Parent And Child Form Without Closing Child

Apr 10, 2011

i have created two forms A and B when button in form A is clicked B is invoked when B is running its not possible to work on A until i close form B. How can i work on A without closing B

View 5 Replies

Passing Data From Child To Parent Form Which Is A Child Of Another One

Apr 17, 2012

i have three forms

when i click button1 on form1=====> form2.showdialog()
then click button 1 on form2 =====> form3.showdialog
then click button 1 on form 3 =====>

[code].....

View 7 Replies

VS 2010 : MDI Child Set Other Child Property?

Jun 9, 2012

I have 1 form as parent MDI (frmParent.vb) and have 2 child form (frmChild01.vb & frmChild02.vb).the code for parent form as per below.

Public Class frmParent
Private Sub OpenChild01ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenChild01ToolStripMenuItem.Click
Dim child01 As frmChild01

[code]....

My problem is how can I set label1.text in frmChild02.vb when user click button1 in frmChild01.vb

View 3 Replies

Filter Parent / Child Table In Linq Query Based On Entities In Child Table?

Jul 9, 2010

I have a table (Projects) which is linked to projectVersions on projectID..projectVersions contains several columns on which I'd like to filter a returned project (and associated projectVersions) list. For example there is a "capacity" column and a "country" column. I am doing a filtered list of projects on one page and I'd like to include all projects where any one of the associated projectVersions has a capacity of 750ml and a country of "France" for example.It may be that a particular parameter is not set and so I pass a zero to indicate not to filter on that.I guess this needs some kind of subquery as when I try and do something like this: [code] it doesn't work as the "xxx" bit, being one-to-many, expects me to specify an item to get at the entities within and yet I want to query where ANY of the associated versions match one of the criteria.

View 1 Replies

Array Of Child Objects In Nested Classes And Accessing Child Objects In .Net

Jan 3, 2012

I have a nested class, let's call it class1 and it has class2 inside it; VB.Net eg:[code]

1) How can I define X number of Class2 objects[let's call it: Node(x) array]** with NEW() subroutine called?' this raises error: dim cls2(n) as new class2 end sub.

2) How can I return actual number of Node() array? [code]Outside my class in main project I define cls1 object:[code]Now an array of class2 is created inside cls1.

3) Now,How can I access All of them[node(x) array which is created inside cls1] with all properties and methods available?

I remember I wrote a ProcessManager class with this functionality in .net 2003, nearly 4 years age, I don't have the code now.

View 1 Replies

MDI Child Maximized - The Child Form Shows Maximized In The MDI Parent But Behind The UserControl

Nov 12, 2010

Note: I am working with Visual Studio 2010 Professional. Note: There are a lot of MDI Child posts, but none (that I have found) that apply to my scenario... Scenario I have an MDI form with a UserControl docked at the top. The UserControl is for navigation and is ~50 pixels in height. When I show a child form with its WindowState property already set to 'Maximized', the child form shows maximized in the MDI parent, but behind the UserControl.

[Code]...

View 3 Replies

VS 2008 - Child Window - Yet Not Child Window

Aug 23, 2009

I have a 3rd party program that puts up a pop up box and asks the user for input. In Spy++ the original program (I'll refer to this as Window A from now on) is a top level window, and the popup (Window B) is also a parent window. However, when I use FindWindow(Nothing, "Captcha Challenge") it returns 0. I've also used a code snippet from the forums

[Code]....

View 1 Replies

VS 2008 Add Child Nodes To Child Nodes?

Aug 10, 2009

OK, so I have the code to add a Child Node to a selected node in ta TreeView. The thing is, even if I select a child node to "add" to, it adds the new node to the parent of the selected child node.

I know why it does that: TreeView1.Nodes(TreeView1.SelectedNode.Index).Nodes.Add() adds to the first node. So how do I progamatically add to the child node I have selected, not it's parent node. I can't figure out the logic on how to accomplish this.

NOTE: There can be an infinite amount of child nodes.

UPDATE: I just found out that if I have a child node selected, TreeView1.SelectedNode.Index returns -1 since there is nothing selected in that first level. I'd have to use TreeView1.Nodes(0).SelectedNode.Index to get the proper index for the ChildNode. *sigh*

View 5 Replies

VS 2008 Child Control In Another Child Control?

Oct 24, 2009

In my form I hace a Groupbox1, within Groupbox1 have a Groupbox2, within Groupbox2 have a Textbox1..how to call the Texbox1 from another form? When I use Dim newControl As Control = Form1.Controls(Textbox1.Name) I get nothing value?if I use Form1.Controls(Groupbox1.Name) it can get the Groupbox1

View 3 Replies

File To Open As Mdi Child Form / Save From Child Form

Nov 17, 2011

I have a MenuStrip with File > New, Open, Save, Exit located in a parent form, and a RichTextBox located in a child form.The problem I'm running into is concerned with the destination of the file elected from "Open" and the save.When a user selects their file from "Open", I need it to open the child form and put the text into the RichTextBox.I also need the program to be able to "Save" from a child form, whether it's been brought up via "New" or "Open".

View 3 Replies

MDI Child Set Other Child Property

Jun 9, 2012

I have 1 form as parent MDI (frmParent.vb) and have 2 child form (frmChild01.vb & frmChild02.vb).[code]My problem is how can I set label1.text when user click button1.

View 2 Replies

MDI Child In .net 2008?

Aug 1, 2009

I have a MDI based application with two problems. First: when i close the MDI child i want to ask if the user would like to save the data in the child and give them the regular choice yes,no,cancel however when i try to use the Formclosing event it never fires, it does fire for the mdi parent but that is no help.

Second: When i load the child i am using a template form to get all the controls and code, but if i close all the children then reopen one it errors because the controls are disposed.

[Code]...

View 7 Replies

Unable To Place A Label Box In The MDI Parent Form And Then Open A Child Form The Label Box Highlighted In Child Form?

Dec 15, 2011

I have an issue when I place a label box in the MDI Parent form and then open a child form the label box highlighted in child form?

View 6 Replies

VS 2008 A Child Form On Top Of The Other?

Apr 3, 2010

I've got an MDI vb project with several child forms. Now I want each child to be placed on top of the other open childs when I create it. In simple words, I don't want it to hide behind the other open childs.

View 6 Replies

VS 2008 Getting The MDI Child Location?

Aug 8, 2009

In one of my apps I'm using MDI childs so the user only has one screen. There's only one MDI child open at any time, it is maximized and all control option (controlbox, minimize and maximize buttons) are turned off, so to the user it seems there is one program with one screen.In the parentform I'm using devexpress' RibbonBar for the menu.

When I open a new child, the uppermost part of the childform (about 15px) is not shown, it's put under the Ribbonbar. If I resize the parentform however, the childform ofcourse changes dimensions as well because it is maximized and this somehow causes it to shows like it's supposed to.Is there any way to invoke this behaviour programmatically so the location of the child form is correct from the beginning?

View 2 Replies

VS 2008 MDI Child Over TabControl?

Jan 14, 2010

I got mainform which has a tab control on it.

on one of the tabs, i have a button that sets:

install.mdiparent to me and then show.

It doesnt show the form.

Its because of the tab control. So i tried to send the tab control to the back, and the install form to the front. that still doesnt work.

Anyway to set the tab page as the parent container?

View 3 Replies

VS 2008 MDI Child Text

Apr 24, 2009

I am using VB.NET (2008). I have a MDI form and a child form loads whenever I click on a menu item.In an MDI form if you click on Window menu, where you see options like Tile Horizontal, Cascade etc you also see the name of child forms which are open in that list. If you click any one of them then the focus shifts there.'Now the problem is if a child form changes its caption/text after it has been loaded and then you click on Window Menu it still shows the old text. If I open more than one child form and change one of the form's text and then click on another one and then open Window Menu then its okay.how can I refresh the list or do whatever so that if my mdi child form loads and its caption changes then it should be reflected in my mdi's form's window menu.

View 8 Replies

VS 2008 Set The Form1 As A Mdi Child?

Jul 19, 2009

How can i set the form1 as a mdi child? when im showing the form in the mdi parent the form appears but the form is not exactly inside the mdi parent. In vb6 i can make it by setting the form1 to mdi child into true, but in vb9 i cant find it.

View 1 Replies

VS 2008 ToolStrip Over MDI Child?

Nov 23, 2010

Why does this happen?

View 2 Replies

[2008] MDI And Child Forms?

Mar 21, 2008

In VB6, MDI applications were possible. You'd create a form and a few Child forms and go with it.

View 7 Replies

VS 2008 : Getting The Position Of A Child Control?

Jan 22, 2011

In your opinion what API use Spy++ to get the "Rectangle" and "Restored Rect" data of a child control of an external window?I don't think it uses GetWindowPlacement because if I use this API for the main window I obtain the same values of Spy++, but if I use the GetWindowPlacement API to find the position of a control of the window itself, known it Hwnd, I obtain different results as to Spy++ (that are ALWAYS the same results also if I shift the Main window... so I think that are relative data and not absolute data... but they are wrong )

One example:
Spy++ : (620, 473)-(792, 505)
GetWindowPlacement: (615, 450)-(787, 482)
same dimensions... but different pos... and the right pos is the Spy++ pos.

View 2 Replies

VS 2008 : Opening MDI Child Forms?

Dec 29, 2010

In a MDI application, for opening a form in the MDI, I am using the following code

Private Sub RoleToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RoleToolStripMenuItem.Click
Dim lobj_ChildForm As frmRole
'Check if form is already open
lobj_ChildForm = Nothing

[code]....

As you can see, I need loopong through all the open child forms.

View 2 Replies

VS 2008 Arranging MDI Child Forms?

Jun 18, 2009

I have these codes to load 2 MDI child forms from my menu...

Private Sub Form1ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Form1ToolStripMenuItem.Click
Dim f As New Form1

[code]....

but still nothing happens.

View 5 Replies

VS 2008 DataGridViewComboBoxColumn In MDI Child Form

Apr 23, 2012

I have a main form having the MDI Parent Control. I have a menu toolstrip menu "set status" which opens a Child Form having a DataGridView. The DataGridView has a

[Code]...

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved