Click here to Skip to main content
15,905,566 members
Home / Discussions / C#
   

C#

 
GeneralRe: safely end a thread Pin
Yustme2-Mar-10 6:19
Yustme2-Mar-10 6:19 
AnswerRe: safely end a thread Pin
Luc Pattyn1-Mar-10 7:13
sitebuilderLuc Pattyn1-Mar-10 7:13 
GeneralRe: safely end a thread Pin
Yustme1-Mar-10 22:34
Yustme1-Mar-10 22:34 
QuestionHELP on .NET Remoting Pin
jekkup11-Mar-10 6:03
jekkup11-Mar-10 6:03 
AnswerRe: HELP on .NET Remoting Pin
Abhinav S1-Mar-10 6:23
Abhinav S1-Mar-10 6:23 
QuestionClick a button from a external/downloaded (unknown) html Pin
Serenity11-Mar-10 5:36
Serenity11-Mar-10 5:36 
AnswerRe: Click a button from a external/downloaded (unknown) html Pin
Saksida Bojan1-Mar-10 5:41
Saksida Bojan1-Mar-10 5:41 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Serenity11-Mar-10 5:55
Serenity11-Mar-10 5:55 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Saksida Bojan1-Mar-10 6:04
Saksida Bojan1-Mar-10 6:04 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Serenity11-Mar-10 6:27
Serenity11-Mar-10 6:27 
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 
AnswerRe: Problem getting propery values with ProperyInfo Pin
Keith Barrow1-Mar-10 4:43
professionalKeith Barrow1-Mar-10 4:43 
There are a few ways to fix this. The poblem lies here:

C#
pi.GetValue(tableProperties, null).ToString();


The ToString() method, unless overloaded will return the type. If you can modify the TblPropTest.CustomColor code, you should overload this method. The code below adds an extension method to the Color class to output the Hex RGB value:

C#
public static class ColorExtensions
{
    static string GetHex(byte value)
    {
        return value.ToString("X");
    }

    public static string ToRGBHexString(this System.Drawing.Color color)
    {
        return GetHex(color.R) + GetHex(color.G) + GetHex(color.B);
    }
}


This should be of help. If you cannot use this, please post the code for the TblPropTest.CustomColor type, as this is the root of the problem.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.

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 

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.