![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Custom Control issue in design view I am trying to make a custom control. The problem I'm having is that if I inherit from Control I can't get the bloody thing to display anything. But if I inherit from UserControl I can't hide any of the properties (namely the size). How do I get the control to display in design view and still retain control over the properties? Thanks in advance, Tom P. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Custom Control issue in design view >I am trying to make a custom control. The problem I'm having is that Quote: > if I inherit from Control I can't get the bloody thing to display > anything. But if I inherit from UserControl I can't hide any of the > properties (namely the size). How do I get the control to display in > design view and still retain control over the properties? You will find solution for both cases (showing, hiding) here: http://www.c-sharpcorner.com/UploadF...blePicBox.aspx Dawid Rutyna |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Custom Control issue in design view >I am trying to make a custom control. The problem I'm having is that Quote: > if I inherit from Control I can't get the bloody thing to display > anything. although it does not implement painting." So you have to do it yourself, nice example: http://www.codeproject.com/KB/tabs/flattabcontrol.aspx Dawid Rutyna |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Custom Control issue in design view Maybe at the beginning try to paint this: http://en.csharp-online.net/Architec...Custom_Control Dawid Rutyna |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Custom Control issue in design view On Mar 16, 3:27*pm, "Tom P." <padilla.he...@xxxxxx> wrote: Quote: > I am trying to make a custom control. The problem I'm having is that > if I inherit from Control I can't get the bloody thing to display > anything. But if I inherit from UserControl I can't hide any of the > properties (namely the size). How do I get the control to display in > design view and still retain control over the properties? > > Thanks in advance, > Tom P. in the IDE unless you place it in a control or form. I guess this is so it doesn't have to execute any paint code or other stuff that might blow-up at design time. If you want to see a control inherited from Control, place it in a Form. Tom P. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Control panel view issue | Vista performance & maintenance | |||
| Control panel view issue | Vista performance & maintenance | |||