Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBS script  to map network printers to all users. 3 19
PowerShell and cisco ios 3 46
Table style position to the left 8 26
Table header must be on top 2 31
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 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