6
Answers

print square of asterisks on the rich text box..

andy4442093

andy4442093

20y
7.1k
1
Hey , I am beginner at c#.. and was wondering as how to print square of asterix's when i enter say length fo side in the text box in the forms window .. I want the square of Asterix's of the side inputted by the user in the text box to be displayed in the rich text box which i have constructed in the windows form.. the way i am trying to do is static void Main() { Application.Run(new Form1()); } private void button1_Click(object sender, System.EventArgs e) { int side = Int32.Parse(textBox1.Text); int squareside= Square (side); richTextBox1.Text = "int side"+ squareside ; } public int Square (int side) { return side*side; } it does print outs the square of the number inputted in the text box to the rich text box but not the asterix's .. Please help!!! Cheers!! Andy
Answers (6)
0
Ben Chris
35 5.5k 1.1m 8y
try role base accessibility in claim base authentication as follow i.e. http://bit.ly/2pl3vlz
Accepted
0
Blumonde
NA 65 5k 8y
Thank you for the info, AK. I will check it out soon.