Solved

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

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 …
This article discusses how to create an extensible mechanism for linked drop downs.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

828 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