June 25th, 2007, 03:55 AM
How to declare Messagebox.Show
When i compile the program for VB.net, it gave me the messaga that Messagebox is not declared? May i know how to declared it?
June 25th, 2007, 04:08 AM
In C# its MessageBox
However, can you post your code?
And he picked it all up... in his pick-up.
Friends of Shemzilla
June 25th, 2007, 04:14 AM
you need to add reference to System.Windows.Forms
then you can have Imports System.Windows.Forms line
and it would recognize the MessageBox class.
June 25th, 2007, 06:32 AM
Ah. I was assuming this was a windows app.
June 25th, 2007, 06:41 AM
maybe it's Class Library - in such case the references are not
June 25th, 2007, 06:44 AM
Yeah - I've made the connection now