TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
andy4442093
NA
8
0
print square of asterisks on the rich text box..
Oct 6 2004 5:41 PM
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
Reply
Answers (
6
)
Socket Exception
generate random numbers