On button clicked create label in form7? It is possible in visual basic 6.0?

Discussion in 'Visual Basic ( VB )' started by MudiW, Nov 10, 2009.

  1. MudiW

    MudiW New Member

    Joined:
    Nov 10, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello, I want to create a command that when the button is clicked creates a lable down the last label in form7. It's possible? If yes, how

    Thanks
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Why do you think it would not be possible ?
     
  3. dennyphilip

    dennyphilip New Member

    Joined:
    Oct 18, 2009
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    bengaluru
    yes it is possible ...
    In which language do u want it to be done??
     
  4. Cseek

    Cseek New Member

    Joined:
    Dec 1, 2009
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    train driver
    Location:
    hubli / karnataka
    Home Page:
    http://www.gmail.com
    with vb6
    use object.control.add method

    dim lbl_x as control
    set lbl_x = frm_x.controls.add("vb.label","lbl_10")

    try something like this
     
  5. ManzZup

    ManzZup New Member

    Joined:
    May 9, 2009
    Messages:
    278
    Likes Received:
    43
    Trophy Points:
    0
    Occupation:
    Production Manager:Software @ ZONTEK
    Location:
    Sri Lanka
    Home Page:
    http://zontek.zzl.org
    not tat hard

    dim lblNew as new label
    lbl.text = "your text"
    form7.controls.add(lbl)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice