GUI using C#
-
Hi all, I was wondering if anyone could help me out in writing a gui in C#. I just want to pop up a "Hello world" with a button and when I click on that button, there should come another pop up window "You are welcome to Csharp". PLease help. I appreciate that. Thanks Preeti9
-
Hi all, I was wondering if anyone could help me out in writing a gui in C#. I just want to pop up a "Hello world" with a button and when I click on that button, there should come another pop up window "You are welcome to Csharp". PLease help. I appreciate that. Thanks Preeti9
MessageBox.Show("Hello world"); MessageBox.Show("Welcome to C#"); Of course, you need to import the System.Windows dll and be using System.Windows.Forms. Christian Graus - Microsoft MVP - C++
-
MessageBox.Show("Hello world"); MessageBox.Show("Welcome to C#"); Of course, you need to import the System.Windows dll and be using System.Windows.Forms. Christian Graus - Microsoft MVP - C++
Many Many Thanks, I really appreciate that. So, its the same syntax that we use in C++. Thanks Preeti9
-
Many Many Thanks, I really appreciate that. So, its the same syntax that we use in C++. Thanks Preeti9
No, in C++, they are global API calls, MessageBox or AfxMessageBox. Here, there is nothing global, so everything that would be global is now a static method on a class. MessageBox is a class, and it has one static method, called Show. But yeah, the net result is the same :-) Christian Graus - Microsoft MVP - C++
-
No, in C++, they are global API calls, MessageBox or AfxMessageBox. Here, there is nothing global, so everything that would be global is now a static method on a class. MessageBox is a class, and it has one static method, called Show. But yeah, the net result is the same :-) Christian Graus - Microsoft MVP - C++
ok....I got it.Thanks So, we don't declare anything globally but we use a static method on a class.... Thanks again Preeti9
-
ok....I got it.Thanks So, we don't declare anything globally but we use a static method on a class.... Thanks again Preeti9
Preeti9 wrote:
So, we don't declare anything globally but we use a static method on a class....
Yes, we CAN'T declare true globals, because C++ allows OO, C# enforces it. So, a static member is the obvious way around that. Christian Graus - Microsoft MVP - C++
-
Preeti9 wrote:
So, we don't declare anything globally but we use a static method on a class....
Yes, we CAN'T declare true globals, because C++ allows OO, C# enforces it. So, a static member is the obvious way around that. Christian Graus - Microsoft MVP - C++
Thanks..Appreciate your help Preeti9