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

C#

 
QuestionHow can i make a tabpage unvisible in tabcontrol? Pin
Xytme17-Jul-03 23:48
Xytme17-Jul-03 23:48 
AnswerRe: How can i make a tabpage unvisible in tabcontrol? Pin
A.Wegierski18-Jul-03 2:03
A.Wegierski18-Jul-03 2:03 
QuestionFillPolygon problem? Pin
r917-Jul-03 22:58
r917-Jul-03 22:58 
GeneralInitializing a color poperty in c# Pin
mrpink17-Jul-03 22:40
mrpink17-Jul-03 22:40 
GeneralRe: Initializing a color poperty in c# Pin
Mazdak18-Jul-03 2:25
Mazdak18-Jul-03 2:25 
GeneralRe: Initializing a color poperty in c# Pin
mrpink18-Jul-03 5:41
mrpink18-Jul-03 5:41 
GeneralRe: Initializing a color poperty in c# Pin
J. Dunlap18-Jul-03 8:55
J. Dunlap18-Jul-03 8:55 
GeneralLoop though XML Pin
eggie517-Jul-03 19:40
eggie517-Jul-03 19:40 
GeneralRe: Loop though XML Pin
John Fisher18-Jul-03 4:32
John Fisher18-Jul-03 4:32 
GeneralRe: Loop though XML Pin
Ista21-Jul-03 17:19
Ista21-Jul-03 17:19 
GeneralRe: Loop though XML Pin
eggie521-Jul-03 17:23
eggie521-Jul-03 17:23 
GeneralRe: Loop though XML Pin
Ista22-Jul-03 3:15
Ista22-Jul-03 3:15 
GeneralMemory Management Pin
Gaurika Wijeratne17-Jul-03 19:39
Gaurika Wijeratne17-Jul-03 19:39 
GeneralRe: Memory Management Pin
apferreira18-Jul-03 5:10
apferreira18-Jul-03 5:10 
GeneralRe: Memory Management Pin
Gaurika Wijeratne18-Jul-03 7:22
Gaurika Wijeratne18-Jul-03 7:22 
GeneralRe: Memory Management Pin
apferreira19-Jul-03 2:55
apferreira19-Jul-03 2:55 
Generalsystray question Pin
KETUINHA17-Jul-03 18:01
KETUINHA17-Jul-03 18:01 
GeneralRe: systray question Pin
Mazdak18-Jul-03 2:19
Mazdak18-Jul-03 2:19 
QuestionHow to Create a new Access database using C#? Pin
Xytme17-Jul-03 17:41
Xytme17-Jul-03 17:41 
AnswerRe: How to Create a new Access database using C#? Pin
Kastro17-Jul-03 18:10
Kastro17-Jul-03 18:10 
AnswerRe: How to Create a new Access database using C#? Pin
Mazdak18-Jul-03 2:23
Mazdak18-Jul-03 2:23 
Generalbackground is not transparent !! Pin
KETUINHA17-Jul-03 17:04
KETUINHA17-Jul-03 17:04 
GeneralSML GHETTO STEEZ Pin
eggie517-Jul-03 14:40
eggie517-Jul-03 14:40 
Here's my ghetto xml (byteFile1.xml)...

<?xml version="1.0"?>
     <Bytes>
          <byte1>
               <one>00</one>
               <two>01</two>
               <three>02</three>
               <four>03</four>
               <five>04</five>
               <six>05</six>
               <seven>06</seven>
               <eight>07</eight>
          </byte1>
          <byte2>
               <one>21</one>
               <two>15</two>
               <three>12</three>
               <four>11</four>
               <five>05</five>
               <six>01</six>
               <seven>08</seven>
               <eight>04</eight>
          </byte2>
          <byte3>
               <one>02</one>
               <two>00</two>
               <three>10</three>
               <four>18</four>
               <five>81</five>
               <six>05</six>
               <seven>06</seven>
               <eight>07</eight>
          </byte3>
     </Bytes> 



now here's the code I process it with...

int nOutNum;

XmlDocument xmlDoc=new XmlDataDocument();
XmlNode bit;
string NUM;
xmlDoc.Load("byteFile1.xml");
bit=xmlDoc.SelectSingleNode("//Bytes/byte1");
NUM=bit.InnerText;

this.labelCell.Text=NUM;


nOutNum=short.Parse(NUM, NumberStyles.AllowHexSpecifier);
NTPort.Outport(nAddress, (short)nOutNum);


Now, what I want to do is go though each node i.e. (one, two, three.... eight) one at a time, and on each one do the above code.

but make ....

bit=xmlDoc.SelectSingleNode("//Bytes/byte1");


unique to the specific node were on in the loop...

like if were on the one in bold...

<byte1>
     <one>00</one>
     <big><two>01</two></big>
     <three>02</three>
     <four>03</four>
     <five>04</five>
     <six>05</six>
     <seven>06</seven>
     <eight>07</eight>
</byte1>


then change it to...

bit=xmlDoc.SelectSingleNode("//Bytes/byte1/two");


so, it sounds reall confusing... I think all I need is a for loop or somthing... but the changing of the SelectSingleNode thing ruins me...

PLEASE HELP@!@!#@$KBlush | :O





/\ |_ E X E GG
GeneralRe: SML GHETTO STEEZ Pin
eggie517-Jul-03 19:05
eggie517-Jul-03 19:05 
GeneralRe: SML GHETTO STEEZ Pin
eggie518-Jul-03 10:23
eggie518-Jul-03 10:23 

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.