Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When a form is loading, the first item in "domain up down" control should be highlighted.

When I click on particular item in "domain up down control" that should be highlighted.

Highlighted in the sense that backcolor=blue and fontcolor=white.
Posted
Updated 28-Oct-10 22:34pm
v2
Comments
OriginalGriff 29-Oct-10 4:06am    
What have you tried? Where are you having difficulty? What is a "domain up down" control?
Edit your question and give us a little information!
krishna kishore58 29-Oct-10 5:12am    
It's DomainUpDown control..I tried with
domainShandyday.SelectedIndex = 0;

With this code i'm able to display 1st item in that control.
Moreover i should hightlight it,like backcolor=blue and textcolor=white
I tried to do with
domainClosingday.BackColor = System.Drawing.SystemColors.Highlight;
but when the form is loading the functionality back color and textcolor is aplying to all the records.
But i need to apply it only to the record on which i click and when the form is loading it should apply the functionality to first item..

1 solution

Excellent, I hope it is going well for you.

Or perhaps you have a problem? Is it not working?

Maybe you should post some code and tell us specifically what the problem is so that we have some idea about trying to help.
 
Share this answer
 
Comments
krishna kishore58 29-Oct-10 5:12am    
It's DomainUpDown control..I tried with
domainShandyday.SelectedIndex = 0;

With this code i'm able to display 1st item in that control.
Moreover i should hightlight it,like backcolor=blue and textcolor=white
I tried to do with
domainClosingday.BackColor = System.Drawing.SystemColors.Highlight;
but when the form is loading the functionality back color and textcolor is aplying to all the records.
But i need to apply it only to the record on which i click and when the form is loading it should apply the functionality to first item..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900