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
Kristine Legzdiņa
NA
21
2.3k
combobox value pass as a parameter
Apr 19 2018 4:44 AM
user select first combobox value, then select second combobox value. Then when he precc Button i need to pass these double type values to method as a parameters.
im new in c# and this is part of home work. I need to create delegate.
part of code looks like:
i create delegate.
public delegate double operation(double x, double y);
i create class with one simple method.
public class Program
{
internal static double Addition(double a, double b)
{
return a + b;
}
}
then i create object
operation obj = new operation(Program.Addition);
textBox1.Text = (obj( comboxox1Value, comboxox2Value));
for now it seems to me, i will never become a programmer...
Reply
Answers (
9
)
How to set connectionstring value from .xml file in asp.net
upload image by button and save it in project folder .