View Single Post
Old Feb 8th, 2007, 9:59 PM   #3
InfoGeek
Professional Programmer
 
InfoGeek's Avatar
 
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4 InfoGeek is on a distinguished road
I think you didn't understand what I meant.

If I create a UserControl, I can edit the appearance and put other controls on it at design time. But I wanted to directly inherit from TrackBar and by not putting the TrackBar on UserControl. I simply created a class file having code something like:
public class myTrackbar: Trackbar
{
  ...
}

If I create a UserControl, then after compilation, the control is automatically added to the toolbox. But for inherited control I have to write code like:

private myTrackBar tb1;

...

tb1 = new TrackBar();
...
this.controls.add(tb1);
...

??
__________________
PFO - My daily dose of technology.
InfoGeek is offline   Reply With Quote