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
billypostman
NA
18
0
Using UserControl textBox value in Form
Nov 10 2009 8:18 AM
Hi,
I have a calculator.cs (it is an userControl). I'm using it in the file iskonto.cs named which is windows form. When the calculator's textbox changed, i want to use the textbox value in iskonto.cs... Please help me with this issue. Here is my code;
calculator.cs
iskonto indirim = new iskonto();
private void txtResult_TextChanged(object sender, EventArgs e)
{
indirim.iskontoGoster(txtResult.Text.ToString());
}
iskonto.cs
public void iskontoGoster(string textBoxValue)
{
if (textBoxValue != null || textBoxValue != "")
{
button1.Text = "% " + textBoxValue + " iskonto yap. Sonuç = ";
button1.BackColor = System.Drawing.Color.Navy;
button1.ForeColor = System.Drawing.Color.Yellow;
}
}
Reply
Answers (
17
)
how can i run this code in a thread
C Sharp MonthCalendar Control