Posts

Showing posts from March, 2017

MessageBox in C#.NET

MessageBox control displays a message with specified text. A message box may have some additional options including a caption, icon, and help buttons. In this article, I will teach you  how to use the MessageBox class to display messages in Windows Forms and C#. You can create Messagebox at design time and also you create at run time. In this artical i will explain how to create Messagebox at a design time and also at a runtime. Step 1: Open visual studio and create new project using below step (File -> New -> Project) select visual c# template from left panel. and select windows form application from middle panel. and give appropriate name,and path then after press OK. your screen look like below.

MDI Form Using C#.NET

Image
Multiple Document Interface  ( MDI ).  the  notepad is an best  example  of an SDI application.  MDI  applications often have a Window menu item with submenus for switching between windows or documents. Step 1  Open visual studio and create new project with proper name and path when you want to store your project.After give proper name,and path press OK button.your screen like below. Step 2 Go to toolbox and select button form toolbox. Step 3 drag and drop button form toolbox to form.after drag and drop button you screen look like below. Step 4 right click on button go to propertices.and select text propert and change the value of the text property to 'open windows'. step 5 Then after go to solution explore and select your project and right click on the project go to add opetion and select windows form. give different name. After create second form. Double click on button of main windows form and type Second sec = new Seco

Create First Windows Form Application

Image
A windows form application created by  two computer programming language.first one is c#(c Sharp) and second one is vb(visual basic).in this  article  we use c# computer language  A  windows form application  is any  application , which is designed to run on a computer. It will not run on web browser because then it becomes a web. Now first question are coming in mind. how to create windows form application?? for create windows form application you must have visual studio with proper installation.if you don't have visual studio then first of all you need to download visual studio. if you visual studio successfully install then you screen like below. Step  - 2:  Click on New Project. OR go to File -> New -> project.after click on new project your screen like below. Step 3  Select Visual C# templates form installed.then select windows form application from second column. give name of your first windows form application and select path when you want to