Jump to content

utilizing a form more than once

- - - - -

  • Please log in to reply
No replies to this topic

#1
cesarg

cesarg

    Newbie

  • Members
  • Pip
  • 9 posts
im creating a project for my electronic circuit class. i need to add up the different values of resistors. for this i want to use a form that captures the value of each resistor. how do i make the form appear more than once to be able to store the value of the resistor in an array to be to add them or handle them later.
i tried this
int x= Int32.Parse(textBox1.Text);// storing the amount of resistores that will be captured
int []rSerie=new int[x];// in this array i would like to store the values of each resistor
int resitance;
Resistor r=new Resistor();
do
{
for (int i = 0; i < textBox1.Text.Length; i++)
{
r.show();

}
}
while (x > 0);


in the form called resistor i have a textbox where the value will be entered.
when i execute the project the only thing that occurs is that form 2(Resistor) opens up and the project ends
if somebody could help out and lend a hand it would be greatly apreciated.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users