Vishu Sukhdev's Profile User Rating: -----

Reputation: 38 Craftsman
Group:
Active Members
Active Posts:
151 (0.09 per day)
Joined:
19-February 10
Profile Views:
4,606
Last Active:
User is offline Jan 29 2013 05:48 AM
Currently:
Offline

Previous Fields

Country:
IN
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   Vishu Sukhdev has not set their status

Posts I've Made

  1. In Topic: javascript validation

    Posted 29 Jan 2013

    Hi, I am also learning javascript but not good so far but i think this code can help you
    function validateForm()
    		{
    			 
    			var x=ocument.forms["checkout"]["num"].value;
    			
                                                    if(!isNaN(x))
    			{
    				if( x.length!=16)
    				{
    				alert("Your credit card must be 16 digits long And you enter "+x.length);
    				return;
    				}
    			}
    			else alert("Enter Valid Number");
    		}
    
    
  2. In Topic: Restrict my form to not open more then once

    Posted 17 Jan 2013

     /// <summary>
            /// This method return true if form already open
            /// </summary>
            /// <param name="FormType">instance of form</param>
            /// <returns>bool</returns>
            public bool IsFormAlreadyOpen(Type FormType)
                {
                bool bRetval = false;
                foreach (Form OpenForm in Application.OpenForms)
                    {
                    if (OpenForm.GetType() == FormType)
                        bRetval = true;
                    }
                return bRetval;
                }
    
    

    And check form already open.
    call this method on your button click .
     bool bIsOpen = IsFormAlreadyOpen(typeof(frmName));
                                    if(bIsOpen)
                                        return;
                                    else
                                       frmName.show();
    
    
    
    
    
    

My Information

Member Title:
D.I.C Head
Age:
30 years old
Birthday:
September 24, 1983
Gender:
Interests:
Music, Play PC Games
Full Name:
Vishu Sukhdev
Years Programming:
1
Programming Languages:
C#.Net, VB.Net, ASP.Net

Contact Information

E-mail:
Click here to e-mail me

Comments

Page 1 of 1
  1. Photo

    saeededata Icon

    09 Mar 2011 - 13:35
    Friend, I am very grateful.
    You solved my problem originally.
Page 1 of 1