ZengCode.Com (The Thai Php Framework)  


Home   Download   Manual   About us    

Facebook   


MAIN MENU
เขียนโปรแกรมบน iPhone ด้วย MonoTouch
News
Php Tips
Ubuntu
Spring+Strut+Hibernate
Android Programming
Design Pattern By PHP
C# Design Pattern
Linux Quick Tips
C# Tips & Technique
C# using Linq น่าใช้จริงๆ
Java & JavaScript Tips
MAVEN
Database & SQL
ZengCode Framework Guide
Mac OSx
Zeng Code Code
Programming
IPhone (Tips and Trick)

Download เอกสารที่น่าสนใจ

     สร้าง TextBox หลายอัน แล้วกำหนดค่าให้มัน   (2009-09-08)

Public Class Form1
{
    TextBox tbx = new TextBox[5];
    int arr = {1, 2, 3, 4, 5};
//=======================================================================
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click <<< Event onclick ของ button1
   {
        for (int i = 0; i<arr.Length; i++)
            tbx[i+1].Text = arr[i].ToString();
   }
//=======================================================================
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load <<< Event PageLoad
   {
        SetArr();
   }
//=======================================================================
    private void  SetArr()
   {
        tbx[1] = TextBox1;
        tbx[2] = TextBox2;
        tbx[3] = TextBox3;
        tbx[4] = TextBox4;
   }
}
//=======================================================================

 

มาจาก http://www.narisa.com/forums/index.php?showtopic=29161


Comment

xxx  (10 กันยายน 2552)   
IP : 119.160.216.34

 

<b>thank kurb</b>


Name
Comment
Security CodeCAPTCHA Image

web hit counter

This page took 0.070838 seconds to load.