Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VS2010 VB.NET Outlook
I have created a Button and a Form in a VB.net Outlook program using VS2010.
 
If I click the Button it displays a MsgBox message.
 
I now want to amend the code to display my Form instead of the MsgBox message, however, when I type "EmailForm." into the code I do not get a "Show" option, I get a drop down list of 18 options, but no way of displaying the Form.
 
The Form itself is nothing more than my SQLCE dataset dragged in from the Server Explorer to allow me to add E:Mails to it.
 
What am I doing wrong ?!?
Posted 4-Dec-12 3:56am
Comments
Teenustar at 4-Dec-12 9:39am
   
Did you create an object for your EmailForm ?
EmailForm Obj = new EmailForm();
Obj.Show();

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Teenustar has resolved it, thank you ... except this is a VB program, not C#, so the actual code is ...
 
        Dim myEmailForm As New EmailForm
        myEmailForm.Show()
 
... I will get my head around vb & Java eventually, I promise I will !!!
 
Thanks again Teenustar.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 4 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100