YOU DO IT 4 create an named YouDolt 4 and save it in the vB

YOU DO IT 4! create an named YouDolt 4 and save it in the vB 2015Chapo6 folder Add the labels and a button to the form. The button\'s Click event procedure should display in number of integers from in one the the sum of those integers the other label. Code the procedure labels and and then start and using the For...Next statement. Save the solutv test the application. Close the solution.

Solution

Open Visual Studio 2015 and create new project. In page/tab WindowsFormsApplicationForm1 create 1 button named as button1. Similarly create two labels named as label1 and label2.

Double clock on button1. It will open the click event in page/tab WindowsFormsApplicationForm1(.cs).

write the below code

Using System;

Using System.Windows.Forms;

namespace WindowsApplication1

{

public partial class Form1: Form

{

public Form1()

{

InitializeComponents();

}

private void button1_click(object Sender, EventArgs e)

{

int cnt = 0;

int sums = 0;

label1.text = \"14, 15, 16, 17, 18, 19, 20, 21, 22, 23\");

for(cnt = 14; cnt <= 23; cnt++)

{

sums = sums + cnt;

label2.text = sums;

}

}

}

}

 YOU DO IT 4! create an named YouDolt 4 and save it in the vB 2015Chapo6 folder Add the labels and a button to the form. The button\'s Click event procedure sho

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site