473,385 Members | 1,888 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.

MDIParent Problem VB.NET

This code is supposed to pop-up a child window (frmConnector):

Private Sub MenuItem5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem5.Click

Dim p_frmConnector As New frmConnector()
p_frmConnector.MdiParent = Me
p_frmConnector.Show()

End Sub
-------- BUT ------

When I click the menu item above no form appears. It will appear if I
take p_frmConnector.MdiParent = Me out of the code. This code sits in
the parent form, I also have Me.IsMdiContainer = True in the form load
of the parent.

I have played around with activate, visible etc...

Please give me some direction as to why this is occuring and even how
to rectify it,

Thanks,

Ron Pagliuca
Nov 20 '05 #1
2 1860
* ro*********@hotmail.com (Ron Pagliuca) scripsit:
Private Sub MenuItem5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem5.Click

Dim p_frmConnector As New frmConnector()
p_frmConnector.MdiParent = Me
p_frmConnector.Show()

End Sub
-------- BUT ------

When I click the menu item above no form appears. It will appear if I
take p_frmConnector.MdiParent = Me out of the code. This code sits in
the parent form, I also have Me.IsMdiContainer = True in the form load
of the parent.


The code should work. Did you try this in a blank project with an MDI
container? Does it work there?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Bob
Make sure you're actually handling the correct menu item click. Put a breakpoint
on p_frmConnector.Show() and make sure it's being hit. You've probably already
done that, so also try Dim p_frmConnector As New Form(). If you can get just a
vanilla Form to show up, then you know it's your own class that's causing a
problem. If you still have a problem then you should post a simplified repro
here so we can take a look.

HTH,
Bob

"Ron Pagliuca" <ro*********@hotmail.com> wrote in message
news:fc**************************@posting.google.c om...
This code is supposed to pop-up a child window (frmConnector):

Private Sub MenuItem5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem5.Click

Dim p_frmConnector As New frmConnector()
p_frmConnector.MdiParent = Me
p_frmConnector.Show()

End Sub
-------- BUT ------

When I click the menu item above no form appears. It will appear if I
take p_frmConnector.MdiParent = Me out of the code. This code sits in
the parent form, I also have Me.IsMdiContainer = True in the form load
of the parent.

I have played around with activate, visible etc...

Please give me some direction as to why this is occuring and even how
to rectify it,

Thanks,

Ron Pagliuca


Nov 20 '05 #3

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

Similar topics

1
by: yin heng | last post by:
I am using c#2005 Beta to write a Mdi form, but I can't find the MDI properties as: IsMdiChild or MdiParent. I am a beginner of c#, is it the difference between .net 2003 edition and 2005 beta?...
1
by: Dursun | last post by:
I need to call a subroutine (CreateNewDoc()) in FormA from within FormB based on the user action in FormB. Let FormA be an MDIForm and let FormB be its MDIChild form (during the creation of FormB,...
26
by: Paul Mars | last post by:
FormParent load opens FormChildA. FormChildA btn click opens FormChildB. (FormChildA and FormChildB are both children of FormParent) (FormChildA and FormChildB are different forms) Problem:...
4
by: Ben dotNet | last post by:
FormA is the mdiParent FormB is the child FormC is the Form that is used to open FormB How do I open FormB from FormC (that is not a child) so that it it's mdiParent is FormA? Thanks, --Ben
1
by: Roy | last post by:
Hi all, I'm opening a mdichild (Form2) within another mdichild (Form1). In Form1 I have: Form2.MdiParent = Me.MdiParent 'No problem here .... .... If Form2.ShowDialog = DialogResult.OK Then 'I...
6
by: Rob | last post by:
Hello, I can easily send data types from any MDI parent to an MDI Child window using something like MDIChild( i ).ChildSubroutine( i2 ), which would call the Public subroutine ChildSubroutine in...
1
by: PDP-8E | last post by:
I'm new to VB.Net 2003 - (2 weeks in) so this MAY be straightforward... (Things changed since Octal Assembler I see !!!) I'll try to lay this out in a way that makes sense I created a...
2
by: thorgal | last post by:
Hello Following problem occured: I have an MdiParent with a Listview. In that listview i have elements like (x1,x2,x3) When I click on x1 a subform (mdichild) opens and i can change the...
2
slashcanadian
by: slashcanadian | last post by:
Hi, I want to ask something about MDIParent and MDIChild. I have no problem by putting the Form inside MDIParent by giving the link in the MDIParent. My question is.. when I have a link to another...
0
by: kardiss | last post by:
I am trying to add Meebo's "Pop-out" kinda feature to my application which when a button is pressed in a MdiChild form, it kicks that MdiChild form out of the MdiParent boundary and acts like a SDI...
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: 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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.