Results 1 to 5 of 5

Thread: [Resolved]dont know whats wrong with my code (creating new lable)

Threaded View

  1. #1

    Thread Starter
    Addicted Member Incures's Avatar
    Join Date
    May 2006
    Location
    south afrika
    Posts
    205

    Resolved [Resolved]dont know whats wrong with my code (creating new lable)

    how do i creat new lable?
    i tryed same as new picturebox but its dident worked
    here is my code >>
    the error is "user define type not defined"


    Code:
    Private Sub Command1_Click() 
    Dim Lable1 As Lable 
    Set Lable1 = Me.Controls.Add("VB.Lable", "newLable") 
    
    With Lable1 
             .Left = 0 
             .Top = 0 
             .Width = 250 
             .Height = 250 
             .Visible = True 
             .BackColor = &H80000003 
    End With 
    End Sub
    Last edited by Incures; Aug 13th, 2007 at 11:05 PM.
    vb Code:
    1. If(this post = helped you) then
    2. You.rate = me
    3. End if


    **Fazi's idea =]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width