.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh

Home >> Code Snippets >> Windows Form Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Form Loading Count in C#.net

Posted By:Narayanan       Posted Date: December 19, 2011    Points: 40    Category: Windows Form Controls    URL: http://www.dotnetspark.com  

Today, we will learn a Form Loading Count in C#.net

It is a very Simple one. I will give a step by step processing.

  Create a Project
   Declare a variable in the Project.
like this ,
  public static int Chkformopencnt ;

Step: 3
  Create a Variable in the Application Setting of the Project.
  How to create a variable in the Application Setting ?
               1. Go To Your Project Property
               2. Click Setting Tab in the Left side of the Screen(Application Property)
               3. Create a Name "ChkFormOpenCnt" ,Type "Int" Scope "User" and Value "0"

Step: 4
      In the form loading :
           Chkformopencnt = Properties.Settings.Default.ChkFormOpenCnt + 1;
            Properties.Settings.Default.ChkFormOpenCnt = Chkformopencnt;

Step: 5
    Run the Application .
   You get a Form Counting when your form loading Time



Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend