Click here to Skip to main content
15,885,835 members
Home / Discussions / C#
   

C#

 
GeneralRe: TreeNode checking Pin
Member 18598625-Jan-03 11:11
Member 18598625-Jan-03 11:11 
GeneralRe: TreeNode checking Pin
leppie25-Jan-03 11:35
leppie25-Jan-03 11:35 
GeneralRe: TreeNode checking Pin
Jeff J25-Jan-03 11:32
Jeff J25-Jan-03 11:32 
GeneralRe: TreeNode checking Pin
Member 18598625-Jan-03 11:51
Member 18598625-Jan-03 11:51 
Generalreflection Pin
jtmtv1825-Jan-03 6:21
jtmtv1825-Jan-03 6:21 
GeneralRe: reflection Pin
leppie25-Jan-03 6:43
leppie25-Jan-03 6:43 
Generalleppie read this...(or anyone) Pin
25-Jan-03 10:23
suss25-Jan-03 10:23 
GeneralRe: leppie read this...(or anyone) Pin
leppie25-Jan-03 22:34
leppie25-Jan-03 22:34 
OK some more info from MSDN ms-help://MS.VSCC/MS.MSDNVS/cptutorials/html/image_resources.htm[^], sorry I cant help anymore without actually learning how to use resources.

Image Resources

To create image resources, perform the following three steps:

Create an XML-based .resx file containing the named resources.
Convert the .resx file into a .resources file using Resgen.exe.
Create a DLL, and embed the .resources file using the Assembly Generation Tool (AL).
Note For more information on AL, see Appendix B: Resource Tools.
As with strings, if the image resources are localized into nondefault cultures, the process must be done for each culture — which must also be specified when using AL — as well as for a default, language-neutral culture.

The first step — creating the .resx file — is more complicated with image resources. There are several methods for doing this, but ultimately the resource must be converted into ASCII text using BASE64 encoding and embedded into an XML-formatted .resx file.

ResXGen — A handy tool for converting resources is the ResXGen utility included with this tutorial. This small console application takes three arguments: the name of the image file, the .resx output file, and the name to give the resource. The following command line is from the Build.bat file for the Graphic sample application:

ResXGen /i:un.jpg /o:Images.resx /n:flag
A more complete description of this tool, including a discussion of the source code, can be found in Appendix B: Resource Tools.

ResEditor — Another tool for converting resources is the ResEditor utility included with this tutorial. This Windows Forms application allows to you add and delete resources — including bitmaps, icons, and strings — that are located in .resources files. By using a property browser, ResEditor allows you to explore the properties of graphic resources and directly edit string resources.

To illustrate how to use this tool (which might not be completely obvious), you can now walk through the process of creating a common .resources file that combines the German resources from the WorldCalc and Graphic samples discussed earlier. Start ResEditor, and open MyStrings.de.resources from the \de subdirectory of the WorldCalc sample directory for either Visual Basic or C#. Note that the string name/value pairs are listed in the property grid. In the Add group of controls near the bottom of ResEditor, type flag, and click the Add button (which will no longer be disabled). A new node is added to the tree of controls and properties that is on the left. Select the new flag node, and click the ellipsis button (…) that is just to the right. Navigate to the \flags subdirectory of the WorldDocs sample, and specify the de-DE.jpg image file. Note that the properties for the Flag bitmap are now shown as a thumbnail image — in this case, of the German flag. You should now see something like the following illustration.

Resource Editor (RESEDITOR) (from the Appendix B link)
The Resource Editor (ResEditor) sample application is also a useful tool. It provides a graphical interface that allows you to construct .resources files containing bitmaps, icons, and strings.

It appears RESEDITOR is a sample app included with the SDK samples. You might be required to build it 1st.

ANyways hope this helps Smile | :)

PS: JTJ had an article/post a few months back if I remember correctly, not sure if that would help.


Who is this miscrosoft, and what devilish plans have they for us?
GeneralRe: leppie read this...(or anyone) Pin
James T. Johnson26-Jan-03 6:11
James T. Johnson26-Jan-03 6:11 
GeneralRe: leppie read this...(or anyone) Pin
Paul Riley26-Jan-03 5:29
Paul Riley26-Jan-03 5:29 
GeneralDataRow problem Pin
Mr BallyDaHob25-Jan-03 5:54
Mr BallyDaHob25-Jan-03 5:54 
GeneralRe: DataRow problem Pin
leppie25-Jan-03 6:38
leppie25-Jan-03 6:38 
QuestionIntegrating Flex with C#??? Pin
anjana25-Jan-03 5:34
anjana25-Jan-03 5:34 
AnswerRe: Integrating Flex with C#??? Pin
leppie25-Jan-03 6:34
leppie25-Jan-03 6:34 
QuestionWhat to write? Pin
Skylinemailer25-Jan-03 3:59
Skylinemailer25-Jan-03 3:59 
AnswerRe: What to write? Pin
leppie25-Jan-03 4:33
leppie25-Jan-03 4:33 
AnswerRe: What to write? Pin
Vagif Abilov25-Jan-03 6:16
professionalVagif Abilov25-Jan-03 6:16 
GeneralDateTimePicker Control Pin
Mr BallyDaHob25-Jan-03 3:33
Mr BallyDaHob25-Jan-03 3:33 
GeneralRe: DateTimePicker Control Pin
leppie25-Jan-03 4:43
leppie25-Jan-03 4:43 
GeneralRe: DateTimePicker Control Pin
Mr BallyDaHob25-Jan-03 5:39
Mr BallyDaHob25-Jan-03 5:39 
QuestionC# RegEx text parsing??? Pin
Kevin S.24-Jan-03 10:03
Kevin S.24-Jan-03 10:03 
QuestionTcpListener Hangs at 4096 bytes? Pin
Daniel Bright24-Jan-03 9:01
Daniel Bright24-Jan-03 9:01 
AnswerRe: TcpListener Hangs at 4096 bytes? Pin
Heath Stewart24-Jan-03 10:14
protectorHeath Stewart24-Jan-03 10:14 
AnswerRe: TcpListener Hangs at 4096 bytes? Pin
Stephane Rodriguez.24-Jan-03 10:18
Stephane Rodriguez.24-Jan-03 10:18 
QuestionHow do I draw on a bitmap? Pin
MikeBeard24-Jan-03 8:48
MikeBeard24-Jan-03 8:48 

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.