Click here to Skip to main content
15,891,423 members
Home / Discussions / C#
   

C#

 
GeneralRe: XMLTextWriter Pin
Mark Smithson12-May-03 9:23
Mark Smithson12-May-03 9:23 
GeneralRe: XMLTextWriter Pin
Kant12-May-03 9:38
Kant12-May-03 9:38 
GeneralCapture Winlogon.exe Events Pin
DFU2311-May-03 13:58
DFU2311-May-03 13:58 
GeneralRe: Capture Winlogon.exe Events Pin
cdehelean13-May-03 2:09
cdehelean13-May-03 2:09 
Generalmdichild forms Pin
Anonymous11-May-03 6:34
Anonymous11-May-03 6:34 
GeneralRe: mdichild forms Pin
Jon Newman11-May-03 7:44
Jon Newman11-May-03 7:44 
GeneralRegions/Search/String Table Pin
Kant11-May-03 6:11
Kant11-May-03 6:11 
GeneralRe: Regions/Search/String Table Pin
James T. Johnson11-May-03 7:10
James T. Johnson11-May-03 7:10 
Kant wrote:
How to expand all the closed regions with one single click?

Its not just one click, but you can use the menu items under Edit/Outlining.

You can also use the Ctrl+M, Ctrl+L sequence to toggle all expansions (as found under said submenu).

Kant wrote:
there any option in search which tells to search inside closed region?

Check the "Search Hidden Text" checkbox

Kant wrote:
How to store all the strings (ex: error messages) in a string table (STRINGTABLE), just like the way in VC++?

I think the closest .NET analogy of this is .resx files. I assume you want to do this for localizing purposes. If that is the case you can use the localization features of VS.NET to help with the creation. Unfortunately that feature is only available for Forms, but you should be able to replicate the behavior yourself for other classes once you see what VS.NET does.

First you need to set the Localizable property of the form to true, then you can set the Language property to the language you are setting the strings. You can then change all of the .Text properties to that languages text. Then change the Language property again, and change all of the .Text properties again. Repeat for all of the languages you are going to support.

Now that you've done that if you look at the generated code in InitializeComponent you'll see the method calls you need to make to pull a localized string.

Click the "Show All Files" button in the Project Explorer toolbar (if you haven't already done so) then expand the form's tree node so you can see the files under it. You should have: [form].resx, [form].[lang1].resx, [form].[lang2].resx, etc. These files contain the localized text for the application.

You should be able to figure out how to expand this for your own purposes. It is important to note that when you do this you will get several satelite assemblies contained in subdirectories of your output location. These (as their filename implies) contains the localized resources for that language/culture.

HTH,

James

"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation

GeneralRe: Regions/Search/String Table Pin
Kant11-May-03 7:51
Kant11-May-03 7:51 
GeneralRe: Regions/Search/String Table Pin
James T. Johnson11-May-03 8:24
James T. Johnson11-May-03 8:24 
GeneralRe: Regions/Search/String Table Pin
Kant11-May-03 14:02
Kant11-May-03 14:02 
General[Serializable()] Pin
Anonymous11-May-03 4:32
Anonymous11-May-03 4:32 
GeneralRe: [Serializable()] Pin
leppie11-May-03 4:56
leppie11-May-03 4:56 
GeneralRe: [Serializable()] Pin
Anonymous11-May-03 5:28
Anonymous11-May-03 5:28 
QuestionDataView override? Pin
Rocky Moore10-May-03 23:40
Rocky Moore10-May-03 23:40 
AnswerRe: DataView override? Pin
leppie11-May-03 4:36
leppie11-May-03 4:36 
GeneralRe: DataView override? Pin
Rocky Moore12-May-03 0:29
Rocky Moore12-May-03 0:29 
GeneralBest way to declare a protected set prop for read-only prop Pin
J. Dunlap10-May-03 19:10
J. Dunlap10-May-03 19:10 
GeneralRe: Best way to declare a protected set prop for read-only prop Pin
leppie11-May-03 4:28
leppie11-May-03 4:28 
GeneralRe: Best way to declare a protected set prop for read-only prop Pin
J. Dunlap11-May-03 8:27
J. Dunlap11-May-03 8:27 
GeneralWhere can I find the C# language API. Pin
KBeutler10-May-03 11:30
KBeutler10-May-03 11:30 
GeneralRe: Where can I find the C# language API. Pin
David Stone10-May-03 12:38
sitebuilderDavid Stone10-May-03 12:38 
GeneralHard disk number Pin
BoudewijnEctor10-May-03 9:33
BoudewijnEctor10-May-03 9:33 
GeneralRe: Hard disk number Pin
jhaga11-May-03 6:07
professionaljhaga11-May-03 6:07 
GeneralRe: Hard disk number Pin
BoudewijnEctor12-May-03 10:35
BoudewijnEctor12-May-03 10:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.