Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
QuestionDispose method - release resource Pin
MatejGo18-Jul-06 13:42
MatejGo18-Jul-06 13:42 
AnswerRe: Dispose method - release resource Pin
Robert Rohde18-Jul-06 18:45
Robert Rohde18-Jul-06 18:45 
GeneralRe: Dispose method - release resource Pin
MatejGo19-Jul-06 20:39
MatejGo19-Jul-06 20:39 
GeneralRe: Dispose method - release resource Pin
Robert Rohde20-Jul-06 10:49
Robert Rohde20-Jul-06 10:49 
AnswerRe: Dispose method - release resource Pin
Andrei Ungureanu18-Jul-06 19:48
Andrei Ungureanu18-Jul-06 19:48 
QuestionHosting .NET Windows Forms Controls in IE Pin
JuanAlbertoMD18-Jul-06 12:29
JuanAlbertoMD18-Jul-06 12:29 
AnswerRe: Hosting .NET Windows Forms Controls in IE Pin
User 171649218-Jul-06 12:47
professionalUser 171649218-Jul-06 12:47 
QuestionWCL problem Pin
-Yoyosh-18-Jul-06 12:22
-Yoyosh-18-Jul-06 12:22 
I have Windows Control Library (derived from Control).

I wish my own custom type editor to allow the user to select something. I already made it (2 classes - one derived from System.Windows.Forms.UserControl, second from System.Drawing.Design.UITypeEditor.

In first of these I overriden OnPaint method and set Region property.

In second, I overriden:

        public override System.Drawing.Design.UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)<br />
        {<br />
            return UITypeEditorEditStyle.DropDown;<br />
        }<br />
<br />
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)<br />
        {<br />
            return 0; //simplicity for testing<br />
        }


In the class derived from control I set a property:
[Category("Shape"), Description("Color at center")]<br />
        [BrowsableAttribute(true)]<br />
        [EditorAttribute(typeof(ShapePicker), typeof(System.Drawing.Design.UITypeEditor))]<br />
        public int CenterColor<br />
        {<br />
            get { return 3; }<br />
            set<br />
            { MessageBox.Show(value.ToString()); }<br />
            }<br />
        }


When I create a Win Project and put this WCL on the form, all goes well, the property is shown. But when I click on that property`s ellipse (for the custrom type editor to be opened), nothing is being shown. It looks as if the EditValue method is being called immediately after opening this custrom type editor.
---------------------------------------------------------------------------------
Could you please tell me why is that? Why I canon choise anything from this custorm type editor?

thank you very much for any help Smile | :)
QuestionAll pipe instances are busy" when working with IpcChannel Pin
Ilia Blank18-Jul-06 9:53
Ilia Blank18-Jul-06 9:53 
Questionanimation on win form like that of MSN messenger? Pin
sinanju18-Jul-06 9:47
sinanju18-Jul-06 9:47 
AnswerRe: animation on win form like that of MSN messenger? Pin
Josh Smith18-Jul-06 9:52
Josh Smith18-Jul-06 9:52 
GeneralRe: animation on win form like that of MSN messenger? Pin
sinanju18-Jul-06 10:03
sinanju18-Jul-06 10:03 
AnswerRe: animation on win form like that of MSN messenger? Pin
leppie18-Jul-06 9:58
leppie18-Jul-06 9:58 
GeneralRe: animation on win form like that of MSN messenger? Pin
sinanju18-Jul-06 10:06
sinanju18-Jul-06 10:06 
AnswerRe: animation on win form like that of MSN messenger? Pin
sinanju18-Jul-06 10:18
sinanju18-Jul-06 10:18 
QuestionDateTime Pin
NewbProgrammer18-Jul-06 9:36
NewbProgrammer18-Jul-06 9:36 
AnswerRe: DateTime Pin
User 665818-Jul-06 9:39
User 665818-Jul-06 9:39 
AnswerRe: DateTime Pin
Josh Smith18-Jul-06 9:39
Josh Smith18-Jul-06 9:39 
AnswerIn your paint event Pin
Ennis Ray Lynch, Jr.18-Jul-06 10:38
Ennis Ray Lynch, Jr.18-Jul-06 10:38 
GeneralRe: DateTime Pin
NewbProgrammer18-Jul-06 12:13
NewbProgrammer18-Jul-06 12:13 
QuestionCopying an image from RTF to clipboard Pin
likefood18-Jul-06 7:40
likefood18-Jul-06 7:40 
QuestionMAC style window form [modified] Pin
Mike Jeferson18-Jul-06 7:33
Mike Jeferson18-Jul-06 7:33 
AnswerRe: MAC style window form Pin
likefood18-Jul-06 7:47
likefood18-Jul-06 7:47 
GeneralRe: MAC style window form Pin
Dan Neely18-Jul-06 8:07
Dan Neely18-Jul-06 8:07 
GeneralRe: MAC style window form Pin
Josh Smith18-Jul-06 8:10
Josh Smith18-Jul-06 8:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.