Click here to Skip to main content
15,918,168 members
Home / Discussions / C#
   

C#

 
QuestionParse wbXML, N95 Pin
MANOJ BATRA1-Feb-09 23:48
MANOJ BATRA1-Feb-09 23:48 
AnswerRe: Parse wbXML, N95 Pin
Spunky Coder2-Feb-09 0:26
Spunky Coder2-Feb-09 0:26 
QuestionFinding the Spelling mistake in rich text box in c#.net Pin
Lijo Rajan1-Feb-09 23:33
Lijo Rajan1-Feb-09 23:33 
AnswerRe: Finding the Spelling mistake in rich text box in c#.net Pin
musefan1-Feb-09 23:57
musefan1-Feb-09 23:57 
GeneralRe: Finding the Spelling mistake in rich text box in c#.net Pin
Lijo Rajan2-Feb-09 0:00
Lijo Rajan2-Feb-09 0:00 
GeneralRe: Finding the Spelling mistake in rich text box in c#.net Pin
musefan2-Feb-09 0:03
musefan2-Feb-09 0:03 
GeneralRe: Finding the Spelling mistake in rich text box in c#.net Pin
Lijo Rajan2-Feb-09 0:04
Lijo Rajan2-Feb-09 0:04 
GeneralRe: Finding the Spelling mistake in rich text box in c#.net Pin
musefan2-Feb-09 1:41
musefan2-Feb-09 1:41 
OK so you need atleast 3.0 for what I suggested. I dont know for sure but can you not just include the relevant 3.0 library files with your application and reference them?

Also its not unrealistic to expect users to upgrade there .Net version to meet application requirements.

Anyway if your sticking with 2.0 then there was an alternative solution I tried before using the WPF approach. That was to have a text file with all dictionary words:

I cant remember which one i used but here is one example:
Dictionary Words[^]

Im sure you can see where this is going now -

Create function that tests all words in the richTextBox with the .txt file and then highlight any words that dont match, i set the text color to red as there no option for the red underline. I think you would have to handle the paint for that, which is prob more hassle then its worth.

Also I choose to have a button to perform the spell check rather than auto check when text changes because of the performance. Of course one could make my attemp more effecient im sure, I didnt bother as I found the alternative WPF approach instead.

I didnt handle the spelling suggestions as the algorithms seemed a bit complex but there were some good explainations for how to do it out there

Hope this helps in anyway

My opinion is... If someone has already posted an answer, dont post the SAME answer

GeneralRe: Finding the Spelling mistake in rich text box in c#.net Pin
Christian Graus2-Feb-09 0:13
protectorChristian Graus2-Feb-09 0:13 
AnswerRe: Finding the Spelling mistake in rich text box in c#.net Pin
Giorgi Dalakishvili2-Feb-09 1:17
mentorGiorgi Dalakishvili2-Feb-09 1:17 
Questionextract domain from URL Pin
Eli Nurman1-Feb-09 22:57
Eli Nurman1-Feb-09 22:57 
AnswerRe: extract domain from URL Pin
musefan1-Feb-09 23:13
musefan1-Feb-09 23:13 
GeneralRe: extract domain from URL Pin
Eli Nurman1-Feb-09 23:35
Eli Nurman1-Feb-09 23:35 
GeneralRe: extract domain from URL Pin
musefan1-Feb-09 23:44
musefan1-Feb-09 23:44 
GeneralRe: extract domain from URL Pin
Steve_1-Feb-09 23:54
Steve_1-Feb-09 23:54 
GeneralRe: extract domain from URL Pin
musefan1-Feb-09 23:57
musefan1-Feb-09 23:57 
GeneralRe: extract domain from URL Pin
#realJSOP2-Feb-09 0:10
professional#realJSOP2-Feb-09 0:10 
AnswerRe: extract domain from URL Pin
Guffa1-Feb-09 23:55
Guffa1-Feb-09 23:55 
GeneralRe: extract domain from URL Pin
Eli Nurman2-Feb-09 0:23
Eli Nurman2-Feb-09 0:23 
AnswerRe: extract domain from URL Pin
Henry Minute2-Feb-09 1:30
Henry Minute2-Feb-09 1:30 
Questionhow to call a web method in a web form application?? Pin
remyajith1-Feb-09 22:06
remyajith1-Feb-09 22:06 
AnswerRe: how to call a web method in a web form application?? Pin
Christian Graus1-Feb-09 22:15
protectorChristian Graus1-Feb-09 22:15 
GeneralRe: how to call a web method in a web form application?? Pin
remyajith1-Feb-09 22:17
remyajith1-Feb-09 22:17 
GeneralRe: how to call a web method in a web form application?? Pin
Christian Graus1-Feb-09 22:41
protectorChristian Graus1-Feb-09 22:41 
AnswerRe: how to call a web method in a web form application?? Pin
Steve_2-Feb-09 0:01
Steve_2-Feb-09 0:01 

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.