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
Kanhialal kk
NA
234
338.7k
how to set background color of a windows form from a variable?
May 28 2011 6:28 AM
Hi,,
I want to set windows form background color through variable like bellow..
adpt = new SqlDataAdapter("select bgcolor from colorschem",conn);
dt = new DataTable();
adpt.Fill(dt);
if (dt.Rows.Count > 0)
{
string a;
foreach (DataRow row in dt.Rows)
{
a = (row[0].ToString());
}
this.backcolor=color.red;
//here i want to assign the variable value just like a variable...
so how it is possible...?
}
any body help...
Reply
Answers (
10
)
Problem in Desktop Applicatin Form
How do I find the word in the file?