Click here to Skip to main content
15,887,862 members
Home / Discussions / C#
   

C#

 
QuestionCrystal Report Pin
Syed Shahid Hussain25-Mar-10 1:09
Syed Shahid Hussain25-Mar-10 1:09 
QuestionGet SQL Server 2005 Database Table Details Dynamically Pin
thanushkag25-Mar-10 0:30
thanushkag25-Mar-10 0:30 
AnswerRe: Get SQL Server 2005 Database Table Details Dynamically Pin
Mycroft Holmes25-Mar-10 1:04
professionalMycroft Holmes25-Mar-10 1:04 
AnswerRe: Get SQL Server 2005 Database Table Details Dynamically Pin
Ravi Bhavnani25-Mar-10 2:06
professionalRavi Bhavnani25-Mar-10 2:06 
QuestionResource File Pin
Syed Shahid Hussain25-Mar-10 0:29
Syed Shahid Hussain25-Mar-10 0:29 
AnswerRe: Resource File Pin
Tony Richards25-Mar-10 2:43
Tony Richards25-Mar-10 2:43 
GeneralRe: Resource File Pin
Syed Shahid Hussain25-Mar-10 2:48
Syed Shahid Hussain25-Mar-10 2:48 
AnswerRe: Resource File Pin
Bernhard Hiller25-Mar-10 3:18
Bernhard Hiller25-Mar-10 3:18 
I don't understand exactly what you mean. Is it that you want to have one single big resource file for all your forms instead of one file per form, so that you can re-use e.g. the translation of the OK and Cancel buttons in many places?
Well, it is possible. But then you must do a lot of the assignment of the localized text manually, something like
label1.Text = ResourceManager.GetString("Form1_label1_Text");
That can be automated, with automatically generated resource names. But if it is the translation which you want to re-use, that automatization won't help.
You could extend all text containing elements with an extra property holding the resource name (thus allowing you to re-use the resource), but that will also take a lot of manual work before. Then you could get to some
label1.Text = ResourceManager.GetString(label1.ResourceName);
which can be easily made more generic, with enumerating all components on a form etc.
GeneralRe: Resource File Pin
Syed Shahid Hussain25-Mar-10 4:09
Syed Shahid Hussain25-Mar-10 4:09 
QuestionSerialization Pin
vamsimohan2125-Mar-10 0:11
vamsimohan2125-Mar-10 0:11 
AnswerRe: Serialization Pin
Keith Barrow25-Mar-10 0:17
professionalKeith Barrow25-Mar-10 0:17 
GeneralRe: Serialization Pin
vamsimohan2125-Mar-10 0:29
vamsimohan2125-Mar-10 0:29 
GeneralRe: Serialization Pin
Keith Barrow25-Mar-10 1:01
professionalKeith Barrow25-Mar-10 1:01 
QuestionDynamically change Crystal Report Viewer source Pin
jamesc6924-Mar-10 23:13
jamesc6924-Mar-10 23:13 
AnswerRe: Dynamically change Crystal Report Viewer source Pin
Rajasekhar Reddy Adam24-Mar-10 23:39
Rajasekhar Reddy Adam24-Mar-10 23:39 
Questionaccessing C API from C# Pin
mavrick2324-Mar-10 21:22
mavrick2324-Mar-10 21:22 
AnswerRe: accessing C API from C# Pin
Calla24-Mar-10 21:45
Calla24-Mar-10 21:45 
AnswerRe: accessing C API from C# Pin
Richard MacCutchan24-Mar-10 22:54
mveRichard MacCutchan24-Mar-10 22:54 
GeneralRe: accessing C API from C# Pin
mavrick2324-Mar-10 23:57
mavrick2324-Mar-10 23:57 
AnswerRe: accessing C API from C# Pin
mavrick2324-Mar-10 23:12
mavrick2324-Mar-10 23:12 
GeneralRe: accessing C API from C# Pin
Richard MacCutchan25-Mar-10 2:14
mveRichard MacCutchan25-Mar-10 2:14 
GeneralRe: accessing C API from C# Pin
Luc Pattyn25-Mar-10 3:00
sitebuilderLuc Pattyn25-Mar-10 3:00 
Questionhow to empty textbox in a groupbox Pin
crisjala24-Mar-10 16:22
crisjala24-Mar-10 16:22 
AnswerRe: how to empty textbox in a groupbox Pin
Not Active24-Mar-10 16:23
mentorNot Active24-Mar-10 16:23 
AnswerRe: how to empty textbox in a groupbox Pin
Khaniya24-Mar-10 18:33
professionalKhaniya24-Mar-10 18:33 

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.