View Single Post

  #4 (permalink)  
Old 02-18-2004
Bug's Avatar
Bug Bug is offline
Junior Member
White Belt
 
Join Date: Feb 2004
Posts: 6
I do it like this.

'//Check for properly installed mappoint
Dim rk As RegistryKey
rk = Registry.CurrentUser
rk = rk.OpenSubKey("Software\Microsoft\MapPoint")

'//If properly installed
If Not rk Is Nothing Then
'Me.WindowState = FormWindowState.Minimized
Map = New frmMap
Map.Show()
Else
'//If NOT properly installed
MsgBox("Mapping feature only works if you have mappoint installed" & vbCrLf & _
"If Mappoint is installed on the machine, please run it once, before accessing this feature", _
MsgBoxStyle.Critical, "Mappoint error")
End If
__________________
Best Regards.
Bug
Microsoft Certified Solutions Developer
Reply With Quote