By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,900 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

problem with events

P: n/a
Hi,
I am developing an application which is to be used with
power point. I am now in need of help from you guys.
In my Application (developing using VB.net), I am
creating the object of the power point everything is
working fine, but the events are not firing. I am here
pasteing code please see this.

'Declaration
Public WithEvents op As New PowerPoint.Application()

'Subs

Private Sub Form1_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
op.Visible = Office.MsoTriState.msoTrue
op.Visible = True
op.WindowState =
PowerPoint.PpWindowState.ppWindowMaximized
op.Presentations.Open("D:\somefile.ppt",
Office.MsoTriState.msoTrue, Office.MsoTriState.msoTrue,
Office.MsoTriState.msoTrue)

End Sub

Private Sub op_SlideShowBegin(ByVal Wn As
PowerPoint.SlideShowWindow) Handles op.SlideShowBegin

MsgBox("Soni")

End Sub

Regards,
Kishor
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Kishor,

I think the following article will solve this for you. Can you try this out?

ID: 308330
HOWTO: Handle PowerPoint Events With Visual Basic .NET
http://support.microsoft.com/?id=308330
Good luck!

Keith Fink
Microsoft Developer Support
Visual Basic .NET

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.