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

C#

 
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 
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 
GeneralRe: convert string to Binary File Pin
mohamed antar28-Feb-10 23:23
mohamed antar28-Feb-10 23:23 

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.