Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 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 August 22nd, 2007, 12:42 PM
Registered User
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Web Form and User Controls

I need help figuring out how I can do what i want to do in C#2005.

I have a window form and 8 user controls that I want to redraw in the same Windows form.

The questions are in my form1 class
do I need to do the following call for all of my user controls?
private namespace.folder.classname general;

What does private void classname_Load_1(object sender, EventArgs e)
do? I've tried looking for this event but I don't understand would this be the place that I tell it that I want it load the other user control?

Would I have a paint method in my form to redraw the different user controls?

would it be in the individual controls where i tell it to hide while another user control is on top?

Are there any threading issues I will need to be aware of?

Would I need to pass in the form to my user control classes so that they know where to redraw?
 Originally I was thinking of just using Panel class and trying to add logic to switch between the panels similar with what I'm doing with the user controls, is it easier using panels?

I'm just looking for some guidance.

Thanks,
CSharpSeeker
 
Old August 22nd, 2007, 03:15 PM
Registered User
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I made a mistake in the post, it is a Windows Form not a web form. sorry.


Thanks,
Andrea

Thanks,
CSharpSeeker





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web parts and User controls capitapicard BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X 0 June 26th, 2006 04:11 PM
When to employ web services vs. user controls? VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 March 9th, 2006 06:53 PM
User controls not showing on web page pdr ASP.NET 1.0 and 1.1 Basics 0 August 10th, 2005 09:02 AM
Accessing Web User Controls from code aquaboltar ASP.NET 2.0 Basics 0 October 26th, 2004 04:04 PM





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