Tutorials Navigation
[C#] Beginners Tutorial: Creating A Message Box
Tutorial Name: [C#] Beginners Tutorial: Creating A Message Box
Category: PC Tutorials
Submitted By: MX
Date Added:
Comments: 2
Views: 1,856
Related Forum: PC Building Forum
Share:
Creating a message box in C#
1) Open up Visual Studios
2) Select new project
[ Register or Signin to view external links. ]
3) You should then be greeted with this:
[ Register or Signin to view external links. ]
select windows form application, you can then name your project to whatever you want.
4) Your page should now look like this:
[ Register or Signin to view external links. ]
5) Your next step is to add a button, you can do this by navigating your toolbar, finding the option 'Button' from the list, and then dragging it onto your form.
if steps followed correctly it should now look like this:
[ Register or Signin to view external links. ]
Hint: You can rename, resize and many other cool options located in the properties tab when you have your button selected.
[ Register or Signin to view external links. ]
7) Now we need to add the actual code, you do this by double clicking on the button, you will then be greeted with this page:
[ Register or Signin to view external links. ]
Now you need to type the following code:
Example:
[ Register or Signin to view external links. ]
That should be everything, now all you need to do is clikc the green arrow that says start, when your application opens press the buttona nd the text will appear:
[ Register or Signin to view external links. ]
Thanks for reading
-HondaCRF
1) Open up Visual Studios
2) Select new project
[ Register or Signin to view external links. ]
3) You should then be greeted with this:
[ Register or Signin to view external links. ]
select windows form application, you can then name your project to whatever you want.
4) Your page should now look like this:
[ Register or Signin to view external links. ]
5) Your next step is to add a button, you can do this by navigating your toolbar, finding the option 'Button' from the list, and then dragging it onto your form.
if steps followed correctly it should now look like this:
[ Register or Signin to view external links. ]
Hint: You can rename, resize and many other cool options located in the properties tab when you have your button selected.
[ Register or Signin to view external links. ]
7) Now we need to add the actual code, you do this by double clicking on the button, you will then be greeted with this page:
[ Register or Signin to view external links. ]
Now you need to type the following code:
MessageBox.Show("YOUR TEXT HERE");
Example:
[ Register or Signin to view external links. ]
That should be everything, now all you need to do is clikc the green arrow that says start, when your application opens press the buttona nd the text will appear:
[ Register or Signin to view external links. ]
Thanks for reading
-HondaCRF
Ratings
Comments
MXPosted:
AR15 This was quite an interesting read and I actually learned something from it. Thank you for posting this, man!
No problem, thinking of doing a few more beginner, then intermediate and maybe even a few advanced tutorials.
Tutorial King here we come!
AR15Posted:
This was quite an interesting read and I actually learned something from it. Thank you for posting this, man!
Related Tutorials
- 01. Emulating Xbox 360 on PC for Running COD4 With Mods(3,676)
- 02. How to: Matrix Numbers | Batch File(1,956)
- 03. How to Password Protect Files on Windows(868)
- 04. How to play Socom 2/3/ and Combined Assault on PC(6,885)
- 05. Modern Warfare 2 Vac Ban Bypass Tutorial(6,259)
- 06. How to embed an image on TheTechGame(3,141)
- 07. [PC] NIOH 2 OTHER USER SAVE RESIGN(13,094)
- 08. Host bot lobbies! Full Tutorial!(11,638)
- 09. Unban yourself [Plutonium BO2](14,317)
- 10. Fall Guys - How to Change Your Name Color on Fall Guys(8,411)
- 11. Best Crosshair Settings for Valorant(6,552)
- 12. Othercide The Surgeon Boss Guide(2,570)
- 13. Othercide Remembrances Unlock Guide(4,518)
- 14. Othercide Beginners Tips and Tricks(2,737)
- 15. How to Fix Grounded Crashes, Loading Time, Low FPS and Other(4,886)
"[C#] Beginners Tutorial: Creating A Message Box" :: Login/Create an Account :: 2 comments