Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 17th, 2007, 06:59 AM
Authorized User
 
Join Date: Oct 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing Methods of an Active form

Can anybody tell, how can I call procedures or functions of an Aciveform (active MDI form) from a MDI form?
 
Old October 23rd, 2007, 06:20 AM
Registered User
 
Join Date: Oct 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

create object of that class (MDI Form) and you can call the method with object.
or declare the method as static so you can call with class name

Bhavana
 
Old October 23rd, 2007, 08:53 AM
Authorized User
 
Join Date: Oct 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I will tell my problem clearly

I have an MDI form and has a Save button in the tool strip. I have a function named "SaveTransaction" in each child form. I want to call the "SaveTransaction" method of the active form when I press the Save button






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem accessing .dll methods,interfaces.. stevenzambas C# 0 May 8th, 2007 10:30 AM
Accessing MaxPwdAge in Active Directory using .net chandu80 General .NET 0 June 4th, 2005 01:04 AM
No active form during OnLoad Bob Pierce Access VBA 1 May 23rd, 2004 06:25 PM
How to print an active form pavel Pro VB 6 1 April 22nd, 2004 08:29 AM
How to set an active form to Nothing. MisbahAnsari VB.NET 1 October 21st, 2003 02:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.