473,327 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 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 2438
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; }
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.