Click here to Skip to main content
15,919,245 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to drag & drop shape drawn by GDI+ in picture box area? Pin
yuenli6-Mar-08 18:54
yuenli6-Mar-08 18:54 
GeneralRe: How to drag & drop shape drawn by GDI+ in picture box area? Pin
Christian Graus6-Mar-08 20:54
protectorChristian Graus6-Mar-08 20:54 
GeneralRe: How to drag & drop shape drawn by GDI+ in picture box area? Pin
yuenli8-Mar-08 4:25
yuenli8-Mar-08 4:25 
GeneralOleDb Jet UpdateCommand Pin
jharker19876-Mar-08 15:30
jharker19876-Mar-08 15:30 
GeneralRe: OleDb Jet UpdateCommand Pin
PIEBALDconsult6-Mar-08 16:39
mvePIEBALDconsult6-Mar-08 16:39 
GeneralRe: OleDb Jet UpdateCommand Pin
jharker19877-Mar-08 1:11
jharker19877-Mar-08 1:11 
GeneralRe: OleDb Jet UpdateCommand Pin
PIEBALDconsult7-Mar-08 5:44
mvePIEBALDconsult7-Mar-08 5:44 
GeneralRe: OleDb Jet UpdateCommand Pin
KaptinKrunch6-Mar-08 16:46
KaptinKrunch6-Mar-08 16:46 
GeneralPump wait message while accessing data Pin
MAW306-Mar-08 15:14
MAW306-Mar-08 15:14 
GeneralRe: Pump wait message while accessing data Pin
KaptinKrunch6-Mar-08 16:50
KaptinKrunch6-Mar-08 16:50 
GeneralRe: Pump wait message while accessing data Pin
PIEBALDconsult6-Mar-08 17:31
mvePIEBALDconsult6-Mar-08 17:31 
QuestionHow can I create the following array? [modified] Pin
DIMITRIS OLGA6-Mar-08 11:48
DIMITRIS OLGA6-Mar-08 11:48 
GeneralRe: How can I create the following array? Pin
Christian Graus6-Mar-08 11:58
protectorChristian Graus6-Mar-08 11:58 
JokeRe: How can I create the following array? Pin
PIEBALDconsult6-Mar-08 12:16
mvePIEBALDconsult6-Mar-08 12:16 
GeneralRe: How can I create the following array? Pin
Anthony Mushrow6-Mar-08 13:11
professionalAnthony Mushrow6-Mar-08 13:11 
GeneralRe: How can I create the following array? Pin
Christian Graus6-Mar-08 13:31
protectorChristian Graus6-Mar-08 13:31 
Questionhow to move a control on mouse move event Pin
netJP12L6-Mar-08 10:30
netJP12L6-Mar-08 10:30 
AnswerRe: how to move a control on mouse move event Pin
Christian Graus6-Mar-08 11:59
protectorChristian Graus6-Mar-08 11:59 
GeneralRe: how to move a control on mouse move event Pin
netJP12L6-Mar-08 16:48
netJP12L6-Mar-08 16:48 
QuestionRichTextBox & SpellCheck [modified] Pin
W Balboos, GHB6-Mar-08 9:29
W Balboos, GHB6-Mar-08 9:29 
Hi, all;

(Using VS 2008, Win XP Prof SP2)

I was updating a spell-check control that used the MS Word spellchecker when I came across that for .NET 3.0 and above, the RichTextBox (and the regular one, too) have real-time spell checking.

After adding the WPF reference and the System.Windows.Cotrols namespace, I still can't get anything but an error when I try to enable the feature via:

richTextBox.SpellCheck.IsEnabled = true;

Even though its listed in the documentation for the RichTextBox control, SpellCheck is not considered a member if the class.

Much searching and I found this reference: http://msdn2.microsoft.com/en-us/library/ms788728(VS.85).aspx for "How to: Enable Spellchecking in a Text Editing Control" which gives an example - seems simple enough but it just won't work. See Below

Has anyone gotten this to work?

Thanks,

Balboos


(The above link will display the following:

<code>using System;
using System.Windows;
using System.Windows.Controls;

namespace SDKSample {

public partial class SpellCheckExample : Page {
public SpellCheckExample() {
StackPanel myStackPanel = new StackPanel();

//Create TextBox
TextBox myTextBox = new TextBox();
myTextBox.Width = 200;

// Enable spellchecking on the TextBox.
myTextBox.SpellCheck.IsEnabled = true;

// Alternatively, the SetIsEnabled method could be used
// to enable or disable spell checking like this:
// SpellCheck.SetIsEnabled(myTextBox, true);

myStackPanel.Children.Add(myTextBox);
this.Content = myStackPanel;
}
}
}</code>

"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"How do you find out if you're unwanted if everyone you try to ask tells you to go away?" - Balboos HaGadol

<div class="ForumMod">modified on Thursday, March 6, 2008 3:47 PM</div>
GeneralRe: RichTextBox & SpellCheck Pin
Pete O'Hanlon6-Mar-08 9:49
mvePete O'Hanlon6-Mar-08 9:49 
GeneralRe: RichTextBox & SpellCheck Pin
W Balboos, GHB7-Mar-08 2:17
W Balboos, GHB7-Mar-08 2:17 
GeneralHTML documentation Pin
Imtiaz Murtaza6-Mar-08 8:58
Imtiaz Murtaza6-Mar-08 8:58 
GeneralRe: HTML documentation Pin
led mike6-Mar-08 9:03
led mike6-Mar-08 9:03 
GeneralRe: HTML documentation Pin
Pete O'Hanlon6-Mar-08 10:40
mvePete O'Hanlon6-Mar-08 10:40 

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.