ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[­ì³Ð] vb2010 °}¦CÅã¥Üªºµ²ªG...

[­ì³Ð] vb2010 °}¦CÅã¥Üªºµ²ªG...

¥»©«³Ì«á¥Ñ mark15jill ©ó 2012-12-5 17:29 ½s¿è

vb2010 ¥i¥H³o¼Ë°µ..
¨ä¥Lª©¥»½Ð¦Û¦æ¬ã¨s
¯ÂÄݦnª±...(¨ä¹ê¬O °}¦CÁÙ¨S·d¦n£¾£¾
  1. Public Class Form1
  2.     Dim chbo1(97, 56) As CheckBox

  3.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

  4.         Dim usx1, usy1 As Integer
  5.         Dim nn As Integer


  6.         Dim fontFamily As New FontFamily("·L³n¥¿¶ÂÅé")
  7.         Me.Show()

  8.         nn = 1

  9.         For usx1 = 0 To 97
  10.             For usy1 = 0 To 56
  11.                 chbo1(usx1, usy1) = New CheckBox
  12.                 chbo1(usx1, usy1).BackColor = Color.Aquamarine
  13.                 chbo1(usx1, usy1).Width = 20
  14.                 chbo1(usx1, usy1).Height = 20
  15.                 chbo1(usx1, usy1).Appearance = Appearance.Button
  16.                 chbo1(usx1, usy1).TextAlign = ContentAlignment.MiddleCenter
  17.                 chbo1(usx1, usy1).Font = New Font(fontFamily, 14, FontStyle.Regular, GraphicsUnit.Pixel)
  18.                 chbo1(usx1, usy1).Location = New Point((15 * usx1), (15 * usy1))
  19.                 Me.Controls.Add(chbo1(usx1, usy1))
  20.                 'chbo1(usx1, usy1).Text = chbo1(usx1, usy1).Name & "²Ä¤@°Ï¶ô" & Chr(10) & Chr(10) & nn
  21.                 nn = nn + 1
  22.             Next
  23.         Next


  24.         '¤À¹j½u'


  25.         usx1 = Nothing
  26.         usy1 = Nothing

  27.     End Sub
  28. End Class
½Æ»s¥N½X

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

        ÀR«ä¦Û¦b : ¦n¨Æ­n´£±o°_¡A¬O«D­n©ñ±o¤U¡A¦¨´N§O¤H§Y¬O¦¨´N¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD