Using this statement to utilize the spell checker in WinWord:
WinOffice.clsWo rd.SpellChecker (txtNote.Text)
'this does not work because no main window is displayed
'Dim proc = Process.GetProc essesByName("wi nword")
'For i As Integer = 0 To proc.Count - 1
' proc(i).CloseMa inWindow()
'Next i
'this closes all WinWord processes silently (a little overkill):
Dim procs() As Process = Process.GetProc essesByName("wi nword")
For i As Integer = 0 To procs.Count - 1
procs(i).Kill()
Next i
Is there a way to kill only the WinWord process I started by calling
SpellChecker?
Thanks,
Dean S
WinOffice.clsWo rd.SpellChecker (txtNote.Text)
'this does not work because no main window is displayed
'Dim proc = Process.GetProc essesByName("wi nword")
'For i As Integer = 0 To proc.Count - 1
' proc(i).CloseMa inWindow()
'Next i
'this closes all WinWord processes silently (a little overkill):
Dim procs() As Process = Process.GetProc essesByName("wi nword")
For i As Integer = 0 To procs.Count - 1
procs(i).Kill()
Next i
Is there a way to kill only the WinWord process I started by calling
SpellChecker?
Thanks,
Dean S
Comment