Click here to Skip to main content
15,879,613 members
Home / Discussions / C#
   

C#

 
AnswerRe: password policy using c# Pin
Garth J Lancaster7-Jun-16 20:44
professionalGarth J Lancaster7-Jun-16 20:44 
AnswerRe: password policy using c# Pin
Mycroft Holmes7-Jun-16 22:19
professionalMycroft Holmes7-Jun-16 22:19 
AnswerRe: password policy using c# Pin
OriginalGriff7-Jun-16 22:28
mveOriginalGriff7-Jun-16 22:28 
QuestionSet window on top from ShellExecute? Pin
kenw2327-Jun-16 11:25
kenw2327-Jun-16 11:25 
AnswerRe: Set window on top from ShellExecute? Pin
Eddy Vluggen7-Jun-16 12:10
professionalEddy Vluggen7-Jun-16 12:10 
AnswerRe: Set window on top from ShellExecute? Pin
BillWoodruff8-Jun-16 7:26
professionalBillWoodruff8-Jun-16 7:26 
QuestionHow can I format a text selection in bold AND italic? Pin
Member 119167356-Jun-16 23:23
Member 119167356-Jun-16 23:23 
AnswerRe: How can I format a text selection in bold AND italic? Pin
OriginalGriff6-Jun-16 23:39
mveOriginalGriff6-Jun-16 23:39 
& is AND - a binary operation that returns a 1 in each bit only if the corresponding bit in both operands is 1, and a zero otherwise.
So if these are in Binary:
0011 & 1010
Will return 0010 because only the second bit has matching "1"s in the same position.
The operation you want is OR : | which returns a 1 is either corresponding bit is 1.
0011 | 1010
Will return 1011.
So try:
C#
newfont = FontStyle.Bold | FontStyle.Italic;

Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: How can I format a text selection in bold AND italic? Pin
Member 119167357-Jun-16 0:02
Member 119167357-Jun-16 0:02 
GeneralRe: How can I format a text selection in bold AND italic? Pin
OriginalGriff7-Jun-16 0:20
mveOriginalGriff7-Jun-16 0:20 
GeneralRe: How can I format a text selection in bold AND italic? Pin
Member 119167357-Jun-16 0:23
Member 119167357-Jun-16 0:23 
GeneralRe: How can I format a text selection in bold AND italic? Pin
OriginalGriff7-Jun-16 0:45
mveOriginalGriff7-Jun-16 0:45 
Questionsend an acknowledgement in serial port listner Pin
Member 125557476-Jun-16 21:00
Member 125557476-Jun-16 21:00 
AnswerRe: send an acknowledgement in serial port listner Pin
Richard MacCutchan6-Jun-16 21:16
mveRichard MacCutchan6-Jun-16 21:16 
GeneralRe: send an acknowledgement in serial port listner Pin
OriginalGriff6-Jun-16 21:56
mveOriginalGriff6-Jun-16 21:56 
GeneralRe: send an acknowledgement in serial port listner Pin
Richard MacCutchan6-Jun-16 22:11
mveRichard MacCutchan6-Jun-16 22:11 
QuestionC# windows application with SQL Server Pin
Zeyad Jalil6-Jun-16 0:12
professionalZeyad Jalil6-Jun-16 0:12 
AnswerRe: C# windows application with SQL Server Pin
Richard MacCutchan6-Jun-16 0:42
mveRichard MacCutchan6-Jun-16 0:42 
GeneralRe: C# windows application with SQL Server Pin
Zeyad Jalil6-Jun-16 0:50
professionalZeyad Jalil6-Jun-16 0:50 
GeneralRe: C# windows application with SQL Server Pin
Richard MacCutchan6-Jun-16 1:10
mveRichard MacCutchan6-Jun-16 1:10 
AnswerRe: C# windows application with SQL Server Pin
Dave Kreskowiak6-Jun-16 3:05
mveDave Kreskowiak6-Jun-16 3:05 
RantRe: C# windows application with SQL Server Pin
Mycroft Holmes6-Jun-16 14:21
professionalMycroft Holmes6-Jun-16 14:21 
GeneralRe: C# windows application with SQL Server Pin
Dave Kreskowiak6-Jun-16 18:36
mveDave Kreskowiak6-Jun-16 18:36 
QuestionWhy can't I get any answers to the questions I put. Pin
Member 117408555-Jun-16 3:09
Member 117408555-Jun-16 3:09 
AnswerRe: Why can't I get any answers to the questions I put. Pin
Richard MacCutchan5-Jun-16 3:28
mveRichard MacCutchan5-Jun-16 3:28 

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.