Yaratish uchun ham foydalaniladi. So‘nggi yillarda kompyuter va uning dasturiy ta‘minotiga bo‘lgan talab va qiziqishlar ortib bormoqda. Bu esa o‘z navbatida dasturchidan katta izlanish va mahoratni talab qiladi


Private Sub Form1_Paint(sender As Object, pe As PaintEventArgs) Handles


Download 295.63 Kb.
bet11/15
Sana08.01.2022
Hajmi295.63 Kb.
#237053
1   ...   7   8   9   10   11   12   13   14   15
Bog'liq
kurs ishi

Private Sub Form1_Paint(sender As Object, pe As PaintEventArgs) Handles _

MyBase.Paint

' Declares the Graphics object and sets it to the Graphics object

' supplied in the PaintEventArgs.

Dim g As Graphics = pe.Graphics

' Insert code to paint the form here.

End Sub private void Form1_Paint(object sender,

System.Windows.Forms.PaintEventArgs pe)

{



Graphics g = pe.Graphics;



} private: void Form1_Paint(System::Object ^ sender, System::Windows::Forms::PaintEventArgs ^ pe)

{

Graphics ^ g = pe->Graphics;

}


CreateGraphics usuli Ushbu boshqaruv yoki shaklning chizilgan yuzasini aks ettiruvchi Grafika ob'ektiga havolani olish uchun siz boshqarish yoki shaklning CreateGraphics usulidan ham foydalanishingiz mumkin. CreateGraphics usuli yordamida Grafika ob'ekti yaratish uchun Siz grafikani ko'rsatmoqchi bo'lgan shakl yoki boshqaruvning CreateGraphics usuliga qo'ng'iroq qiling.


Download 295.63 Kb.

Do'stlaringiz bilan baham:
1   ...   7   8   9   10   11   12   13   14   15




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling