469,934 Members | 1,879 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

Inherit

i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave
Jan 22 '07 #1
5 2284
igd
I'm not sure if I understood you but since you are inherit from
ProgressBar which inherits from Control in turn you have two
possibilities to expose your extended ProgressBar:

(1) through the Parent property (i.e. extendedProgressBar.Parent =
parentForm;)

or

(2) through the Controls property of the parent form (i.e.
parentForm.Controls.Add(extendedProgressBar);)
DAVE P schrieb:
i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave
Jan 22 '07 #2
If you are new to user control just start a Windows Control Library porject.
Once you add Windows Application later then you should be able to see it in
your toolbox.

chanmm

"DAVE P" <dv*****@sbcglobal.netwrote in message
news:zj******************@newssvr12.news.prodigy.n et...
>i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave

Jan 23 '07 #3
Hi Dave,

You have to add it to the toolbox manually. In Visual Studio 2005 it will
appear in the toolbox automatically, but only while the project in which
it's defined is part of the currently active solution. If you want to
reference the assembly from another project in a completely different
solution, then you'll have to add the control to the toolbox manually.

How to: Add Items to the Toolbox
http://msdn2.microsoft.com/en-us/lib...55(VS.80).aspx

--
Dave Sexton
http://davesexton.com/blog

"DAVE P" <dv*****@sbcglobal.netwrote in message
news:zj******************@newssvr12.news.prodigy.n et...
>i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave


Jan 23 '07 #4
Thanks for the response

Does that also apply to forms
for instance
I Create a form (no controls)
add new properties like:
oconn // sql connection
and other properties
or callback methods for additional event captures
like a Custom FocusChance etc...

thanks
Dave

"DAVE P" <dv*****@sbcglobal.netwrote in message
news:zj******************@newssvr12.news.prodigy.n et...
>i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave


Jan 26 '07 #5
Hi Dave,

Does what also apply?

--
Dave Sexton
http://davesexton.com/blog
http://www.codeplex.com/DocProject (Sandcastle in VS IDE)

"DAVE" <dv*****@sbcglobal.netwrote in message
news:kD***********@newssvr19.news.prodigy.net...
Thanks for the response

Does that also apply to forms
for instance
I Create a form (no controls)
add new properties like:
oconn // sql connection
and other properties
or callback methods for additional event captures
like a Custom FocusChance etc...

thanks
Dave

"DAVE P" <dv*****@sbcglobal.netwrote in message
news:zj******************@newssvr12.news.prodigy.n et...
>>i want to extend the progress bar control via inheritance

my question is...in the ide how can i expose the inherited
control

for instance can i ad my inherited control in the tool box
or is there a property that has control inherits from

thanks
dave



Jan 26 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Fabian Neumann | last post: by
1 post views Thread by Jeff Schmidt | last post: by
reply views Thread by Phil Evans | last post: by
7 posts views Thread by bobsled | last post: by
4 posts views Thread by Slavyan | last post: by
6 posts views Thread by Mohammad-Reza | last post: by
2 posts views Thread by ad | last post: by
7 posts views Thread by Frank | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.