Thread: Quick C# Help
View Single Post
Old 04-11-2007, 10:48 AM   #1 (permalink)
dave120
Recruit
 
Join Date: Sep 2006
Posts: 10
dave120 is on a distinguished road
Quick C# Help

Hello,

I'm in the process of writing an application and C# and I'm trying to figure out how to make forms interact with each other. For example if I'm on the main menu form, and I want to change the background color of another form with a button or other control.

I know in VB6 that I've used in the past you just say from form 1 somewhere like form2.backcolor = "black" etc.

But from the way C# seems to structure things, this type of thing doesn't work that easily as it's using instances of classes that can't be accessed directly by other forms it seems like. I'm trying to do this while several forms are already running without loading a new instance of the forms. Like if one form is playing media files I want to be able to access another form to change properties and things without stopping and reloading that media form.

Anyone have any ideas on how to access things from other forms that are already loaded up?

Thank you!

~Dave
dave120 is offline   Reply With Quote