˹á
 úҹ
  C/C++ new
  Java new
 Sourcecode.TV
  Android
  Blackberry
  C/C++
  Java
  Linux
  Windows Phone
  ͧͧ
 
  .NET
  Android
  Blackberry
  C++Builder
  Delphi
  Java
  Mobile
  Open Source
  Pocket PC
  Visual Basic
  Web
  Windows Phone
  Others
 Ẻ¹
  ASP
  ASP.NET Webmatrix
  C++
  eVB
  J2ME
  Java
  PHP
 
  Android
  ASP
  C++
  VC++
  CGI-Perl
  Delphi
  Java
  jQuery
  PHP
  Visual Basic
  .NET
 ԡèҡ
  Դ...
  DoodeeHosting
  Ѻ͡Ẻ Ѳ䫵
  Freeware
  ѵҤɳ
  ª١
  ʶԵԼ
 Ŵ
 Ң
 дҹʹ
  .NET
  C/C++
  Delphi
  Java
  Palm/PocketPC
  Visual Basic
  Web
 
 дҹҹ
 ԧ
 ǡѺ
 ѵҤɳ
Social Network

Facebook  Twitter  YouTube
 New Article
 Webboard
 Freelanceboard
Freeware
 (BerDee)
(Android)
駩غ
駩غ(Android)
WebcamMonitor
WebcamMonitor(Windows)
scSendMail
scSendMail(Windows)
MSN Caption
MSN Caption(Windows)
  Freelance comment
  ԴͺʹФѺ...
2015-07-29 13:35:58
  Ҽͧ纷ѲҴ HTML5 ...
2015-01-18 15:33:54
  Ҽͧ纷ѲҴ HTML5 ...
2015-01-18 15:32:51
  ԴͺФѺ
ҹ...

2014-01-06 12:47:38
  ѧҤ͹ ͧ֡ͧ...
2013-07-06 01:04:37
  ʹ觢ͺࢵҤҤҡ͹ФѺ...
2013-03-24 18:54:20
  ѧդѺҹԴѺ 08...
2012-12-16 19:18:14
  ʹ㨤 Դ 0905076277...
2012-11-12 11:07:46
  Ѻ礹ѡ֡ͺѷ
...

2012-10-29 03:10:46
  sukit_te34@hotmail.com...
2012-10-29 03:09:36
  Webboard comment
  [url=http://crystal-design....
2017-05-27 11:15:19
  [url=https://w-shop.cc/]...
2017-05-27 02:56:47
  ੾зҧҴ ͧҢ...
2017-05-25 16:18:08
  ͧ˹Ѻ os ...
2017-05-25 16:12:47
  ¹ php curl ...
2017-04-20 01:04:20
  ¹ ...
2017-03-27 12:50:54
  ʧҷ ͧѾഷ...
2017-03-27 12:37:20
  ͺõͺ...
2017-02-22 13:10:24
  ͧաԸ¹ recursive f...
2017-02-14 13:11:03
  ҡ кͧشҡ...
2017-01-30 11:45:28
  Homework comment
  ͧ ͧ ѧ ^^...
2017-04-18 18:40:46
  ͧ ͧ ѧ ^^...
2017-04-18 18:37:54
  á flowchart ѹ...
2017-04-18 17:43:33
  ҡ flowchart ...
2017-04-18 16:25:29
  kungking ӶäѺ ?...
2017-03-18 23:28:36
  ¹ʴͧ...
2017-03-06 10:56:25
  鴷ӧҹẺ ...
2016-09-06 01:00:12
  ҡҺ鴹Ѻѧ...
2016-09-05 09:31:27
  ͧ֡¹...
2016-04-22 00:47:49
  ἹѧͧѺѡ...
2016-04-21 19:24:55
  Article comment
  Ѻ س "Դ" ͧ֡...
2016-06-18 15:21:09
  vs2008 c# Ѻ ͺسѺ...
2016-06-17 14:39:30
  vs c# ӵآ鹵͹...
2016-06-17 14:37:44
  ͧѺ "Ҩԧ ...
2016-03-12 23:36:05
  觢ͤǧ LAN ੾Ф...
2016-03-12 18:25:42
  Terminal Mac ...
2016-02-16 11:02:01
  Terminal ͤ...
2016-02-16 05:58:21
  仵 ç¤Ѻ
2016-01-25 13:29:55
  ǹ!!! ͧä¹ App ...
2016-01-25 10:56:34
  ӵйӨش...
2016-01-20 23:30:25
  9Mcode comment
  ҡ...
2014-02-21 08:52:19

Link Exchange

ѵҤɳ
Statistics of Sourcecode in Thailand
 
 eMbedded Visual Basic Tutorial  

- - - - - - - - - - - - - - ʹѺʹع- - - - - - - - - - - - - -

 eMbedded Visual Basic
 
 

6 Ǩͺշ 366 ѹ

 

õǨͺһ繻շ 366 ѹ(͹Ҿѹ 29 ѹ) еͧǤԴФѹͧŢ ٴ ҵͧٵ ҧԵʵ 㹡äӹdzͧ 㹷йٵ÷ 㹡¹ ٵ աҹѹ·

DownloadǹŴ

͡Ẻ

Ҩзӧ¤ ҧ͹ 3 ҧ¡ѹ TextBox, CommandButton Label TextBox 繪ͧѺ͡ . ͧ÷Һ CommandButton 繻ԡӹdz Label ˹ҷʴšäӹdz ͹سӡäԡҡ ͡ҧ 麹 Form ѧٻ

ٻʴ ҧ͹ź Form
ٻʴ ҧ͹ź Form

ѧࡵҺ ͹ŵҧաʴŢͧФ͹ 鹢ͧ ͹ҧ 鹵͹Ҩ繡á˹ Property ͧ ͹ 仵ҵͧ س ӡäԡ͡ ͹ŷе С˹Ҩҡ˹ҵҧ Property ѧٻСͺ سӡ͡Ẻ С˹ property Ѻ͹ŷ ú

ٻʴ á˹ Property ҧѺ Label
ٻʴ á˹ Property ҧѺ Label

ҡٻҹ 繡á˹ Property Name Caption Ҩзӡõ駪ͧ ͹ Label lbDisplay (lb ˹ըش ͡ ͹繪ͧ͢͹ŷ Label) ҨзӡùӢͤʴ ͡ ¡˹Ңͧ Caption 繤ҧ (ӡź ͤ "Label1" ͡)

ٻʴ á˹ Property ҧѺ TextBox
ٻʴ á˹ Property ҧѺ TextBox

ѴҨ繡͡ TextBox зӡõ駪ͧ TextBox txtYear(txt Ӵҹ˹Ҫ ͡ TextBox ͧ) źͤ TextBox ʴ͡ ¡˹ Property Text 繤ҧ

ٻʴ á˹ Property ҧѺ CommandButton
ٻʴ á˹ Property ҧѺ CommandButton

ش¤͡͡ CommandButton С˹ cmdButton (cmd Ӵҹ˹Ҫ ͡ CommandButton ͧ) ҡ ӡá˹ͤʴ Captioin "Checking"

鴡÷ӧҹ

鹵͹ 繡ҧ öзӧҹçѵػʧ ͹ سеͧͧҾ͡ Դâ㹡кǹâͧ ͤسӡ Run 鹵͹Ѵ仨繡 ͹ . ͧ÷Һ ҡ 繡äԡ ӡõǨͺ

Ҩеͧӡ ǹͧ ԡͧ cmdButton ͤسͧèл͹鴴ѧ سӡôѺŤԡ cmdButton лҡ˹ҵҧ Code View зӡû͹鴵仹ŧ ѧٻ

ٻʴ ˹ҵҧ Code View
ٻʴ ˹ҵҧ Code View

ҡ鹷ӡû͹鴴ѧ仹ŧ ੾ǹͧ Sub cmdButton_Click() ҧ ҹҧ

Option Explicit

Private Sub cmdButton_Click()
    Dim nyear As Integer

    If txtYear.Text <> "" Then
        nyear = CInt(txtYear.Text)
    Else
        MsgBox "Please insert the number."
        Exit Sub
    End If

    If ((nyear Mod 4 = 0) And (nyear Mod 100 <> 0) Or (nyear Mod 400 = 0)) Then
        lbDisplay.Caption = "True"
    Else
        lbDisplay.Caption = "False"
    End If

End Sub


Private Sub Form_OKClick()
    App.End
End Sub

͸Ժ¡÷ӧҹ

աäԡ cmdButton ա¡ Sub cmdButton_Click() ӧҹ ҡûСȵ nyear Ẻ Integer (Ţ) 㹡纤һ ҡ鹨 IF ͵Ǩͺ 㹪ͧͧ txtYear բͤ ҡբͤ(繵Ţ) ӡŧҡ ͤ Ţ ѧ Cint ǹӤҷŧ 㹵 nyear ӡûС ͹ ҡբͤ зӡá˹ ʴͤ "Please insert the number." աá͡ Ţӹǹ

鹵͹ if ͵Ǩͺ͹ Ҩӹǹ ô 4 ŧ( mod ҡѺ 0 ͧ) ô 100 ŧ Ͷô 400 ŧ ҷçҧ͹ С˹ͤ True ʴҹҧ Caption ͧ lbDisplay (͹ŷ Label) 仵͹ ʴͤ False ᷹

ͺ Run

ö·ӡäԡ͡ Emulator ͧè run Pocket PC 2002 Emulation

ٻʴ ͡ Emulator ͨ run
ٻʴ ͡ Emulator ͨ run

ͷӡ͡ سöԡ ١ 躹 Toolbar F5 ͷӡ Run ѧҡ鹨ա¡ Emulator ҡբͤ׹ѹ update س͡ Yes ׹ѹ ŷҡ Run 繴ѧ˹ҵҧ ͡Ẻ سӡ÷ͺ÷ӧҹ »͹ Ţ . ͧõǨͺ Ǥԡ Checking ѧٻ

ٻʴ š Run  Emulator
ٻʴ š Run Emulator

 

BACK

µͨ Ѻͧ macbook pro 2016 (usb-c to HDMI)
µͨ Ѻͧ macbook pro 2016 (usb-c to HDMI) ´дѺ 4K
ŧ Mini DisplayPort to HDMI Adapter ŧ Mini DisplayPort to HDMI Adapter Ѻͧ macbook air/pro, mac mini
ŧ Mini DisplayPort to HDMI Adapter Ѻͧ macbook air/pro, mac mini
µٿѧ Ъ Ѻ iPhone 7  7 Plus
µٿѧ Ъ Ѻ iPhone 7 7 Plus
ŧҡ USB-C Type  USB 3.1 Ѻ MacBook
ŧҡ USB-C Type USB 3.1 Ѻ MacBook
䢤ǧѺͧ Macbook Air/Pro
䢤ǧ Ѻͧ Macbook Air/Pro (300ҷ)
HDMI  3 ͡  1
HDMI 3 ͡ 1 (350ҷ)
Ի͹¹
¹¹ͷ
¹¹͹´
¹¹
¹¹ վʾ
¹¹
¹ҹԹء
¹¹Թ⿹
¹¹Ϊ ʤ
9M Blog ͧ͡ ¹ͧ
ԡ ҾѺԭ
OrmSin.com: ˹ѧͧҹ--չ (country crafts)
ѵҤɳ
 
Tutorial
eVB Tutorial
ASP.NET Webmatrix Tutorial
J2ME Tutorial
C++  Tutorial
Java  Tutorial
PHP Tutorial
ASP Tutorial
 
ẺǨ
Freelance ѺѲ

Home - Article - Tutorial - Sourcecode - Dev Handbook - Search - WebBoard - Links - About Us

ʧǹԢԷ Ѵ͡ ӫ Ѵŧ ٻẺ Ѻ͹حҵѡɳѡ
Ţ¹ҳԪ硷͹ԡҡзǧҳԪ: 7100503002000
Copyright 2001 SourceCode.in.th