473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to apply a different color then the system color to the main f

Thanks, Udi Raz
Nov 17 '05 #1
7 1337
Although you can do it programatically,
go to the Properties window
there you will see BackColor
click on it
you will get color options

"udir" <ud**@discussions.microsoft.com> wrote in message
news:B6**********************************@microsof t.com...
Thanks, Udi Raz

Nov 17 '05 #2
Thanks but I don't want to the change the windows color just because I want
One application to look different.

How do I do it using c# ?

thanks again, Udi Raz

"Zach" wrote:
Although you can do it programatically,
go to the Properties window
there you will see BackColor
click on it
you will get color options

"udir" <ud**@discussions.microsoft.com> wrote in message
news:B6**********************************@microsof t.com...
Thanks, Udi Raz


Nov 17 '05 #3
Technically you could do it by changing the back color
of the form in question into "public" and then changing
that color from elsewhere in the system, like you would
change any other value (assuming you are doing that
directly - i.e., without a get / set operation, which some
would say is bad practice).

However, my experience is that if you try to change the color
of a form from elsewhere in the system Visual C#.Net gets into
a mess.

I tried to do it once, because I wanted to give the user of
the system the option of changing screen colors etc. to his
personal liking. But Visual Studio started protesting.

If you find a way out let me know.

"udir" <ud**@discussions.microsoft.com> wrote in message
news:63**********************************@microsof t.com...
Thanks but I don't want to the change the windows color just because I want One application to look different.

How do I do it using c# ?

thanks again, Udi Raz

"Zach" wrote:
Although you can do it programatically,
go to the Properties window
there you will see BackColor
click on it
you will get color options

"udir" <ud**@discussions.microsoft.com> wrote in message
news:B6**********************************@microsof t.com...
Thanks, Udi Raz


Nov 17 '05 #4
Hi Zach,

before permiting other to change the color of the form I tired to change it
within the code as following : this.BackColor = Color.Chocolate; ( on
InitializeComponent() )

It didn't change anything !!!!!

I think that microsoft didn't ment to let us do it, otherwise the form
backColor was a field on the properties view.

I think we need to override onDrawItem event.

I'll let you know......

Bye, Udi

"Zach" wrote:
Technically you could do it by changing the back color
of the form in question into "public" and then changing
that color from elsewhere in the system, like you would
change any other value (assuming you are doing that
directly - i.e., without a get / set operation, which some
would say is bad practice).

However, my experience is that if you try to change the color
of a form from elsewhere in the system Visual C#.Net gets into
a mess.

I tried to do it once, because I wanted to give the user of
the system the option of changing screen colors etc. to his
personal liking. But Visual Studio started protesting.

If you find a way out let me know.

"udir" <ud**@discussions.microsoft.com> wrote in message
news:63**********************************@microsof t.com...
Thanks but I don't want to the change the windows color just because I

want
One application to look different.

How do I do it using c# ?

thanks again, Udi Raz

"Zach" wrote:
Although you can do it programatically,
go to the Properties window
there you will see BackColor
click on it
you will get color options

"udir" <ud**@discussions.microsoft.com> wrote in message
news:B6**********************************@microsof t.com...
> Thanks, Udi Raz


Nov 17 '05 #5
Hi Udir,

***
(First remark)
It didn't change anything !!!!!

Yes it does;
either stick it in the constructor,
or stick it in Form_Load(...)

this.BackColor.Chocolate;

***
(Second remark)
// If you have a Form1 and a Form2, then put in
Form1_Load(object sender, System.EventArgs e)
{
Form2 F2 = new Form2( )
F2.BackColor = Color.Chocolate;
F2.Show( );
}
//Then bingo.
***

Cheers,
Zach,
le******************@pearltree.nl


Nov 17 '05 #6
Hi Zach,

I know what my problem is. The problem is that the subject of this form is
too short and you could see the end of my question :-)

I would like to change the color of the main form menu and toolbar !!! not
the main form window.

Now... do you have anything to me ???

b.t.w.

where are you from ?

Bye, Udi
"Zach" wrote:
Hi Udir,

***
(First remark)
It didn't change anything !!!!!

Yes it does;
either stick it in the constructor,
or stick it in Form_Load(...)

this.BackColor.Chocolate;

***
(Second remark)
// If you have a Form1 and a Form2, then put in
Form1_Load(object sender, System.EventArgs e)
{
Form2 F2 = new Form2( )
F2.BackColor = Color.Chocolate;
F2.Show( );
}
//Then bingo.
***

Cheers,
Zach,
le******************@pearltree.nl


Nov 17 '05 #7
> I would like to change the color of the main form menu and toolbar !!! not
the main form window.
Never tried doing that, so, sorry, no ideas.
where are you from ?


1/2 UK 1/2 NL :)

bye,
Zach.
Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: bjam | last post by:
Help! The apply-templates function is not currently allowing me to select a specific template... eventhough I tried putting a select statement, it does not seem to work??? Can someone help show...
7
by: Troy Heber | last post by:
Can anyone tell me how to force an immediate apply of system based registry changes. I have an application written in C# that updates the registry. However I’m forced to logout and log back in for...
7
by: A_StClaire_ | last post by:
hi, I'm working on a project spanning five .cpp files. each file was used to define a class. the first has my Main and an #include for each of the other files. problem is my third file...
5
by: Drew Yallop | last post by:
I read an XML file with a stream reader in VB.Net. When I look at the stream reader output in debug mode (by passing cursor over the stream reader object)the format is a perfect replica of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.