Thanks for this. I'm starting to understand and I had a go but I was still
struggling a little. I couldn't access to object model of Microstation
through this singleton class that I built. So that I can understand this I
am starting with a basic example, but what might that class look like if it
were to be added to the following simple app?
Russ
Public Class Form1
Inherits System.Windows.Forms.Form
Private oWinWord As Word.Application
#Region " Windows Form Designer generated code "
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Word isn't running so start it
oWinWord = New Word.Application
oWinWord.Visible = True
Me.Label1.Text = "There are " & CStr(oWinWord.Documents.Count) & "
documents open"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
oWinWord = New Word.Application
oWinWord.Documents.Add()
Me.Label1.Text = "There are " & CStr(oWinWord.Documents.Count) & "
documents open"
End Sub
End Class
"Jonas Pohlandt" <j.******************@dbit-systems.de> wrote in message
news:en**************@TK2MSFTNGP10.phx.gbl...
Even better (VB.Net specific):
http://www.ondotnet.com/pub/a/dotnet...singleton.html