?
Solved

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

Posted on 2007-12-05
5
Medium Priority
?
1,041 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 540 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Suggested Courses
Course of the Month17 days, 13 hours left to enroll

831 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