I am trying to open another MDI Child form (that is not currently open) from
within another MDI Child. There is a "Next" button that should navigate to
the next form in the series, and I cannot get this to work. With VB6, it
would have been simple, but vb.NET is completely different.
Basically, I have a function on the MDI Parent that should open the new
child, that I am calling from the child currently open. This code executes
without error but then NOTHING happens.... It goes like this:
Public Sub ShowChildForm()
Dim MDIChild As New frmROS
MDIChild.MdiParent = Me
MDIChild.Show()
MDIChild.Dock = DockStyle.Fill
End Sub
Any ideas what I may be doing wrong?
Thanks,
-Valerie 3 7384
Hi,
I think you are not calling the right ShowChildForm procedure. In
the code for the next button on the child form try something like this.
DirectCast(me.mdiparent,Form1).ShowChildForm
' replace form1with the name of your mdi parent form.
Ken
---------------------
"kvrdev1" <kv*****@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
I am trying to open another MDI Child form (that is not currently open) from
within another MDI Child. There is a "Next" button that should navigate to
the next form in the series, and I cannot get this to work. With VB6, it
would have been simple, but vb.NET is completely different.
Basically, I have a function on the MDI Parent that should open the new
child, that I am calling from the child currently open. This code executes
without error but then NOTHING happens.... It goes like this:
Public Sub ShowChildForm()
Dim MDIChild As New frmROS
MDIChild.MdiParent = Me
MDIChild.Show()
MDIChild.Dock = DockStyle.Fill
End Sub
Any ideas what I may be doing wrong?
Thanks,
-Valerie
Ken,
Thanks for the response, but I know that the procedure is executing because
I am stepping through the code... any other ideas?
Thanks,
-Valerie
"Ken Tucker [MVP]" wrote: Hi,
I think you are not calling the right ShowChildForm procedure. In the code for the next button on the child form try something like this.
DirectCast(me.mdiparent,Form1).ShowChildForm
' replace form1with the name of your mdi parent form.
Ken ---------------------
"kvrdev1" <kv*****@discussions.microsoft.com> wrote in message news:2F**********************************@microsof t.com... I am trying to open another MDI Child form (that is not currently open) from within another MDI Child. There is a "Next" button that should navigate to the next form in the series, and I cannot get this to work. With VB6, it would have been simple, but vb.NET is completely different.
Basically, I have a function on the MDI Parent that should open the new child, that I am calling from the child currently open. This code executes without error but then NOTHING happens.... It goes like this:
Public Sub ShowChildForm()
Dim MDIChild As New frmROS
MDIChild.MdiParent = Me MDIChild.Show() MDIChild.Dock = DockStyle.Fill
End Sub
Any ideas what I may be doing wrong? Thanks, -Valerie
Hi,
Please post the code that calls the procedure.
Ken
-------------
"kvrdev1" <kv*****@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
Ken,
Thanks for the response, but I know that the procedure is executing because
I am stepping through the code... any other ideas?
Thanks,
-Valerie
"Ken Tucker [MVP]" wrote: Hi,
I think you are not calling the right ShowChildForm procedure. In the code for the next button on the child form try something like this.
DirectCast(me.mdiparent,Form1).ShowChildForm
' replace form1with the name of your mdi parent form.
Ken ---------------------
"kvrdev1" <kv*****@discussions.microsoft.com> wrote in message news:2F**********************************@microsof t.com... I am trying to open another MDI Child form (that is not currently open) from within another MDI Child. There is a "Next" button that should navigate to the next form in the series, and I cannot get this to work. With VB6, it would have been simple, but vb.NET is completely different.
Basically, I have a function on the MDI Parent that should open the new child, that I am calling from the child currently open. This code executes without error but then NOTHING happens.... It goes like this:
Public Sub ShowChildForm()
Dim MDIChild As New frmROS
MDIChild.MdiParent = Me MDIChild.Show() MDIChild.Dock = DockStyle.Fill
End Sub
Any ideas what I may be doing wrong? Thanks, -Valerie This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: CJack |
last post by:
hy,
I have an mdi application, i create a child form and I want to know
when a button is pressed while that child form is loaded.
I have this code:
private void frmTestBaby_KeyUp(object sender,...
|
by: Maheshkumar.R |
last post by:
Hi groups,
How i can command over the MDI CHIlD forms created dynamically at runtime from PARENT.
Let say, i have generated 5 mdichild forms, but i want to work with child form1 from MDI...
|
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...
|
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...
|
by: jxiang |
last post by:
I created a child form that is much bigger than the MDI form in VB.Net. I am
trying to capture the whole child form and save as an image or sent to
printer. I tried to use BitBlt to capture the...
|
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...
|
by: Scott H. |
last post by:
I have an MDI parent form that creates mdi child forms each of which are
represented by a tab item. I use a third party control to generate the tabbed
MDI child forms.
Each tab or MDI child form...
|
by: Richard Lewis Haggard |
last post by:
What is the mechanism by which a child window can notify its parent that it
has been clicked on?
--
Richard Lewis Haggard
www.Haggard-And-Associates.com
|
by: Phil |
last post by:
I can check for MdiChildren.Length=0, but which event handler should I put
this in to detect when a child window is closed?
TIA
Phil.
|
by: emalcolm_FLA |
last post by:
Hello and TIA for any help with this non profit Christmas assistance
project.
I have an applicant (app history) and child (child history) tables (4
total). I need to grab the next available (in...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |