Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (anonymous):

private void button4_Click(object sender, EventArgs e) { frmBatterySizing DailyEnergyDemand = new frmBatterySizing(); DailyEnergyDemand.DailyEnergyDemand.Text = String.Format("{0:0.##}", Convert.ToDouble(label78.Text) / 1000); //data 1 DailyEnergyDemand.Show(); frmBatterySizing MaximumPowerDemand = new frmBatterySizing(); MaximumPowerDemand.MaximumPowerDemand.Text = String.Format("{0:0.##}", Convert.ToDouble(label79.Text) / 1000); // data 2 MaximumPowerDemand.Show(); } When button4 is clicked & i use the codings above the data1 and data 2 are displayed on each individually onto each separate forms.( that means 2 frmBatterySizing forms each with only one data) I want to display both datas (data 1 & data 2) on the same form (frmBatterySizing)simultaneously. how do i combine the codings? how to do modify?

OpenStudy (anonymous):

cn u help me?

OpenStudy (anonymous):

You're calling "new frmBatterySizing()" twice. So two (different) forms will be created. Try writing your program with just a single form.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Jalissa21: What does adenoma mea?
53 minutes ago 2 Replies 0 Medals
Twilightt: How Can We Prevent Gun Violence in American Schools?
53 minutes ago 4 Replies 1 Medal
Twaylor: possible?
2 days ago 5 Replies 0 Medals
Arriyanalol: hekp
4 days ago 33 Replies 0 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!