Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
events
solomon mwika
10y
865
1
Reply
I have a method
public void mybutton_click(object sender ,eventArgs e){
textblock.text=1;
}
public String mymethod(){
if(textlock.text==1){
return "mixture ";
}
else {
return "fixed";
}
}
problem is when i try to return the values from mymethod to a timer event I get the error
Not all code paths return a value .
how do i resolve so as to return a value from mymethod
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
passing values to one form to another form
ReadAllBytes Method of the File Class PROBLEM