Click here to Skip to main content
15,920,503 members
Home / Discussions / C#
   

C#

 
GeneralRe: Updating mdb file from another mdb file Pin
Not Active27-Dec-07 3:53
mentorNot Active27-Dec-07 3:53 
GeneralRe: Updating mdb file from another mdb file Pin
kallileo27-Dec-07 4:03
kallileo27-Dec-07 4:03 
Answer[Message Deleted] Pin
Catherine8827-Dec-07 3:18
Catherine8827-Dec-07 3:18 
GeneralRe: Urgent help needed for project Pin
Colin Angus Mackay27-Dec-07 3:48
Colin Angus Mackay27-Dec-07 3:48 
GeneralRe: Urgent help needed for project Pin
Not Active27-Dec-07 3:52
mentorNot Active27-Dec-07 3:52 
GeneralRe: Urgent help needed for project Pin
Paul Conrad27-Dec-07 6:26
professionalPaul Conrad27-Dec-07 6:26 
QuestionHow can I implement a Brush property for a control? Pin
ctoma200527-Dec-07 2:56
ctoma200527-Dec-07 2:56 
AnswerRe: How can I implement a Brush property for a control? Pin
TJoe27-Dec-07 5:09
TJoe27-Dec-07 5:09 
If you use Reflector, you can see that the Image class declares that ImageConverter should be used as it's TypeConverter. As shown here:

[Serializable,
...,
TypeConverter(typeof(ImageConverter))]
public abstract class Image : MarshalByRefObject,
ISerializable, ICloneable, IDisposable
{
//....
}


ImageConverter is what is used by Visual Studio to "serialize" the Image for use by InitializeComponent. There is no TypeConverter defined for the Brush class (nor SolidBrush, TextureBrush, etc). So these types cannot be serialized as you want.

Typically, controls would expose other properties and build the Brush when needed. So you could define a Color property, then build a SolidBrush when you are performing your drawing. Or if you want a TextureBrush, you would have a Image property.

Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralRe: How can I implement a Brush property for a control? Pin
ctoma200528-Dec-07 2:31
ctoma200528-Dec-07 2:31 
GeneralRe: How can I implement a Brush property for a control? Pin
TJoe28-Dec-07 3:41
TJoe28-Dec-07 3:41 
Questioncapture Data Modified from database real time? Pin
jason_mf27-Dec-07 2:25
jason_mf27-Dec-07 2:25 
AnswerRe: capture Data Modified from database real time? Pin
Giorgi Dalakishvili27-Dec-07 2:42
mentorGiorgi Dalakishvili27-Dec-07 2:42 
GeneralRe: capture Data Modified from database real time? Pin
jason_mf27-Dec-07 3:02
jason_mf27-Dec-07 3:02 
GeneralRe: capture Data Modified from database real time? Pin
Giorgi Dalakishvili27-Dec-07 3:10
mentorGiorgi Dalakishvili27-Dec-07 3:10 
Generallinq update problem Pin
brain2cpu27-Dec-07 2:20
professionalbrain2cpu27-Dec-07 2:20 
GeneralRe: linq update problem Pin
TJoe27-Dec-07 5:17
TJoe27-Dec-07 5:17 
GeneralRe: linq update problem Pin
brain2cpu27-Dec-07 20:37
professionalbrain2cpu27-Dec-07 20:37 
GeneralRe: linq update problem Pin
TJoe28-Dec-07 3:47
TJoe28-Dec-07 3:47 
GeneralRe: linq update problem Pin
brain2cpu30-Dec-07 23:42
professionalbrain2cpu30-Dec-07 23:42 
QuestionFile Dialoge Pin
sudany_zool27-Dec-07 1:25
sudany_zool27-Dec-07 1:25 
GeneralRe: File Dialoge Pin
Giorgi Dalakishvili27-Dec-07 1:33
mentorGiorgi Dalakishvili27-Dec-07 1:33 
GeneralRe: File Dialoge Pin
sudany_zool27-Dec-07 1:49
sudany_zool27-Dec-07 1:49 
GeneralRe: File Dialoge Pin
Giorgi Dalakishvili27-Dec-07 2:02
mentorGiorgi Dalakishvili27-Dec-07 2:02 
GeneralRe: File Dialoge Pin
sudany_zool27-Dec-07 2:10
sudany_zool27-Dec-07 2:10 
GeneralRe: File Dialoge Pin
Giorgi Dalakishvili27-Dec-07 2:43
mentorGiorgi Dalakishvili27-Dec-07 2:43 

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.