Michael Maddison
michael at ddisolutions.com.au
Tue Jan 3 16:58:43 CST 2006
Hi John, I've never used VB Express but... This is what I use... Dim result As DialogResult = MessageBox.Show _ ( _ "The application will be terminated...", _ "Application Fatal Error", _ MessageBoxButtons.OK, MessageBoxIcon.Stop, _ MessageBoxDefaultButton.Button1, _ MessageBoxOptions.DefaultDesktopOnly _ ) And it's a member of System.Windows.Forms so, Imports System HTH Michael Maddison DDI Solutions Pty Ltd michael at ddisolutions.com.au Bus: 0260400620 Mob: 0412620497 www.ddisolutions.com.au -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, 4 January 2006 3:44 AM To: VBA Subject: [dba-VB] Dot Net - messagebox In a VB Express project, messagebox is valid, but when I open the same thing in the VS, it says it is not valid. Is it possibly because I created this project as a class library? I can't seem to import the forms namespace which IIRC is where the messagebox is contained. I am attempting to create my own library which I will reference from my projects. Should I not make it a class library or am I just completely off track? John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com