Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Invoke methods declared in the dynamically loaded Assembly? Pin
MKlucher5-Jul-04 20:52
MKlucher5-Jul-04 20:52 
GeneralCookie Pin
Moon Boy5-Jul-04 18:25
Moon Boy5-Jul-04 18:25 
GeneralRe: Cookie Pin
Heath Stewart5-Jul-04 19:03
protectorHeath Stewart5-Jul-04 19:03 
GeneralRe: Cookie Pin
Moon Boy5-Jul-04 19:07
Moon Boy5-Jul-04 19:07 
GeneralRe: Cookie Pin
Heath Stewart5-Jul-04 19:09
protectorHeath Stewart5-Jul-04 19:09 
GeneralRe: Cookie Pin
Moon Boy5-Jul-04 19:16
Moon Boy5-Jul-04 19:16 
QuestionHow to add Textbox's PasswordChar property in PropertyGrid Control? Pin
god4k5-Jul-04 15:48
god4k5-Jul-04 15:48 
AnswerRe: How to add Textbox's PasswordChar property in PropertyGrid Control? Pin
Heath Stewart5-Jul-04 18:17
protectorHeath Stewart5-Jul-04 18:17 
Do you mean you want asterisks to show in the PropertyGrid, or that you want a property named PasswordChar? If it's the latter, then just define it as a public property on your class. To actually make is useful you have to maintain two separate buffers (either "connected" or "disconnected") - one for the actual text and one for the displayed text.

If you want asterisks to appear in the PropertGrid itself, then there's quite a bit more work involved. You would need to shadow the property using an ICustomTypeDescriptor (in the GetProperties implementations to return a PropertyInfo object that you'd manage) or using a custom designer. I suggest before even attempting this that you read about design-time support by reading Enhancing Design-Time Support[^] in the .NET Framework SDK.

If you're wanting to do this at runtime, then I highly suggest that you do NOT use the PropertyGrid managed class. It's actually not user-friendly (try reading the Windows User Interface Guidelines some time) and you can handle password fields a lot easier with a simple TextBox (which already supports password encoding via its PasswordChar property).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: How to add Textbox's PasswordChar property in PropertyGrid Control? Pin
god4k5-Jul-04 18:42
god4k5-Jul-04 18:42 
GeneralQuick bit field question Pin
benglish725-Jul-04 13:28
benglish725-Jul-04 13:28 
GeneralRe: Quick bit field question Pin
Mike Dimmick5-Jul-04 13:38
Mike Dimmick5-Jul-04 13:38 
GeneralRe: Quick bit field question Pin
benglish725-Jul-04 15:12
benglish725-Jul-04 15:12 
QuestionSQL Security Hole - am I vulnerable? Pin
Ian Bowler5-Jul-04 13:04
Ian Bowler5-Jul-04 13:04 
AnswerRe: SQL Security Hole - am I vulnerable? Pin
Mike Dimmick5-Jul-04 13:33
Mike Dimmick5-Jul-04 13:33 
GeneralRe: SQL Security Hole - am I vulnerable? Pin
Ian Bowler5-Jul-04 21:32
Ian Bowler5-Jul-04 21:32 
GeneralRe: SQL Security Hole - am I vulnerable? Pin
Colin Angus Mackay5-Jul-04 23:25
Colin Angus Mackay5-Jul-04 23:25 
Generalcomparison of two strings - how to get a score Pin
rlacatus5-Jul-04 12:34
rlacatus5-Jul-04 12:34 
GeneralRe: comparison of two strings - how to get a score Pin
rlacatus6-Jul-04 11:30
rlacatus6-Jul-04 11:30 
GeneralDataGrid current row Pin
Christian Graus5-Jul-04 11:13
protectorChristian Graus5-Jul-04 11:13 
GeneralRe: DataGrid current row Pin
Christian Graus5-Jul-04 12:14
protectorChristian Graus5-Jul-04 12:14 
GeneralRe: DataGrid current row Pin
Heath Stewart5-Jul-04 18:08
protectorHeath Stewart5-Jul-04 18:08 
GeneralRe: DataGrid current row Pin
sreejith ss nair6-Jul-04 2:03
sreejith ss nair6-Jul-04 2:03 
GeneralAccessing Data with Web Forms Pin
Ian Bowler5-Jul-04 10:38
Ian Bowler5-Jul-04 10:38 
GeneralRe: Accessing Data with Web Forms Pin
Colin Angus Mackay5-Jul-04 11:13
Colin Angus Mackay5-Jul-04 11:13 
GeneralRe: Accessing Data with Web Forms Pin
Ian Bowler5-Jul-04 11:41
Ian Bowler5-Jul-04 11:41 

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.