Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30-01-2009
Member
 
Join Date: Jan 2008
Posts: 56
Problem reloading MDI child form in main form.

Hi,
VB.net problem
First time the MDi child form loads good.
Initial MDI Child form loads fine.
exp.

Dim objChild2 As New Form2()
objChild2.MdiParent = Me
objChild2.Show()

----

MDI Child unloads just fine.
Exp.
If e.Button Is tbbExit Then
'' Me.Close()
Me.Hide()

rs.Close()
cn.Close()

End If

---

The MDI Child reload does not reload into the parent form.
It reloads outside the parent form.
exp.

Dim oForm As New Form2()
oForm.MdiParent = Me.ActiveMdiChild
oForm.Show()

Regards
Reply With Quote
  #2  
Old 30-01-2009
Member
 
Join Date: May 2008
Posts: 63
Re: Problem reloading MDI child form in main form.

Int he first part which works you have
objChild2.MdiParent = Me
In the second part, which doesn't work, you have
oForm.MdiParent = Me.ActiveMdiChild

Don't try to set MdiParent to Me.ActiveMdiChild.
Reply With Quote
  #3  
Old 30-01-2009
Member
 
Join Date: Jan 2008
Posts: 56
Re: Problem reloading MDI child form in main form.

VB.Net User
Answer from Microsoft:
Dim oForm As New Form2()
oForm.MdiParent = Me.ParentForm
oForm.Show()
Reply With Quote
  #4  
Old 30-01-2009
Member
 
Join Date: Aug 2008
Posts: 40
Re: Problem reloading MDI child form in main form.

I am bigginer of VB.NET.Can u help me how I can create child form of MDIparent form?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Problem reloading MDI child form in main form."
Thread Thread Starter Forum Replies Last Post
Google Chrome is opening in basic HTML form instead of the Standard form Beatrix Technology & Internet 5 25-05-2011 10:21 PM
how to get items in a form to auto-resize with the form using visual basic deansmylie93 Software Development 2 02-05-2011 07:06 AM
How to Auto Populate fields from sub form to form? mich43 Windows Software 6 09-11-2010 11:29 PM
VB 2008 - MDI child forms - How do I set a form as a MDI child form emaduddeen Software Development 2 27-04-2010 04:22 PM
Procedure in VB to create form inside another form Jalabala Software Development 3 16-11-2009 02:14 PM


All times are GMT +5.5. The time now is 08:16 PM.