Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 April 14th, 2008, 03:03 AM
Registered User
Join Date: Mar 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default about picturebox inherit

i have inherited picturebox class and created my class
public class mypict:picturebox

but how can i handle this on form1.because i cant see my picture on form

Old April 14th, 2008, 03:48 AM
Friend of Wrox
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post

When you say you "cant see your picture on your form" is anything appearing or is it just blank?

Have you overriden then OnPaint method and included the appropriate implementation there?

The Developing Developer
Currently Working Towards: MCAD C#
My Blog: http://robzyc.spaces.live.com
Old December 12th, 2008, 11:30 AM
Registered User
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default General Control Inheritance Question

i have a similar question about how to visually see the inherited control on the form in design view. i create a class "myPanel" within my main form's class which inherits from Panel. i do this so i can isolate and override various methods of the panel, such as onpaint, onmousemove, etc. but when i define the panel this way i don't understand how to then see an instance of this inherited panel on my form in design view?

what am i missing?

thanks in advance
Old December 12th, 2008, 03:41 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Reply deleted; replied in the wrong thread. Sorry.
Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!

Last edited by Imar; December 12th, 2008 at 05:08 PM.. Reason: Reply deleted; replied in the wrong thread. Sorry.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7, Inherit keyword not working VictorVictor BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 April 12th, 2006 12:13 PM
Can we Inherit ADODB venki5star Visual Studio 2005 3 March 13th, 2006 10:50 AM
Inherit Exception or ApplicationException organicglenn BOOK: ASP.NET Website Programming Problem-Design-Solution 3 March 27th, 2004 10:42 PM
Ch. 2: Cannot inherit from final class joew098 JSP Basics 0 September 17th, 2003 04:34 PM

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