PDA

View Full Version : vb.net



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

maroot
سه شنبه 18 اردیبهشت 1386, 00: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