Connecting Tech Pros Worldwide Help | Site Map

c#

Newbie
 
Join Date: Sep 2009
Posts: 1
#1: Sep 3 '09
how to develope GUI components(like message box) using c# without using built in func
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,745
#2: Sep 3 '09

re: c#


You need to be a lot more specific.
You might as well be asking "How to I write a program?"
Newbie
 
Join Date: Jun 2009
Location: Whitehall, PA
Posts: 7
#3: Sep 15 '09

re: c#


Taken literally, I would say:

Expand|Select|Wrap|Line Numbers
  1. using System.Runtime.InteropServices;
  2. class Program
  3. {
  4. [DllImport("user32")]
  5. public static extern int MessageBox(int hwnd, string pText, string pCaption, int uType);
  6. public static void Main()
  7. {
  8. MessageBox(0, "Test Title", "Test Caption", 0);
  9. }
  10. }
  11.  
Reply