Cov txheej txheem:

Yuav Ua Li Cas Webbrowser hauv " Visual Basic ": 11 Kauj Ruam
Yuav Ua Li Cas Webbrowser hauv " Visual Basic ": 11 Kauj Ruam

Video: Yuav Ua Li Cas Webbrowser hauv " Visual Basic ": 11 Kauj Ruam

Video: Yuav Ua Li Cas Webbrowser hauv
Video: Как исправить задержку мыши и заикания в Windows 10 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Webbrowser hauv
Yuav Ua Li Cas Webbrowser hauv

Ua ntej tshaj plaws koj yuav tsum rub Microsoft Visual Basic. Ib daim ntawv ntawm Visual Basic zoo, tab sis nco ntsoov, qee qhov ntawm lawv tau them nyiaj. Kuv siv cov dawb version Visual Basic "Express Edition" tab sis zoo li kuv tau hais, txhua daim ntawv yuav ua tau zoo. https://www.microsoft.com/Express/VB/ << Yog tias koj tsis muaj VB, qhov no yog qhov txuas rau qhov dawb version <<

Kauj Ruam 1: Pib Txoj Haujlwm

Pib Txoj Haujlwm
Pib Txoj Haujlwm

Thaum koj ua tiav rub tawm qhov program koj yuav tsum pib qhov program, Qhib VB thiab qhib tshiab "Windows Forms Application" file

Kauj ruam 2: Ua Nplooj Ntawv

Ua Nplooj Ntawv
Ua Nplooj Ntawv

Daim ntawv yuav zoo li me me thaum koj qhib nws, tab sis koj yuav tsum nthuav nws mus rau qhov uas nws tsis nthuav dav ntxiv lawm. Ua ib nplooj ntawv tag nrho.

Kauj Ruam 3: Nyem "Webbrowser" hauv "Common Tools"

Nyem "Cov Cuab Yeej Siv" thiab nyem "Webbrowser"

Kauj Ruam 4: Ua Nplooj Ntawv

Qhov no yog yam ua tsis yooj yim sua. Tom qab koj nyem "Webbrowser" tsuas yog nyem rau ntawm nplooj ntawv. Tom qab ntawd mus rau lub ces kaum sab xis saum toj kawg nkaus thiab yuav tsum muaj lub me me "Ua Ntej" saib lub pob. Thiab nyem. Tom qab ntawv nyem rau ntawm "Undock from Parent Container" thiab tom qab ntawd rub nws mus rau qhov loj koj xav kom lub vev xaib tso tawm.

Kauj Ruam 5: Ua kom nws loj npaum li koj xav tau

Tom qab ntawd Luag nws rau qhov loj uas koj xav kom Lub Vev Xaib tso tawm. Tawm ntawm qhov chaw zoo rau qhov URL lub thawv thiab khawm rov qab thiab khoom.

Kauj Ruam 6: Ntxiv Cov Khawm/duab

Ntxiv Khawm/duab
Ntxiv Khawm/duab

Tsuas yog ntxiv cov duab uas yuav ua haujlwm zoo li cov nyees khawm zoo li kuv tau ua, tsuas yog nyem rau ntawm cov cuab yeej ib txwm muaj thiab nrhiav "Daim Duab Duab" tom qab ntawd nyem lub pob ua si saib yam khoom thiab tso daim duab koj xav tau rau khawm. Remember: cov nyees khawm kuv tso tsuas yog piv txwv !! koj tuaj yeem ua koj tus kheej yog tias koj xav tau.

Kauj Ruam 7: Ntxig Cov Ntawv Ntawv

Ntxig rau Cov Ntawv Ntawv
Ntxig rau Cov Ntawv Ntawv

Hauv cov cuab yeej ib txwm koj tuaj yeem nyem lub npov ntawv thiab muab tso rau hauv lub thawv URL thiab yog tias koj nyiam, lub thawv tshawb nrhiav. (Koj tsuas xav tau ib qho tab sis)

Kauj Ruam 8: Tus Kheej (Yeem Tau)

Personalize (Tsis teb los tau)
Personalize (Tsis teb los tau)

Koj tuaj yeem mus rau "Properties" thiab kho nws tus kheej

Kauj ruam 9: Coding

Nov yog cov lej (Koj tsis tas yuav siv tag nrho cov lej no) Koj ntxiv cov lej los ntawm ob-nias rau ntawm daim duab sib xws thiab ntaus qhov no hauv: mus khawmWebBrowser1. Navigate (TextBox1. Text) rov qab khawmWebBrowser1. GoBack () mus rau tom ntej khawmWebBrowser1. GoForward () khawm tshiabWebBrowser1. Refresh () tsev khawmWebBrowser1. GoHome ()

Kauj ruam 10: Tshaj tawm

Nyem "Tsim" nyob rau sab saum toj ntawm lub vijtsam thiab nyem "Tshaj Tawm" Ua tiav txhim kho nws mus rau qhov twg uas koj xav tau zoo li koj lub desktop lossis txawm li cas los xij. Thaum koj ua tiav qhib nws thiab xyuas kom tseeb tias nws ua haujlwm.

Kauj Ruam 11: Koj Ua Tiav lawm

Tam sim no txaus siab rau nthwv web ntawm koj tus kheej Webbrowser!

Pom zoo: