Register and join over 40,000 other developers!
Recent Topics
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
-
Job Gig PHP Form Needed
PJohnson - Apr 18 2019 03:55 AM
-
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
-
How do I set a breakpoint in an attached process in visual studio
xarzu - Apr 04 2019 11:47 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

1 reply to this topic
#1
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 ?
#2
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:
This code will solve your problem.
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
Also tagged with one or more of these keywords: Visual Basic 4 / 5 / 6, form
General Forums →
General Programming →
Specifying PHP file path while creating an HTML formStarted by gvvishwanath, 30 Dec 2015 ![]() |
|
![]() |
||
Language Forums →
HTML, CSS and Javascript →
Jquery Validation in Partial View Form Isn't TriggeringStarted by googaplex, 01 Jul 2015 ![]() |
|
![]() |
||
Language Forums →
HTML, CSS and Javascript →
how to deal with the forms indtified with idStarted by scseguanshui06, 20 Jul 2014 ![]() |
|
![]() |
||
Language Forums →
PHP →
what script do I run on a form?Started by kxx4, 12 May 2014 ![]() |
|
![]() |
||
Language Forums →
Visual Basic →
Send multipart form data. (Send strings and a file)Started by LegacyDash, 21 Feb 2014 ![]() |
|
![]() |
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download