473,659 Members | 2,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C#.net windows based application..

1 New Member
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 1117

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

Similar topics

1
1969
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 ="cgi-images/accept_upload.pl" method = POST ENCTYPE="multipart/form-data"> <input type = text name = uname>
1
1215
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 version of one month time. Thanks in advance
3
1800
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 permission of type System.Security.Permissions.FileIOPermission, mscorlib, Version=1.0.5000.0, Cu lture=neutral, PublicKeyToken=b77a5c561934e089 failed. How to read the file?
1
1916
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 USENET...get rewarded for it!
0
1030
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 database or not. if he selects the installdatabase option then programm should install DB with application . can any body help me in this expecting good help thanku all
1
2420
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 written the code to display in crystal reports it is working in the system in which we developed but when the setup is installed in another computer it is displaying database login screen asking for login id and password,can any one know what is the...
5
1380
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 on this button I would like to delete the record that user choice. Kindly, can somebody help me one this. I will appreciate any help.
11
2645
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 foreign key. When I will add a new CD, the user interface for user will show combo box to choose the category from combo box and the selected value should be saved as type ID. First, I did a quarry in type dataset that will do search by type ID. ...
1
1497
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
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8539
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.