Copy appearance of a control to another control ??

xenonk

Newcomer
Joined
Mar 6, 2003
Messages
3
Hi,

I am wondering if I can copy the appearance of a control to another control, for example create a panel which look like textbox (By overriding onpaint event of panel) . I know I should play with Graphics objects of the controls bu I can't sort it out.

Summary:
I want to copy appearance of a control to another control ?

Any Idea??

xenon
 
You can't. The best you'll do is manually drawing the whole textbox, which would be a pain since textboxes look different on XP from previous versions. Why are you trying to do this?
 
The thing is we are using Xceed grid in our application and we try to insert controls in to cells. we can insert controls which implement ICellView (Comes with Xceed). we have to implement PaintCellValue method which paint the cell.
Any way I partly sort it out to draw the control itself but now we can't handle the control's events.

At the end do you know any grid component which I can put any control in its cells (include my user controls.)
 
Back
Top