PDA

View Full Version : vb.net



farhadsh63
دوشنبه 17 اردیبهشت 1386, 14:21 عصر
چطور می تونم یک label را با زدن یک button بزرگنمایی کنم لطفا در نوشتن cod راهنمایی کنید؟

maroot
دوشنبه 17 اردیبهشت 1386, 23:19 عصر
سلام
اگه منظورت از بزرگنمایی بزرگ کردن فونته, این راهشه


PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim currentSize AsSingle
currentSize = Label1.Font.SizeInPoints
currentSize += 1
Label1.Font = New Font(Label1.Font.Name, currentSize, _
Label1.Font.Style)
EndSub