Cov txheej txheem:

Kuv yuav tsim ib daim ntawv thov Windows Form yooj yim hauv C# li cas?
Kuv yuav tsim ib daim ntawv thov Windows Form yooj yim hauv C# li cas?

Video: Kuv yuav tsim ib daim ntawv thov Windows Form yooj yim hauv C# li cas?

Video: Kuv yuav tsim ib daim ntawv thov Windows Form yooj yim hauv C# li cas?
Video: poj laib hauv koj siab. ntxawm tsab 2024, Kaum ib hlis
Anonim

VIDEO

Raws li, Windows daim ntawv thov hauv C# yog dab tsi?

Taw qhia rau C# Windows Forms Applications . Windows Forms yog Graphical User Interface (GUI) chav tsev qiv ntawv uas tau muab ntim rau hauv. Net Framework. Nws lub hom phiaj tseem ceeb yog muab qhov yooj yim interface los tsim cov daim ntawv thov rau desktop, ntsiav tshuaj, PCs. Nws tseem hu ua WinForms.

Tsis tas li ntawd, kuv yuav tsim daim ntawv thov Windows Form hauv Visual Studio 2019 li cas? Qhib Visual Studio 2019

  1. Ntawm lub qhov rais pib, xaiv Tsim ib qhov project tshiab.
  2. Ntawm Tsim ib qhov project tshiab, sau lossis ntaus ntawv Windows hauv lub thawv tshawb. Tom ntej no, xaiv Desktop los ntawm cov npe Project hom.
  3. Nyob rau hauv Configure koj qhov project tshiab qhov rais, ntaus los yog nkag mus rau PictureViewer nyob rau hauv lub Project name box. Tom qab ntawd, xaiv Tsim.

Tsuas yog li ntawd, kuv yuav ua li cas thiaj tsim tau ib daim ntawv thov Windows yooj yim?

Txhawm rau tsim Windows desktop project hauv Visual Studio 2017

  1. Ntawm cov ntawv qhia zaub mov, xaiv Tshiab thiab tom qab ntawd xaiv Project.
  2. Hauv New Project dialog box, nyob rau sab laug pane, nthuav Nruab> Visual C ++, tom qab ntawd xaiv Windows Desktop.
  3. Hauv Windows Desktop Project dialog, nyob rau hauv daim ntawv thov hom, xaiv Windows application (.exe).

Puas yog Winforms tuag?

Ua tsaug rau cov khoom siv hluav taws xob, cov lej yooj yim, rub yooj yim, thiab xaim tsim interface, … Daim ntawv yeej tau siv los tsim ntau daim ntawv thov. Vim nws lub hnub nyoog siab (yug xyoo 2003), WinForm tau tshaj tawm tuag los ntawm Microsoft hauv 2014. Txawm li cas los xij, Win Form tseem muaj sia nyob thiab zoo.

Pom zoo: