Click here to Skip to main content
15,886,422 members
Home / Discussions / C#
   

C#

 
GeneralRe: TreeNode checking Pin
leppie25-Jan-03 10:52
leppie25-Jan-03 10:52 
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 
ResourceReader
taken from .Net Sdk Documentation
i found out how too use the ResourceReader/writer but it doesnt cover the problem
<br />
using System;<br />
using System.Resources;<br />
<br />
public class SampleClass<br />
{<br />
    public static void Main()<br />
    {<br />
        // Create a resource writer.<br />
        IResourceWriter rw = new ResourceWriter("MyResources.resources");<br />
        // Add resources to the file.<br />
        rw.AddResource(@"C:\myPrograms\NetText\icons\icon_10.ico", "Stop");<br />
        rw.AddResource(@"C:\myPrograms\NetText\icons\Icon_Question.ico", "Question");<br />
        rw.AddResource(@"C:\myPrograms\NetText\icons\Icon_14.ico", "Folder");<br />
        // Close the ResourceWriter.<br />
        rw.Close();<br />
    }<br />
}<br />
/*using System;<br />
using System.Resources;<br />
using System.Collections;<br />
 <br />
public class ReadResources {<br />
<br />
   public static void Main(string[] args) {<br />
<br />
      // Opens a resource reader and gets an enumerator from it.<br />
      IResourceReader reader = new ResourceReader("myResources.resources");<br />
      IDictionaryEnumerator en = reader.GetEnumerator();<br />
      <br />
      // Goes through the enumerator, printing out the key and value pairs.<br />
      while (en.MoveNext()) {<br />
         Console.WriteLine();<br />
         Console.WriteLine("Name: {0}", en.Key);//this will display raw directory<br />
         Console.WriteLine("Value: {0}", en.Value);//this will display Name (such as \"Stop\", or \"Folder\")<br />
      }<br />
      reader.Close();<br />
   }<br />
}*/<br />

i noticed that resource reader only makes a resource file points too a perticular directory / file which doesnt help me...cause im trying too keep my icons hidden so if someone deletes them..the program wont keep throwing exceptions.. and ideas leppie ?

email me at : res1s5yd@verizon.net if u need more info or anything leppie.

jesse M
GeneralRe: leppie read this...(or anyone) Pin
leppie25-Jan-03 22:34
leppie25-Jan-03 22:34 
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 

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.