hi
got the following code from microsoft online thing...
however, i'm getting the error "Namespace' statements can occur only at file or namespace level."Code:Imports System Imports System.Windows Imports System.Windows.Controls Namespace SDKSample Partial Public Class SpellCheckExample Inherits Page Public Sub New() Dim myStackPanel As New StackPanel() 'Create TextBox Dim myTextBox As 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) Me.Content = myStackPanel End Sub End Class End Namespace
not sure what im doing wrong...can't work out where the namespace statement should be placed...thanks in advance




Reply With Quote
