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.

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.

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")

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 :

Public Shared value As Integer

this assignment value from NumericUpDown1 to value :

value = NumericUpDown1.Value

this code to call this variable in other form:

Label1.Text = Form1.value

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.