Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: .Net open source content management platform like Sharepoint? Pin
George_George14-Jan-09 18:01
George_George14-Jan-09 18:01 
AnswerRe: .Net open source content management platform like Sharepoint? Pin
Hamid_RT15-Jan-09 2:29
Hamid_RT15-Jan-09 2:29 
GeneralRe: .Net open source content management platform like Sharepoint? Pin
George_George15-Jan-09 18:10
George_George15-Jan-09 18:10 
GeneralRe: .Net open source content management platform like Sharepoint? Pin
Hamid_RT15-Jan-09 20:14
Hamid_RT15-Jan-09 20:14 
GeneralRe: .Net open source content management platform like Sharepoint? Pin
George_George15-Jan-09 20:49
George_George15-Jan-09 20:49 
GeneralRe: .Net open source content management platform like Sharepoint? Pin
Hamid_RT15-Jan-09 21:15
Hamid_RT15-Jan-09 21:15 
QuestionRotation Algorithm Pin
Richard Blythe14-Jan-09 15:21
Richard Blythe14-Jan-09 15:21 
AnswerRe: Rotation Algorithm [modified] Pin
Luc Pattyn14-Jan-09 15:41
sitebuilderLuc Pattyn14-Jan-09 15:41 
GeneralRe: Rotation Algorithm Pin
Richard Blythe14-Jan-09 16:07
Richard Blythe14-Jan-09 16:07 
AnswerRe: Rotation Algorithm Pin
Guffa14-Jan-09 16:36
Guffa14-Jan-09 16:36 
GeneralRe: Rotation Algorithm Pin
Richard Blythe14-Jan-09 16:55
Richard Blythe14-Jan-09 16:55 
QuestionIOException when calling AuthenticateAsClient Pin
KRM14-Jan-09 13:14
KRM14-Jan-09 13:14 
QuestionC# and logitech Momo wheel Pin
Member 260151314-Jan-09 12:50
Member 260151314-Jan-09 12:50 
AnswerRe: C# and logitech Momo wheel Pin
Mark Churchill14-Jan-09 12:58
Mark Churchill14-Jan-09 12:58 
QuestionHow to get actual IP address of the computer? Pin
MAP Tiger14-Jan-09 12:45
MAP Tiger14-Jan-09 12:45 
AnswerRe: How to get actual IP address of the computer? Pin
S. Senthil Kumar14-Jan-09 22:18
S. Senthil Kumar14-Jan-09 22:18 
GeneralRe: How to get actual IP address of the computer? Pin
MAP Tiger15-Jan-09 6:56
MAP Tiger15-Jan-09 6:56 
QuestionCollecting values from datagridview.selectedrows[0].cells Pin
Lodeclaw14-Jan-09 11:21
Lodeclaw14-Jan-09 11:21 
AnswerRe: Collecting values from datagridview.selectedrows[0].cells Pin
Cassandra Ross14-Jan-09 11:33
Cassandra Ross14-Jan-09 11:33 
GeneralRe: Collecting values from datagridview.selectedrows[0].cells Pin
Lodeclaw14-Jan-09 11:45
Lodeclaw14-Jan-09 11:45 
GeneralRe: Collecting values from datagridview.selectedrows[0].cells Pin
Cassandra Ross14-Jan-09 12:07
Cassandra Ross14-Jan-09 12:07 
GeneralRe: Collecting values from datagridview.selectedrows[0].cells Pin
Lodeclaw14-Jan-09 12:19
Lodeclaw14-Jan-09 12:19 
QuestionGetting ToolStrip button's CheckState to reflect RichTextBox content Pin
Member 263050314-Jan-09 10:32
Member 263050314-Jan-09 10:32 
Dear Sirs:
I have a C# application with a ToolStrip control and a RichTextBox control.
Three of the buttons are for aligning the text, i.e., Align Left, Center, Align Right.
And two of the buttons are for increasing and decreasing Indentation.

I have the CheckOnClick property set to true for these buttons.

My application also has formatting buttons, i.e., Bold, Italic, Underlined and one button for setting a bulleted style.

It was previously suggested that I use the RichTextBox_SelectionChanged event, which in fact works for the formatting buttons and Bullets button.

However, I am running into a dead-end when attempting to write code for the alignment buttons or the 2-Indentation buttons. For example, when I try something like the following code:

<pre>tsBtnAlignLeft.Checked = richTextBoxBody.SelectionAlignment;
tsBtnAlignCtr.Checked = richTextBoxBody.SelectionAlignment;
tsBtnAlignRight.Checked = richTextBoxBody.SelectionAlignment;</pre>

it throws this exception:
"Cannot implicitly convert type System.Windows.Forms.HorizontalAlignment' to 'bool'"

And when I try to add further code in the RTB's SelectionChanged event for the IncreaseIndentation or DecreaseIndentation button's, i.e.,
<code>tsbtnIncreaseIndent.Checked = richTextBoxBody.SelectionIndent;</code>
it throws the following exception:
"Cannot implicitly convert type 'int' to 'bool'"

Can anyone provide a suggestion for getting the Checked property of the alignment buttons and the indentation buttons to reflect the contents of the RichTextBox as the cursor moves over text that is aligned and\or indented?

Thank you in advance.

Richard
AnswerRe: Getting ToolStrip button's CheckState to reflect RichTextBox content Pin
Cassandra Ross14-Jan-09 11:43
Cassandra Ross14-Jan-09 11:43 
AnswerRe: Getting ToolStrip button's CheckState to reflect RichTextBox content Pin
Member 263050315-Jan-09 4:50
Member 263050315-Jan-09 4:50 

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.