473,385 Members | 1,312 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,385 software developers and data experts.

C#.net windows based application..

hi

In C#.net windows based application..

I want to set common properties like color, font size, height, width, font type of all the label, button and textbox controls in C#.net forms .......

How can i do it ......
Please provide me code for that ......

i have tried that code , but it's not working ........

Expand|Select|Wrap|Line Numbers
  1. private void ResetAllControlsBackColor(Control control)
  2. {
  3.    control.BackColor = SystemColors.Control;
  4.    control.ForeColor = SystemColors.ControlText;
  5.    if(control.HasChildren)
  6.    {
  7.       // Recursively call this method for each child control.
  8.       foreach(Control childControl in control.Controls)
  9.       {
  10.          ResetAllControlsBackColor(childControl);
  11.       }
  12.    }
  13. }
Sep 6 '13 #1
0 1107

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: balu | last post by:
Hi, I am developing a standalone or windows based application in vb.net which simulates a website. I would like to simulate this web form from my vb.net application: <form action...
1
by: GMHK | last post by:
Hi All, Can anyone can guide how to add the license to an windows based applications An application is developed using JAVA. The type of License, that we are looking is, providing a trial...
3
by: TaeHo Yoo | last post by:
The file I would like to access in located in C drive and the application which reads the file is located in E drive. When it trys to read the file, it generates an error Error: Request for the...
1
by: TaeHo Yoo | last post by:
How to convert a dataset to excel spreadsheet in windows based application?? Thanks a lot in advance. *** Sent via Devdex http://www.devdex.com *** Don't just participate in...
0
by: shanthsp2002 | last post by:
:) Hi Friends, I am doing setup and deployment project for our windows application, it needs a custom diloguebox in which user will select option wether he want to install...
1
by: Gurunadh | last post by:
Hi friends, we have developed a windows desktop application in vb.net 2005 with MS-Access as backend ,our problem is we have to display data from a datagridview to a crystal report,we have...
5
by: AishaKhalfan | last post by:
Hi all, I am doing a Library Management System by using VB2005. Net. I’m facing a problem which is deleting record from grid view. The application is Windows based. I have delete button and...
11
by: AishaKhalfan | last post by:
Hi all, I have to populate combo box that retrieve data from database in windows based application. I have two tables which are type and CD. Type has type ID and Category. CD has type ID as...
1
by: anuragshrivastava64 | last post by:
Hi All, I am using a web based application in which i need a particular windows based application at a given time when the user wants it. But i am not able to link them. Plz give any solution
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.