I created a new Class Library, and want to use the MessageBox.Show function within a procedure in the class. Maybe this can't be done? I tried adding "Imports System.Windows.Forms" to the top of the class module, but it won't allow me to use that, either. Here's a simplified version of my code in the Class Library:
Public Sub Msg(strMessage as string, strTitle as string)
Messagebox.Show(strMessage, strTitle)
end sub
If you're wondering why I'm doing this, it's because as often as I use the MessageBox function, I want something simpler and easier to type. I want to use Msg() in any of the applications I write.
Thanks ahead of time,
Sheryl