xenonk Posted March 6, 2003 Posted March 6, 2003 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 Quote
*Gurus* divil Posted March 6, 2003 *Gurus* Posted March 6, 2003 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? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
xenonk Posted March 6, 2003 Author Posted March 6, 2003 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.) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.