Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
Teenustar 4-Dec-12 9:39am    
Did you create an object for your EmailForm ?
EmailForm Obj = new EmailForm();
Obj.Show();

1 solution

Teenustar has resolved it, thank you ... except this is a VB program, not C#, so the actual code is ...

VB
Dim myEmailForm As New EmailForm
myEmailForm.Show()


... I will get my head around vb & Java eventually, I promise I will !!!

Thanks again Teenustar.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900