PC Review


Reply
Thread Tools Rate Thread

Calling a control on another form

 
 
Sameh Ahmed
Guest
Posts: n/a
 
      21st Mar 2005
Hello there
is there a way to call a control on a form with that form being initiated as
a public variable?
here's the situation:
I have a form(form2), that I call as a new variable from form1.
I need form2 to be able to access a listview control on form1 without the
need to declare form1 at the load of the project, because I will need to
show lots of this form when the user needs to, to avoid "cannot access a
disposed object" errors.
is there a way like using me.parent for example to be able to access form1 ?
Regards
Sameh


 
Reply With Quote
 
 
 
 
Sameh Ahmed
Guest
Posts: n/a
 
      21st Mar 2005
Got it
when I call form2, I add me as the owner of it
so when I need to call a control on form1 from form2 I call the owner.

"Sameh Ahmed" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello there
> is there a way to call a control on a form with that form being initiated
> as a public variable?
> here's the situation:
> I have a form(form2), that I call as a new variable from form1.
> I need form2 to be able to access a listview control on form1 without the
> need to declare form1 at the load of the project, because I will need to
> show lots of this form when the user needs to, to avoid "cannot access a
> disposed object" errors.
> is there a way like using me.parent for example to be able to access form1
> ?
> Regards
> Sameh
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling form's web control Alan T Microsoft ASP .NET 0 1st Jul 2010 03:33 AM
calling the after_update event of a control in Form A from Form B pietlinden@hotmail.com Microsoft Access VBA Modules 0 11th Apr 2008 01:06 AM
returning control from a modal form to the calling form =?Utf-8?B?UGFvbG8=?= Microsoft Access Forms 3 13th Jul 2004 10:37 AM
Calling a form function from a button click on a user defined control placed on the form Scott Schade Microsoft C# .NET 3 20th Feb 2004 01:16 AM
Filling control in a form from a calling form SAC Microsoft Access 2 12th Nov 2003 10:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:14 PM.