Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > MS Technologies ( ASP, VB, C#, .NET )
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
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
Old 05-08-2007, 02:23 PM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,545
Valmont is on a distinguished road
You're not asking that much at all. However, the only reason you can't solve it is because you can't handle object oriented programming yet.
That's no biggie. But you should get back to basics and learn all the features of C# classes and object (instances of classes) handling.

Then try it. You'll notice learning the alfabet is more difficult then making your interactive forms .
__________________
Valmont is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
DU command adapted in C Deliverance Standard C, C++ 3 12-03-2006 08:56 PM
C Database Programming bakoo Platform/API C++ 3 11-20-2006 04:20 PM
Kaat a talking bot in c nvictor Platform/API C++ 10 05-19-2005 01:16 PM
Starting out with C anon C 0 02-24-2003 01:06 PM
edit? anon Lounge 10 11-21-2002 03:02 PM


All times are GMT -8. The time now is 12:32 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle