Results 1 to 5 of 5

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

  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 =]

  2. #2
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: dont know whats wrong with my code (creating new lable)

    umm... label is spelled lable not lable
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  3. #3

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

    Re: dont know whats wrong with my code (creating new lable)

    Quote Originally Posted by Bobalandi
    umm... label is spelled lable not lable
    omg im so embarrassed , english is not my mother language.
    sorry for the bother =\
    vb Code:
    1. If(this post = helped you) then
    2. You.rate = me
    3. End if


    **Fazi's idea =]

  4. #4
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: dont know whats wrong with my code (creating new lable)

    ok.. was that the problem?
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  5. #5

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

    Re: dont know whats wrong with my code (creating new lable)

    yes =\
    thank you dude
    Rated
    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