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

HELP PLEASE: Me.MDIParent returns what?

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, MDIParent property was
populated properly). So, the FormB.MDIParent (or from
within FormB, "me.MDIParent") will (should?) return an
object refernce to the FormA instance (I am not sure if
this is a correct assumption... please read along). At
this point I should see the Public subroutine CreateNewDoc
I defined in FormA to show-up via intellisense from
within FormB. It does not show-up! Am I missing someting
here? Is there any gurus out there who can give me some
pointers as to how to deal with the situation?

Thank you very much in advance.

Dursun

Nov 20 '05 #1
1 1374
* "Dursun" <an*******@discussions.microsoft.com> scripsit:
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, MDIParent property was
populated properly). So, the FormB.MDIParent (or from
within FormB, "me.MDIParent") will (should?) return an
object refernce to the FormA instance (I am not sure if
this is a correct assumption... please read along). At
this point I should see the Public subroutine CreateNewDoc


You will have to do a cast to see the methods:

\\\
DirectCast(Me.MdiParent, MainForm).MyMethod()
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

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

Similar topics

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
5
by: Edwinah63 | last post by:
Hi everyone, i was wondering if anyone else had observed this and if there is any workaround or patch. i have some screens (an mdi child forms) with the buttons &Add, &Edit, &Save and E&xit,...
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...
2
by: Michael | last post by:
Hi, I have a form (switchboard like form) thats loaded into a MDI parent form. This form is the start off point for all the other screens in the app. I have placed a exit button on the switchboard...
1
by: MyndPhlyp | last post by:
Newbie alert! VB 2005 Express. One MDIParent form and one regular Form. The MDIParent has the standard ToolStrip. The MDI Child Form has its own ToolStrip that is to be merged onto the...
9
by: Tim | last post by:
I am new to this arena of development although I am hoping that some or most of my C# web development might carry through here as well. I have started to create a MDI application. I have the...
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...
3
by: The Mad Ape | last post by:
Hi Whenever I open a form and want to check for an existence of the form I use the following code: Dim frm As Form For Each frm In Me.MdiParent.MdiChildren If TypeOf frm Is Form17 Then...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
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...
1
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)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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...
0
isladogs
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...

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.