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
B M
NA
1
2.7k
Simple question: button click to call additional method
Sep 26 2010 2:09 PM
A starter story here: I want a button click to call my method (located in the same class). I created button using IDE, created a button1_click event and a Method (DrawString) to be called. However, the method is not called- I feel really stupid, but I can't find the solutions...
public
void
button1_Click(
object
sender,
EventArgs
e)
{
Form1
f1 =
new
Form1
();
f1.DrawString();
}
All the rest is as generated by the IDE.
The button click works fine, but it does not call DrawString () method.
Reply
Answers (
2
)
how to store in a database Access but using a datagridview?
Help on Enumerations