Another VB problem

Results 1 to 3 of 3

Thread: Another VB problem

  1. #1
    Join Date
    Dec 1969

    Default Another VB problem

    I hate these little problems!!!<BR><BR>All i&#039;m trying to do is add a control to a form dynamically, from a module.<BR><BR>My form is called frmLipper<BR><BR> Dim obj As TextBox<BR> frmLipper.add obj<BR><BR>But that doesn&#039;t work (even thought the documentation says it should).<BR><BR>any ideas?<BR><BR>I&#039;m getting the intellisense so i haven&#039;t made any stupid mistakes (as far as i know).<BR><BR><BR>Cheers<BR><BR><BR>cp

  2. #2
    Join Date
    Dec 1969

    Default RE: Another VB problem

    Did you set the obj&#039;s visible property to true???? before adding it to form.

  3. #3
    Join Date
    Dec 1969

    Default use ...

    &nbsp;<BR>Private Sub Command1_Click()<BR> Controls.Add "VB.TextBox", "Hello"<BR> Controls("Hello").Visible = True<BR>End Sub<BR><BR><BR>jon

Posting Permissions

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