Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 22nd, 2007, 12:42 PM
Registered User
Join Date: Aug 2007
Location: , VA, USA.
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.

  #2 (permalink)  
Old August 22nd, 2007, 03:15 PM
Registered User
Join Date: Aug 2007
Location: , VA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

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



Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

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

All times are GMT -4. The time now is 03:54 PM.

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