Results 1 to 5 of 5

Thread: Is is possible

  1. #1
    Guest

    Question

    Hi all

    Is it possible to display a textbox and a combo box using code If yes then How



  2. #2
    Lively Member
    Join Date
    Aug 2000
    Location
    Trondheim, Norway
    Posts
    65
    This is how you create labels...

    Start a new project, add a button to your form, add a label, name thi label to "L", copy it and paste it, answer yes to create a control array, then delete the new copy.

    Then simply paste this code:

    Dim t As Integer
    Dim le As Integer

    Private Sub Command1_Click()
    Dim M As Integer
    Dim M2 As Integer

    t = t + 300
    If t > Me.Height - 700 Then
    t = 120
    le = le + 960
    End If

    M = L.Count
    M2 = M + 1
    Load L(M2)
    L(M2).Top = t
    L(M2).Left = le
    L(M2).Caption = "TEST " & M2
    L(M2).Visible = True

    End Sub

    Private Sub Form_Load()
    t = 120
    le = 120

    End Sub

  3. #3
    Guest

    thanks

    Hi
    and thanks is it possible to satisfy a contion then display a dbcombo box and a text box attached to a database.
    for eg.if there are two text boxes where there are certain amount has to be entered if textbox1 = textbox2 then ok otherwise the set of textbox,dbcombo and a text box has to be displayed to accept data


  4. #4
    Guest

    M=L.Count gives error

    M=L.count gives an error 424 which says it requires a object

  5. #5
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    You have an array of Labels?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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