Click here to Skip to main content
15,921,959 members
Home / Discussions / C#
   

C#

 
Questionconvert pdf to doc Pin
inzibharti2-Jan-09 18:15
inzibharti2-Jan-09 18:15 
AnswerRe: convert pdf to doc Pin
Dave Kreskowiak2-Jan-09 19:55
mveDave Kreskowiak2-Jan-09 19:55 
QuestionHow To Install .net Framework Without Wizard Pin
Joe Rozario2-Jan-09 17:23
Joe Rozario2-Jan-09 17:23 
AnswerRe: How To Install .net Framework Without Wizard Pin
N a v a n e e t h2-Jan-09 17:35
N a v a n e e t h2-Jan-09 17:35 
AnswerRe: How To Install .net Framework Without Wizard Pin
Dave Kreskowiak2-Jan-09 19:54
mveDave Kreskowiak2-Jan-09 19:54 
GeneralRe: How To Install .net Framework Without Wizard Pin
N a v a n e e t h3-Jan-09 1:05
N a v a n e e t h3-Jan-09 1:05 
AnswerRe: How To Install .net Framework Without Wizard Pin
#realJSOP2-Jan-09 23:56
professional#realJSOP2-Jan-09 23:56 
QuestionGetting ToolStrip button's CheckState to reflect text formatting Pin
Member 26305032-Jan-09 13:54
Member 26305032-Jan-09 13:54 
Dear Sirs:
I have a C# application with a ToolStrip control and a RichTextBox control.

Three of the buttons on the toolStrip are for formatting the text in the RichTextBox, i.e., Bold, Italic, and Underlined. I have the CheckOnClick property set to true for these 3-buttons. My code successfully sets the selected text to any\all of the above formatting.

However, the button's CheckState remains "Pressed" or clicked, unless I physically unclick it. What I want to do is emulate what occurs in a WordPad document, where by both scrolling over formatted text, or clicking into formatted text causes the Bold button, Italic button, or Underline button(s) to appear depressed or clicked and conversely, to not appear depressed or clicked when the user clicks outside of the formatted text or scrolls past it.

Does anyone know how to accomplish this in C# and also what event(s) to place this code in, so that this happens smoothly for the end-user?

Thank you in advance for your answer

Richard
AnswerRe: Getting ToolStrip button's CheckState to reflect text formatting Pin
Eddy Vluggen2-Jan-09 23:03
professionalEddy Vluggen2-Jan-09 23:03 
AnswerRe: Getting ToolStrip button's CheckState to reflect text formatting Pin
Member 26305035-Jan-09 7:36
Member 26305035-Jan-09 7:36 
QuestionDatagrid Checkbox is not getting binded to dataset/ access database Pin
jeweladdict2-Jan-09 12:28
jeweladdict2-Jan-09 12:28 
AnswerRe: Datagrid Checkbox is not getting binded to dataset/ access database Pin
jeweladdict2-Jan-09 12:40
jeweladdict2-Jan-09 12:40 
GeneralRe: Datagrid Checkbox is not getting binded to dataset/ access database Pin
jeweladdict2-Jan-09 12:53
jeweladdict2-Jan-09 12:53 
Questionclose the runing process Pin
abu rakan2-Jan-09 11:44
abu rakan2-Jan-09 11:44 
QuestionRe: close the runing process Pin
Mark Salsbery2-Jan-09 11:55
Mark Salsbery2-Jan-09 11:55 
AnswerRe: close the runing process Pin
User 66582-Jan-09 11:57
User 66582-Jan-09 11:57 
AnswerRe: close the runing process Pin
Dave Kreskowiak2-Jan-09 19:52
mveDave Kreskowiak2-Jan-09 19:52 
Questionhelp...................... Pin
abu rakan2-Jan-09 11:39
abu rakan2-Jan-09 11:39 
AnswerRe: help...................... Pin
Mark Salsbery2-Jan-09 11:58
Mark Salsbery2-Jan-09 11:58 
GeneralRe: help...................... Pin
CPallini3-Jan-09 2:54
mveCPallini3-Jan-09 2:54 
GeneralRe: help...................... Pin
Eddy Vluggen3-Jan-09 23:19
professionalEddy Vluggen3-Jan-09 23:19 
AnswerRe: help...................... Pin
Dave Kreskowiak2-Jan-09 19:51
mveDave Kreskowiak2-Jan-09 19:51 
AnswerRe: help...................... Pin
#realJSOP2-Jan-09 23:58
professional#realJSOP2-Jan-09 23:58 
Questionsound in c# Pin
BESHOY MARKO2-Jan-09 10:50
BESHOY MARKO2-Jan-09 10:50 
AnswerRe: sound in c# Pin
Kristian Sixhøj2-Jan-09 10:53
Kristian Sixhøj2-Jan-09 10:53 

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.