Click here to Skip to main content
15,921,989 members
Home / Discussions / C#
   

C#

 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Saksida Bojan1-Mar-10 7:06
Saksida Bojan1-Mar-10 7:06 
QuestionPrevent Visual Studio opening the designer on custom controls Pin
Rob Philpott1-Mar-10 5:07
Rob Philpott1-Mar-10 5:07 
AnswerRe: Prevent Visual Studio opening the designer on custom controls Pin
Luc Pattyn1-Mar-10 5:19
sitebuilderLuc Pattyn1-Mar-10 5:19 
GeneralRe: Prevent Visual Studio opening the designer on custom controls Pin
Rob Philpott1-Mar-10 5:35
Rob Philpott1-Mar-10 5:35 
GeneralRe: Prevent Visual Studio opening the designer on custom controls Pin
Luc Pattyn1-Mar-10 5:39
sitebuilderLuc Pattyn1-Mar-10 5:39 
GeneralRe: Prevent Visual Studio opening the designer on custom controls Pin
Som Shekhar1-Mar-10 5:47
Som Shekhar1-Mar-10 5:47 
AnswerRe: Prevent Visual Studio opening the designer on custom controls Pin
PIEBALDconsult1-Mar-10 8:06
mvePIEBALDconsult1-Mar-10 8:06 
QuestionProblem getting propery values with ProperyInfo Pin
Mark F.1-Mar-10 4:12
Mark F.1-Mar-10 4:12 
I have a custom class TableProperties which has properties for CSS table styles. I have a CustomColor property that has a UITypeEditor to display the ColorDialog control and then convert the color value to a hex string (e.g., ffffff). When I iterate through the PropertyInfo collection the GetValue method returns the property type rather than the value.

// Loop which displays the properties in a ListView control (Testing only).
foreach (PropertyInfo pi in tableProperties.GetType().GetProperties())
{
    name = pi.Name;
    ListViewItem lvi = listView1.Items.Add(name);
    theType = pi.PropertyType.ToString();
    lvi.SubItems.Add(theType);

    // this returns 'TblPropTest.CustomColor' rather than 'ffffff'
    value = pi.GetValue(tableProperties, null).ToString();

    lvi.SubItems.Add(value);
}


The PropertyGrid works fine with the custom properties.

Thanks,
Mark
AnswerRe: Problem getting propery values with ProperyInfo Pin
Keith Barrow1-Mar-10 4:43
professionalKeith Barrow1-Mar-10 4:43 
GeneralRe: Problem getting propery values with ProperyInfo [modified] Pin
Mark F.1-Mar-10 5:37
Mark F.1-Mar-10 5:37 
QuestionResource Manager with GUI for each application Pin
Autodidax861-Mar-10 4:07
Autodidax861-Mar-10 4:07 
QuestionNeed help getting started with a broadcasting tool Pin
Ted On The Net1-Mar-10 3:38
Ted On The Net1-Mar-10 3:38 
AnswerMessage Closed Pin
1-Mar-10 3:46
stancrm1-Mar-10 3:46 
GeneralRe: Need help getting started with a broadcasting tool Pin
Ted On The Net1-Mar-10 4:54
Ted On The Net1-Mar-10 4:54 
QuestionLegacy Windows App - Screen Scraping Pin
DwR1-Mar-10 3:15
DwR1-Mar-10 3:15 
AnswerMessage Closed Pin
1-Mar-10 3:29
stancrm1-Mar-10 3:29 
GeneralRe: Legacy Windows App - Screen Scraping Pin
DwR1-Mar-10 11:57
DwR1-Mar-10 11:57 
QuestionInstall build fail Pin
hairy_hats28-Feb-10 23:15
hairy_hats28-Feb-10 23:15 
AnswerRe: Install build fail Pin
Luc Pattyn1-Mar-10 1:00
sitebuilderLuc Pattyn1-Mar-10 1:00 
GeneralRe: Install build fail [modified] Pin
hairy_hats1-Mar-10 1:03
hairy_hats1-Mar-10 1:03 
GeneralRe: Install build fail Pin
Luc Pattyn1-Mar-10 1:40
sitebuilderLuc Pattyn1-Mar-10 1:40 
GeneralRe: Install build fail Pin
Dave Kreskowiak1-Mar-10 1:58
mveDave Kreskowiak1-Mar-10 1:58 
AnswerRe: Install build fail Pin
Pete O'Hanlon1-Mar-10 1:51
mvePete O'Hanlon1-Mar-10 1:51 
Questionconvert string to Binary File Pin
mohamed antar28-Feb-10 23:03
mohamed antar28-Feb-10 23:03 
AnswerRe: convert string to Binary File Pin
Saksida Bojan28-Feb-10 23:20
Saksida Bojan28-Feb-10 23:20 

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.