TRANSLATE
English French German Spain Italian Dutch Russian Brazil Japanese Korean Arabic Chinese Simplified

Kamis, 02 Desember 2010

Pengantar dan Garis Kontrol Shape vb.net 2008

Pengantar dan Garis Kontrol Shape
Visual Basic power pack controls allow us to draw lines, rectangle and oval shapes on your Windows Forms application. Dasar kontrol Power Pack Visual memungkinkan kita untuk menggambar garis, dan oval bentuk persegi panjang pada aplikasi Windows Forms Anda. These controls accept many of the graphics methods of system. Kontrol ini menerima banyak metode grafis sistem. Drawing namespace. Menggambar namespace. This enables you to draw lines and shapes in a single step without having to create graphics objects, pens, and brushes. Hal ini memungkinkan Anda untuk menggambar garis dan bentuk dalam satu langkah tanpa harus membuat objek grafis, pena, dan kuas.
We can able to draw horizontal, vertical, and diagonal lines, rectangles, squares, ovals, circles, and rectangles and squares with the help of power pack Kita bisa dapat menggambar, vertikal, dan diagonal garis horizontal, persegi panjang, kotak, oval, lingkaran, dan empat persegi panjang dan bujur sangkar dengan bantuan power pack   graphical controls. grafis kontrol. Now we discuss about and Shape Controls Sekarang kita membahas tentang dan Bentuk Kontrol
Introduction to the Line and Shape Controls Pengantar dan Garis Kontrol Shape
The Visual Basic Power Packs Line and Shape controls are a set of three graphical controls that enable you to draw lines and shapes on forms and containers. Visual Basic Paket Power Line dan kontrol Shape adalah seperangkat tiga kontrol grafis yang memungkinkan Anda untuk menggambar garis dan bentuk pada bentuk dan kemasan.
  LineShape LineShape   control -is used to draw horizontal, vertical, and diagonal lines. kontrol digunakan untuk menggambar, vertikal, dan diagonal garis horisontal.
OvalShape OvalShape   control is used to draw circles and ovals. kontrol digunakan untuk menggambar lingkaran dan oval.
  RactangelShape control is used to draw rectangles and squares. RactangelShape kontrol digunakan untuk menggambar empat persegi panjang dan kotak.

 

Shape Bentuk    
              LineShape LineShape
 
SimpleShape SimpleShape                        
                                      OvalShape OvalShape        
                                      
RactangleShape RactangleShape      
                                  
  •   Drag the Tarik   LineShape control from the Toolbox drag to a form or container control. LineShape kontrol dari Toolbox drag ke bentuk atau kontrol kontainer.
  •    Drag the sizing and move handles to size and position the line. Tarik sizing dan bergerak menangani dengan ukuran dan posisi baris.
                                            -- ---Or----- - --- Atau -----

        Imports Microsoft.VisualBasic.PowerPacks Impor Microsoft.VisualBasic.PowerPacks

        Dim ShapeCon As New ShapeContainer Dim ShapeCon Sebagai ShapeContainer Baru
        Dim testLine As New LineShape Dim testLine As New LineShape
        ShapeCon.Parent = Me ShapeCon.Parent = Me
        testLine.Parent = ShapeCon testLine.Parent = ShapeCon
         testLine.StartPoint = New System.Drawing.Point(10, 10) testLine.StartPoint = Baru System.Drawing.Point (10, 10)
        testLine.EndPoint = New System.Drawing.Point(300, 300) testLine.EndPoint = Baru System.Drawing.Point (300, 300)
Note: When any  Line or Shape control is added to a form or container, ShapeContainer object is created. Catatan: Bila setiap Line atau Shape kontrol ditambahkan ke bentuk atau wadah, ShapeContainer objek dibuat.

Tidak ada komentar: