Cov txheej txheem:

Tsim Koj Thawj Txoj Haujlwm hauv Visual Basic: 7 Kauj Ruam
Tsim Koj Thawj Txoj Haujlwm hauv Visual Basic: 7 Kauj Ruam

Video: Tsim Koj Thawj Txoj Haujlwm hauv Visual Basic: 7 Kauj Ruam

Video: Tsim Koj Thawj Txoj Haujlwm hauv Visual Basic: 7 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Kaum ib hlis
Anonim
Tsim Koj Thawj Txoj Haujlwm hauv Visual Basic
Tsim Koj Thawj Txoj Haujlwm hauv Visual Basic

Cov lus qhia no yuav qhia koj yuav ua haujlwm li cas Microsoft Visual Basic 2005 Express Edition. Piv txwv uas koj yuav tsim hnub no yog tus saib duab yooj yim. Yog tias koj nyiam qhov kev qhia no thov thawb + khawm rau saum cov lus qhia Ua tsaug, Kuv xav tias kuv yuav zoo li ib nrab ntawm lwm cov ntawv qhia tawm thiab hais tias qhov no yog kuv thawj qhov kev qhia thiab thov tsis txhob ua phem. EDIT: Thaum koj ua tiav cov lus qhia no, txuas ntxiv kawm VB nrog kuv qhov Visual Basic thib ob Qhia: Tsim Txoj Haujlwm hauv Visual Basic: Web Browser

Kauj ruam 1: Rub Visual Basic

Rub tawm Visual Basic
Rub tawm Visual Basic

Koj tuaj yeem rub tawm qhov pom yooj yim 2008 los ntawm microsoft tab sis cov lus qhia no tshwj xeeb rau VB 2005 uas koj tuaj yeem rub tawm los ntawm cov ntaub ntawv pub dawb EDIT: Tam sim no nws tau pom zoo koj VB 2008, raws li kuv yuav siv nws rau txhua qhov kev qhia yav tom ntej. Thov nco ntsoov: koj tseem yuav tsum tau txuas nrog internet thaum lub sijhawm teeb tsa.

Kauj ruam 2: Tsim Koj Txoj Haujlwm

Tsim Koj Txoj Haujlwm
Tsim Koj Txoj Haujlwm

Nyem File-> New Project. Xaiv "Windows Application". Muab koj lub npe lub npe.

Kauj Ruam 3: Ntxiv Kev Tswj

Ntxiv Tswj
Ntxiv Tswj

Los ntawm cov cuab yeej lub thawv, rub lub thawv duab rau hauv koj daim ntawv, rub lub pob rau hauv koj daim ntawv thiab luag qhib cov ntawv sib tham qhib rau koj daim ntawv.

Kauj Ruam 4: Kho Cov Khoom Tswj

Kho kom raug tswj cov khoom
Kho kom raug tswj cov khoom

Tam sim no nws yog lub sijhawm los kho cov khoom ntawm cov tswj. Txhawm rau kho cov khoom, nyem rau ntawm qhov khoom thiab hloov qhov txiaj ntsig hauv cov khoom qhov rai. Form Properties

  • Text: Saib Duab
  • Daim Ntawv Cuam Tshuam Style: Txhim Kho Qhov Cuab Yeej

Lub thawv duab

Txheej Txheem Duab Tom Qab: Zoom

Khawm

Text: Xaiv Duab

Kauj ruam 5: Ntxiv Code

Ntxiv Code
Ntxiv Code

Nyem ob npaug rau ntawm lub pob thiab hloov tag nrho cov ntawv hauv lub qhov rai chaws nrog cov hauv qab no: Pib Code

Public Class Form1 Private pic As Bitmap Private Sub Button1_Click (ByVal sender As System. Object, ByVal e As System. EventArgs) Handles Button1. Click OpenFileDialog1. FileName = "Select File" OpenFileDialog1. ShowDialog () pic = Tshiab Bitmap (OpenFileDialog1. F.) PictureBox1. BackgroundImage = pic End SubEnd Class Txoj Cai Lij Choj Ua Dab Tsi CODE Ua Dab Tsi Pej Xeem Class1 - Txhais daim ntawv ua Pej Xeem Ntiag Tug Raws Li Bitmap - Txhais pic Raws li tus kheej bitmap Private Sub Button1_Click (ByVal sender As System. Object, ByVal e As System. EventArgs) Handles Button1. Click - Txhais Thaum Cov Txheej Txheem Yuav Tsum tshwm OpenFileDialog1. FileName = "Xaiv Cov Ntaub Ntawv" - Ua kom cov ntaub ntawv npe hauv OpenFileDialog hais Xaiv Xaiv Cov Ntaub Ntawv OpenFileDialog1. ShowDialog () - Qhia OpenFileDialog pic = Tshiab Bitmap (OpenFileDialog1. FileName) - Ntxiv tus nqi ntawm cov duab xaiv rau pic PictureBox1. BackgroundImage = pic - Hloov cov duab hauv ImageBox1 rau pic Xaus SubEnd Class

Kauj Ruam 6: Txuag thiab Xeem

Txuag thiab Xeem
Txuag thiab Xeem

Txuag koj qhov program (File-> Save All) thiab nyem lub pob ntsuab ua si ntawm lub toolbar txhawm rau debug koj qhov program. Yog tias txhua yam mus tau zoo ces koj yuav tsum muaj peev xwm siv qhov program. Qhov kev zov me nyuam kawg yog khaws cia hauv 'Kuv Cov Ntaub Ntawv/Visual Studio 2005/Projects/PROJECT NAME/PROJECT NAME/Bin/Debug/PROJECT NAME.exe' (Qhov PROJECT NAME yog lub npe ntawm qhov project)

Kauj Ruam 7: Kev Xav Thaum Kawg

Kev Xav Thaum Kawg
Kev Xav Thaum Kawg

Qhov ntawd yog nws! Zoo siab nrog rau kev tsim koj thawj qhov haujlwm hauv kev pom yooj yim. Nws tsis nyuaj li tam sim no - puas yog? Tam sim no koj tuaj yeem mus ua cov haujlwm nyuaj dua, lossis koj tuaj yeem hloov kho qhov no. Kuv tau ua qee qhov kev hloov kho rau kuv qhov program:

  • Kuv hloov xim keeb kwm yav dhau
  • Kuv ntxiv qee cov ntaub ntawv ntiag tug

Qhov tseeb - ntawm no yog qee cov ntawv ua tom tsev rau koj: saib yog koj tuaj yeem tau txais qhov program los hloov qhov loj me rau daim duab

HINT: Koj ua nws siv lub zog qhov rai

Hmoov zoo!

Pom zoo: