Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Help VB6

Visual Basic 4 / 5 / 6 form

  • Please log in to reply
1 reply to this topic

#1 Apprentice123

Apprentice123

    CC Devotee

  • Senior Member
  • PipPipPipPipPipPip
  • 457 posts

Posted 17 November 2010 - 04:56 PM

I would like to enter into a textbox, the main form, a number and click a button. When you click this button to open a new form with the amount of textBox corresponding to the number entered in the main form. Is it possible ?
  • 0

#2 mnamjad

mnamjad

    CC Lurker

  • Just Joined
  • Pip
  • 7 posts

Posted 22 November 2010 - 06:17 AM

Yes, you can do that. Its quite simple...

For example:
1) The name of your main form is (main_form) & name of textbox on this form is textbox1.
2) The name of your new form is (new_form) & name of textbox on this form is textbox2.

Write this code behind the button:

new_form.textbox2.text = main_form.textbox1.text
new_form.show

This code will solve your problem.

Edited by Roger, 22 November 2010 - 10:33 AM.
added code block

  • 0





Also tagged with one or more of these keywords: Visual Basic 4 / 5 / 6, form

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download