Vb.net Help!!!!!

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2008
Posts: 4
Reputation: jimmer12 is an unknown quantity at this point 
Solved Threads: 0
jimmer12 jimmer12 is offline Offline
Newbie Poster

Vb.net Help!!!!!

 
0
  #1
Jan 8th, 2008
hi
i have a numericupdown box on my first form and in the next form i want the number selected in the numericupdown box to produced that number of text boxs in the next form.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Vb.net Help!!!!!

 
0
  #2
Jan 8th, 2008
u mean that value from the numericupdown will read in next from?
i suggest to use public shared variable to accomodate the value from numericupdown.then u can call the variable in other form.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 291
Reputation: ericstenson is an unknown quantity at this point 
Solved Threads: 29
Team Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Vb.net Help!!!!!

 
0
  #3
Jan 8th, 2008
is it a web application or a regular program?

if it is a regular program:

dim whatever as integer
whatever = form1.dropdownlist1.selectedvalue

if it is a web application, pass the value

on the first form:

Context.Items.Add("VAL", dropdownlist1.selectedvalue)
Server.Transfer("~/form2.aspx", True)

on the second form

dim whatever as integer
whatever = Context.Items("VAL")
--
"Dummy."
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Vb.net Help!!!!!

 
0
  #4
Jan 8th, 2008
you cannot call controls directly cause friends status of controls.even if you change the modifiers to public. so i suggest to use public shared variable. you can access this variable form other form...
this declaration of the variable :
  1. Public Shared value As Integer
this assignment value from NumericUpDown1 to value :
  1. value = NumericUpDown1.Value
this code to call this variable in other form:
  1. Label1.Text = Form1.value
Last edited by Jx_Man; Jan 8th, 2008 at 9:48 pm.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 4
Reputation: anansiva is an unknown quantity at this point 
Solved Threads: 1
anansiva anansiva is offline Offline
Newbie Poster

Re: Vb.net Help!!!!!

 
0
  #5
Jan 9th, 2008
Originally Posted by jimmer12 View Post
hi
i have a numericupdown box on my first form and in the next form i want the number selected in the numericupdown box to produced that number of text boxs in the next form.
ans;
if it s windows application,use below code in form2
text box.text=form1.numericupdown.value
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 13
Reputation: bector is an unknown quantity at this point 
Solved Threads: 2
bector bector is offline Offline
Newbie Poster

Re: Vb.net Help!!!!!

 
0
  #6
Jan 23rd, 2008
you can do this as.......

on form2 load

textbox1.text=form1.textBox1.text



just try this i think you can solve your problem easily

for any kind of web related information you can visit
http://webdesigningcompany.net
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC