Click here to Skip to main content
15,915,603 members
Home / Discussions / C#
   

C#

 
AnswerRe: icon overlay handler Pin
Wraith219-Nov-05 3:19
Wraith219-Nov-05 3:19 
GeneralRe: icon overlay handler Pin
Wraith221-Nov-05 0:21
Wraith221-Nov-05 0:21 
QuestionLostFocus/leave Pin
shafqaat16-Nov-05 23:02
shafqaat16-Nov-05 23:02 
AnswerRe: LostFocus/leave Pin
Raj Lal17-Nov-05 15:56
professionalRaj Lal17-Nov-05 15:56 
QuestionHow to get what are all the objects created at runtime using c#.net Pin
kiranchandu616-Nov-05 21:34
kiranchandu616-Nov-05 21:34 
AnswerRe: How to get what are all the objects created at runtime using c#.net Pin
Mark Hahn CA17-Nov-05 13:41
Mark Hahn CA17-Nov-05 13:41 
AnswerRe: How to get what are all the objects created at runtime using c#.net Pin
Robert Rohde17-Nov-05 20:01
Robert Rohde17-Nov-05 20:01 
Question[.net 2.0] PropertyGrid - DropDown-ComboBox Pin
suamikim16-Nov-05 21:09
suamikim16-Nov-05 21:09 
Hi!

I'm using a PropertyGrid in my Options-Dialog, which shows DropDown-ComboBoxes amongst others. The whole thing should be multilingual (no problem due to codeproject).

The problem with the ComboBox is the following: As return-value i don't want the selected text but a nr (like SelectedItem). The ComboBox is realised the following way:

C#-Code:
public class LogDataSettingsConverter : StringConverter<br />
{<br />
        public override bool GetStandardValuesSupported(ITypeDescriptorContext context)<br />
        {<br />
            return true;<br />
        }<br />
<br />
        public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)<br />
        {<br />
            return true;<br />
        }<br />
<br />
        public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)<br />
        {<br />
            String[] values = new string[5];<br />
            values[0] = "Delete nothing";<br />
            values[1] = "Delete logdata";<br />
            values[2] = "Ask user";<br />
            values[3] = "Delete alarm flag";<br />
            values[4] = "Delete logdata and alarm flag";<br />
<br />
            return new StandardValuesCollection(values);<br />
        }<br />
    }<br />


And the according property:

C#-Code:
[CategoryAttribute("GPS/GSM/ID settings"), BrowsableAttribute(true),<br />
TypeConverter(typeof(LogDataSettingsConverter))]<br />
public String DeleteLogMethod<br />
{<br />
    get { return deleteLogMethod; }<br />
    set { deleteLogMethod = value; }<br />
}


There's another question according to the PropertyGrid:

Is there a posibility to hide specific properties of the PropertyGrid at runtime (maybe by setting the BrowsableAttribute dynmically at runtime)?
Because the "mighty" of the PropertyGrid i think that this should be possibly, but unfortunately i couldn't find anything corresponding!

thanks, greets

mike

ps.: A little Screenshot from my PropertyGrid:

PropertyGrid
QuestionNew Web Control Additional Code Pin
Brendan Vogt16-Nov-05 18:59
Brendan Vogt16-Nov-05 18:59 
QuestionC# Right and Left Methods Pin
Brendan Vogt16-Nov-05 18:41
Brendan Vogt16-Nov-05 18:41 
AnswerRe: C# Right and Left Methods Pin
jonny516-Nov-05 19:02
jonny516-Nov-05 19:02 
QuestionInvalidCastException thrown in Service code but not in Form code Pin
Jasejc16-Nov-05 11:51
Jasejc16-Nov-05 11:51 
QuestionSocket / Network Stuff question Pin
Tom Wright16-Nov-05 10:00
Tom Wright16-Nov-05 10:00 
QuestionCheckBox(es) with a number attached? Pin
naglbitur16-Nov-05 9:47
naglbitur16-Nov-05 9:47 
AnswerRe: CheckBox(es) with a number attached? Pin
mav.northwind16-Nov-05 10:03
mav.northwind16-Nov-05 10:03 
QuestionHide the application from the process list? Pin
Wronex16-Nov-05 9:15
Wronex16-Nov-05 9:15 
AnswerRe: Hide the application from the process list? Pin
Dan Neely16-Nov-05 9:55
Dan Neely16-Nov-05 9:55 
AnswerRe: Hide the application from the process list? Pin
Dave Kreskowiak16-Nov-05 16:39
mveDave Kreskowiak16-Nov-05 16:39 
QuestionHow to Send XML to an ASP page? Pin
v9316-Nov-05 9:09
v9316-Nov-05 9:09 
AnswerRe: How to Send XML to an ASP page? Pin
Rob Philpott16-Nov-05 12:21
Rob Philpott16-Nov-05 12:21 
GeneralRe: How to Send XML to an ASP page? Pin
v9317-Nov-05 0:27
v9317-Nov-05 0:27 
QuestionBad programming ethics Pin
eggie516-Nov-05 9:03
eggie516-Nov-05 9:03 
AnswerRe: Bad programming ethics Pin
jonny516-Nov-05 20:41
jonny516-Nov-05 20:41 
QuestionAssembley error loadign Pin
webhay16-Nov-05 8:56
webhay16-Nov-05 8:56 
QuestionMDI - Child in foreign app Pin
franzz16-Nov-05 8:22
franzz16-Nov-05 8:22 

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.