Click here to Skip to main content
15,898,373 members
Home / Discussions / C#
   

C#

 
AnswerRe: Let Windows service OnStop() wait longer Pin
BobJanova23-Aug-12 2:37
BobJanova23-Aug-12 2:37 
GeneralRe: Let Windows service OnStop() wait longer Pin
Mc_Topaz23-Aug-12 3:03
Mc_Topaz23-Aug-12 3:03 
GeneralRe: Let Windows service OnStop() wait longer Pin
PIEBALDconsult23-Aug-12 3:06
mvePIEBALDconsult23-Aug-12 3:06 
GeneralRe: Let Windows service OnStop() wait longer Pin
Mc_Topaz23-Aug-12 3:39
Mc_Topaz23-Aug-12 3:39 
GeneralRe: Let Windows service OnStop() wait longer Pin
BobJanova23-Aug-12 3:37
BobJanova23-Aug-12 3:37 
AnswerRe: Let Windows service OnStop() wait longer Pin
jschell23-Aug-12 8:47
jschell23-Aug-12 8:47 
AnswerRe: Let Windows service OnStop() wait longer Pin
Vijay Selvaraj26-Aug-12 22:00
Vijay Selvaraj26-Aug-12 22:00 
QuestionSystem.Drawing.Pen-type property does not expand in property grid Pin
TetheredSun22-Aug-12 22:51
TetheredSun22-Aug-12 22:51 
Dear Community

I have written several control-related classes (eg, Symbol, Curve) that store drawing-related information such as line colour, dash style, line thickness, &c in a System.Drawing.Pen property. It is very convenient in code, but in the designer property grid it does not expand and is greyed out.

I have carried out some research and found what is to be done when it is a custom class I want to expand in the property grid ( http://msdn.microsoft.com/en-us/library/aa302326.aspx[^] ), but it is of no help to me as what I use is a built-in type, not my own class.

First of all, do you think it is worth some further ado, or is what I do (simply exposing the System.Drawing.Pen with which I draw the object) considered bad practice?

If it is bad practice, what would you suggest as an elegant solution?

If it is not, how can I make it expand properly in the property grid and be editable?

Thank you very much for your assistance.

Yours faithfully
Tethered Sun
AnswerRe: System.Drawing.Pen-type property does not expand in property grid Pin
Eddy Vluggen23-Aug-12 1:12
professionalEddy Vluggen23-Aug-12 1:12 
GeneralRe: System.Drawing.Pen-type property does not expand in property grid Pin
TetheredSun23-Aug-12 1:34
TetheredSun23-Aug-12 1:34 
GeneralRe: System.Drawing.Pen-type property does not expand in property grid Pin
Eddy Vluggen23-Aug-12 1:43
professionalEddy Vluggen23-Aug-12 1:43 
GeneralRe: System.Drawing.Pen-type property does not expand in property grid Pin
TetheredSun23-Aug-12 1:46
TetheredSun23-Aug-12 1:46 
GeneralRe: System.Drawing.Pen-type property does not expand in property grid Pin
Eddy Vluggen23-Aug-12 2:04
professionalEddy Vluggen23-Aug-12 2:04 
QuestionSerialPort open, but receive no response Pin
LionAM22-Aug-12 21:11
LionAM22-Aug-12 21:11 
AnswerRe: SerialPort open, but receive no response Pin
glennPattonWork322-Aug-12 22:28
professionalglennPattonWork322-Aug-12 22:28 
GeneralRe: SerialPort open, but receive no response Pin
LionAM23-Aug-12 1:17
LionAM23-Aug-12 1:17 
GeneralRe: SerialPort open, but receive no response Pin
glennPattonWork323-Aug-12 1:33
professionalglennPattonWork323-Aug-12 1:33 
GeneralRe: SerialPort open, but receive no response Pin
LionAM23-Aug-12 22:59
LionAM23-Aug-12 22:59 
GeneralRe: SerialPort open, but receive no response Pin
glennPattonWork323-Aug-12 23:28
professionalglennPattonWork323-Aug-12 23:28 
Questionc# Pin
shailendra1315@gmail.com22-Aug-12 19:34
shailendra1315@gmail.com22-Aug-12 19:34 
AnswerRe: c# Pin
Roger Wright22-Aug-12 19:48
professionalRoger Wright22-Aug-12 19:48 
AnswerRe: c# Pin
Abhinav S22-Aug-12 20:21
Abhinav S22-Aug-12 20:21 
GeneralRe: c# Pin
OriginalGriff22-Aug-12 20:25
mveOriginalGriff22-Aug-12 20:25 
GeneralRe: c# Pin
Abhinav S22-Aug-12 20:28
Abhinav S22-Aug-12 20:28 
AnswerOT Pin
Keith Barrow23-Aug-12 3:04
professionalKeith Barrow23-Aug-12 3:04 

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.