472,985 Members | 2,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,985 software developers and data experts.

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 2417
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Fabian Neumann | last post by:
Hi! I got a problem with font-family inheritance. Let's say I have CSS definitions like: p { font:normal 10pt Verdana; } strong { font:normal 14pt inherit;
1
by: Jeff Schmidt | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, ~ Ok, I've got some tables, and a style sheet that contains stuff to format the table. The problem I'm having is, it appears that using...
0
by: Phil Evans | last post by:
URL: http://philevans.com/tabletest.html A boring table, but one which illustrates my problem. I'm writing a large PHP app which outputs data tables. Users of the app can configure their...
7
by: bobsled | last post by:
For class A to reuse functionality of a class B, A could either contains B or inherits from B. When should pick which? In a book the author says that "Don't inherit from a concrete class." Does...
4
by: Slavyan | last post by:
(I just started to learn C#.NET) What's the syntax in c# for a class to inherit more than one class. I know following syntax: public class MyClass : MyOtherClass { } but I need to inherit...
6
by: Mohammad-Reza | last post by:
I wrote a component using class library wizard. In my component i want to in order to RightToLeft property do some works. I can find out if user set this property to Yes or No, But if He/She set it...
2
by: ad | last post by:
We can inherit a class. But if the class is the code behind, when we inherit it , can we inherit it's aspx ahead together ?
7
by: Frank | last post by:
Hi, a question probably asked before, but I can't find the answers. Base class X, classes A, B and C inherit class X. In class A I do not want to inherit property (or function or method) P1....
3
by: J | last post by:
I tried to inherit 'Shot' class from 'Image' class, only to fail. It gives me the CS0122 error, which says that it can't access 'System.Drawing.Image.Image()'. What am I missing? using...
2
by: GTalbot | last post by:
Hello fellow comp.infosystems.www.authoring.stylesheets colleagues, Imagine this situation: #grand-parent-abs-pos { height: 400px; position: absolute; width: 600px; }
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.