Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialogs as resource files

Status
Not open for further replies.

harpreets77

Programmer
Nov 11, 2002
7
DE
Hi,

In C# while creating a windows form, code is added to the .cs file which details out the creation procedure for controls .

Now through some setting is it possible to have the form as a resource file or an XML file. Which still details out the entire creation procedure.

Regards,
Harpreet
 
Sort-of.

In .NET, forms are classes, and their layout and appearance is set through code, not a .res file. So you could define an assembly to be a "resource" for your application, and in fact that's how Microsoft does it -- each form that is localized for a particular language is placed in a directory with the name of the locale (en-us, fr-ca, etc). The framework then knows to load that form based on the current thread/processes (I forget which) locale setting.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top