Solved

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

Posted on 2007-12-05
5
979 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

863 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