مشخصه ی Appearance یک label در VB2008

Majid 3D

Member
کسی میدونه مشخصه ی Appearance برای یک label در vb2008 کجاست ؟ مگه میشه نداشته باشه، من که هرچی دنبالش گشتم پیداش نکردم ... البته من با مشخصه ی Transparent لیبل در این قسمت کار دارم و یک سوال دیگه که واقعا عذر میخوام که توی این تاپیک میپرسم ولی توی vb2008 هرچی گشتم کنترل shape پیدا نکردم ... کجاست ؟
 

i_lover3000

Member
Appearance Of Controls

سلام


تغییر دادن Appearance

Code changes for changing the appearance of controls
The following example demonstrates setting properties to change the appearance of controls at run time.

کد:
' Visual Basic 6.0
' Give a TextBox a flat look with no border.
Text1.Appearance = 0
Text1.BorderStyle = 0
' Give a TextBox a three-dimensional appearance.
Text1.Appearance = 1
Text1.BorderStyle = 1
' Give a CommandButton a flat look
Command1.Appearance = 0
' Give a ListBox a flat look
List1.Appearance = 0

کد:
' Visual Basic 2005
' Give a TextBox a flat look with a single border.
TextBox1.BorderStyle = BorderStyle.None
' Give a TextBox a three-dimensional appearance.
TextBox2.BorderStyle = BorderStyle.Fixed3D
' Give a Button a flat look
Button1.FlatStyle = FlatStyle.Flat
' Give a ListBox a flat look
ListBox1.BorderStyle = BorderStyle.FixedSingle


و برای استفاده از شیپ هم به مثال زیر توجه کنید : (البته اول یه دکمه به فرمتون اضافه کنید)

کد:
[LEFT]    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim myBrush As New System.Drawing.SolidBrush(System.Drawing.Color.Blue)
        Dim formGraphics As System.Drawing.Graphics
        formGraphics = Me.CreateGraphics()
        formGraphics.FillEllipse(myBrush, New Rectangle(40, 40, 200, 200))

    End Sub[/LEFT]
 
آخرین ویرایش:

جدیدترین ارسال ها

بالا