Using WinForm in my Outlook Add-in

M

Mohammed Mudassir

Hi!

I created the form and then i initiated in my "Command Bar Click Event"
ehre is the code snippet.

----------------CODE SNIPPET STARt ------------------------
MsgBox("Our CommandBar was pressed!")
Dim oApp As outlook.ApplicationClass
oApp = applicationObject
Dim frmMain As System.Windows.Forms.Form
frmMain = New Form1
frmMain.Activate()
frmMain.Visible = True
frmMain.Show()
----------------CODE SNIPPET END------------------------
it is not displaying my Form, any idea?

Take Care,

Mudassir
 
H

Helmut Obertanner

Hello Mohammed,

try


Dim frmMain As Form1
frmMain = New Form1
frmMain.Show()

I'm not a goot VB.Net developer, prefer C# look her for some samples:

www.outlookcode.com

under VB.Net section

--
Freundliche Grüße / with regards


Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top