Click here to Skip to main content
15,885,842 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reference confusion Pin
Shameel30-Jan-13 3:26
professionalShameel30-Jan-13 3:26 
QuestionSerial Port Errors, User Messages Pin
C-P-User-329-Jan-13 6:23
C-P-User-329-Jan-13 6:23 
AnswerRe: Serial Port Errors, User Messages Pin
Jibesh29-Jan-13 11:57
professionalJibesh29-Jan-13 11:57 
QuestionDynamic Reference to Dll Path Pin
Member 461637929-Jan-13 1:53
Member 461637929-Jan-13 1:53 
AnswerRe: Dynamic Reference to Dll Path Pin
Alan N29-Jan-13 3:29
Alan N29-Jan-13 3:29 
AnswerRe: Dynamic Reference to Dll Path Pin
jschell29-Jan-13 13:50
jschell29-Jan-13 13:50 
Question.NET Brush serialization/WYSIWIG [Solved] Pin
Amlanjyoti Saikia29-Jan-13 0:32
Amlanjyoti Saikia29-Jan-13 0:32 
AnswerRe: .NET Brush serialization/WYSIWIG Pin
Brisingr Aerowing29-Jan-13 3:12
professionalBrisingr Aerowing29-Jan-13 3:12 
Here is an advanced print preview dialog/control[^]. That may help.

As for the brush, figure out the type (likely a solid brush), cast it to that type, and serialize the properties you want.

e.g. (for a solid brush)

C#
// brush is declared as Brush brush, but is a solid brush instance

if(brush is SolidBrush)
{
  SolidBrush sb = (SolidBrush)brush;

  // Serialize the properties of the brush here

}
else if(brush is LinearGradientBrush)
{
  // And so on and so forth.

}
// Repeat for other brush types as required


Bob Dole
The internet is a great way to get on the net.

D'Oh! | :doh: 2.0.82.7292 SP6a

GeneralRe: .NET Brush serialization/WYSIWIG Pin
Amlanjyoti Saikia30-Jan-13 1:54
Amlanjyoti Saikia30-Jan-13 1:54 
Questionhow to check the avaialbility of username from database Pin
Santhosh V.T28-Jan-13 20:51
Santhosh V.T28-Jan-13 20:51 
AnswerRe: how to check the avaialbility of username from database Pin
OriginalGriff28-Jan-13 21:17
mveOriginalGriff28-Jan-13 21:17 
AnswerRe: how to check the avaialbility of username from database Pin
PIEBALDconsult29-Jan-13 3:59
mvePIEBALDconsult29-Jan-13 3:59 
AnswerRe: how to check the avaialbility of username from database Pin
fjdiewornncalwe29-Jan-13 5:11
professionalfjdiewornncalwe29-Jan-13 5:11 
QuestionLearning C# .Net - From where to start.? Pin
mbatra3128-Jan-13 19:21
mbatra3128-Jan-13 19:21 
AnswerRe: Learning C# .Net - From where to start.? Pin
OriginalGriff28-Jan-13 21:23
mveOriginalGriff28-Jan-13 21:23 
AnswerRe: Learning C# .Net - From where to start.? Pin
Richard MacCutchan28-Jan-13 22:53
mveRichard MacCutchan28-Jan-13 22:53 
AnswerRe: Learning C# .Net - From where to start.? Pin
Abhinav S29-Jan-13 19:02
Abhinav S29-Jan-13 19:02 
QuestionSocket programming Pin
Naina Dhande28-Jan-13 19:04
Naina Dhande28-Jan-13 19:04 
AnswerRe: Socket programming Pin
Richard MacCutchan28-Jan-13 22:51
mveRichard MacCutchan28-Jan-13 22:51 
AnswerRe: Socket programming Pin
pt140129-Jan-13 10:35
pt140129-Jan-13 10:35 
QuestionDisplay an array elements in 2 columns using the console Pin
PozzaVecia28-Jan-13 9:53
PozzaVecia28-Jan-13 9:53 
AnswerRe: Display an array elements in 2 columns using the console Pin
Richard Deeming28-Jan-13 10:09
mveRichard Deeming28-Jan-13 10:09 
GeneralRe: Display an array elements in 2 columns using the console Pin
PozzaVecia28-Jan-13 11:47
PozzaVecia28-Jan-13 11:47 
QuestionDoes backgroundWorker make code slower? Pin
MichCl28-Jan-13 9:35
MichCl28-Jan-13 9:35 
AnswerRe: Does backgroundWorker make code slower? Pin
PIEBALDconsult28-Jan-13 16:02
mvePIEBALDconsult28-Jan-13 16:02 

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.