Skip to main content

Posts

Showing posts with the label csharp

Conformation MessageBox

This BLOG POST demonstrate how to use the   MessageBox result in window form programming. to full fill this task we will depend on DialogResult    property in Windows Forms..                   when we are doing windows programming using Csharp ,to show the intermediate result  we will display by messageBox MessgeBox is having one main  function show  .it returns DialogResult Value.when user used  MessgeBox to display the data,user has to click default buttons OK,cancel,Abort,Ignore etc to close  MessgeBox. this we can get from  MessgeBox and it will be saved in  DialogResult variable . DialogResult is consist different button values using ENUM data types . Requirements The following list outlines the recommended hardware, software, network infrastructure, and service packs that you need: ·          Microsoft Visual Studio .NET or Microsoft Visual Studio 2005 or above This article assumes that you are familiar with the following topics: ·          Windows appli

Csharp Events basics

Events in C# Syntax of event declaration [attributes][modifers] event <delegate_type> <event_name>[ {event body}   ]; we will discuses about syntax of event ·         Attribute s are csharp attributes ·         Modifiers are optional and those may one are combination of more than one o    Accessing specifies §   Public, private, protected, internal §   New, Virtual, Abstract, override §   Static ,extern o    Event will work between objects because of that when your are defining event in main function existing class you have to specifies event as static              ·         Event o    It is a keyword used to give event declaration o    In syntax event keyword must not be omitted ·         Type o    Event is a role player  variable foe delegate o    Without delegate event will not fired o    Type is a delegate type which is giving functions to event at run time when event is fired this process is known as hookup ·