G
Guest
I'm developing a kiosk app in vb2005 and don't want the mouse pointer
to shown.
I'm using the webbrower control to display documents of various types.
eg PDF and Powerpoint. I simply pass the document location via
me.webbrowser.navigate("file://...") and the webbrowser works out which
application it then has to call (Acrobat or Powerpoint) to display
the document within the browser window.
This works well for PDFs, Powerpoint seems to be a law unto itself.
Firstly I needed to set a registry value to force it into windowed mode:
rkPPT = Registry.ClassesRoot.CreateSubKey("PowerPoint.Show.8")
rkPPT.SetValue("BrowserFlags", 0, RegistryValueKind.DWord)
Now I discover that powerpoint does not obey the cursor.hide settings.
(whereas acrobat does)
As a test I set a button.click event to set cursor.hide. But as soon as I
click
into the powerpoint slide the cursor comes back.
I've seen references to the low level ShowCursor function. Is this what I'll
have to do ?
As a side issue I've found Powerpoint to be a pain to work with.
Looking at the MSDN developer centre for Powerpoint I found
that it's appears to be centred around PP2003 not PP2007.
Whereas for Windows Media Player I found great documentation
explaining how to interop from .NET, for PP it's all VBA related.
M.
to shown.
I'm using the webbrower control to display documents of various types.
eg PDF and Powerpoint. I simply pass the document location via
me.webbrowser.navigate("file://...") and the webbrowser works out which
application it then has to call (Acrobat or Powerpoint) to display
the document within the browser window.
This works well for PDFs, Powerpoint seems to be a law unto itself.
Firstly I needed to set a registry value to force it into windowed mode:
rkPPT = Registry.ClassesRoot.CreateSubKey("PowerPoint.Show.8")
rkPPT.SetValue("BrowserFlags", 0, RegistryValueKind.DWord)
Now I discover that powerpoint does not obey the cursor.hide settings.
(whereas acrobat does)
As a test I set a button.click event to set cursor.hide. But as soon as I
click
into the powerpoint slide the cursor comes back.
I've seen references to the low level ShowCursor function. Is this what I'll
have to do ?
As a side issue I've found Powerpoint to be a pain to work with.
Looking at the MSDN developer centre for Powerpoint I found
that it's appears to be centred around PP2003 not PP2007.
Whereas for Windows Media Player I found great documentation
explaining how to interop from .NET, for PP it's all VBA related.
M.