Solved

change caption of label and button for common dialog: color dialog, file dialog... by C#

Posted on 2007-12-05
5
972 Views
Last Modified: 2012-06-21
Hi, I need make a customize with some common dialog like: color dialog, file dialog, font dialog... I want to change some caption of labels and buttons int these dialogs  by unicode text. I had a source code and example application do this, but it was written by C++ so I wonder that how can I do this by C#. Can I do this by C# ?
0
Comment
Question by:cheeta_2410
  • 2
  • 2
5 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 20417790
For buttons assign the button.value the new String.
For labels assign the label.innerHTML the new String.
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 20417796
And filde dialog caption of the "browse" button cannot be changed. It is controled by browser and cannot be modified by script.
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20417814
well, it is not a trivial task, common dialog are not derived from System.Windows.Form, so you cannot use regular .net methods and properties to handle them.
Them are derived from CommonDialog class, derived from Component, so you will need some interop to gain access to dialog control. Another problem is that the dialog is not created until you call ShowDialog() method, so you cannot alter any control before this.
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 180 total points
ID: 20417821
0
 

Author Comment

by:cheeta_2410
ID: 20424714
I'm still investigating this, but It seems what I want, thanks for your help
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now