Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
GeneralCom marshalling Pin
gharrison4-Nov-02 1:12
gharrison4-Nov-02 1:12 
GeneralRe: Com marshalling Pin
Stephane Rodriguez.4-Nov-02 5:49
Stephane Rodriguez.4-Nov-02 5:49 
GeneralProblem in XmlSerialization Pin
Mazdak4-Nov-02 0:02
Mazdak4-Nov-02 0:02 
GeneralSome XML sample needed Pin
Mazdak3-Nov-02 20:43
Mazdak3-Nov-02 20:43 
GeneralRe: Some XML sample needed Pin
Paul Watson3-Nov-02 21:19
sitebuilderPaul Watson3-Nov-02 21:19 
GeneralRe: Some XML sample needed Pin
Mazdak3-Nov-02 21:35
Mazdak3-Nov-02 21:35 
Generalwebrequest download speed Pin
Anonymous3-Nov-02 18:42
Anonymous3-Nov-02 18:42 
GeneralRe: webrequest download speed Pin
Daniel Turini3-Nov-02 20:56
Daniel Turini3-Nov-02 20:56 
GeneralRe: webrequest download speed Pin
Stephane Rodriguez.3-Nov-02 20:52
Stephane Rodriguez.3-Nov-02 20:52 
GeneralRe: webrequest download speed Pin
Anonymous4-Nov-02 6:02
Anonymous4-Nov-02 6:02 
GeneralRe: webrequest download speed Pin
Stephane Rodriguez.4-Nov-02 6:14
Stephane Rodriguez.4-Nov-02 6:14 
GeneralRe: webrequest download speed Pin
Anonymous4-Nov-02 8:43
Anonymous4-Nov-02 8:43 
GeneralGetting Bitmap from WebBrowser2 Pin
Gluber3-Nov-02 10:53
Gluber3-Nov-02 10:53 
GeneralRe: Getting Bitmap from WebBrowser2 Pin
John Fisher3-Nov-02 11:18
John Fisher3-Nov-02 11:18 
GeneralBest Video Control is... Pin
antoine@orchus-tech3-Nov-02 8:36
antoine@orchus-tech3-Nov-02 8:36 
GeneralRe: Best Video Control is... Pin
Stephane Rodriguez.3-Nov-02 9:05
Stephane Rodriguez.3-Nov-02 9:05 
GeneralRe: Best Video Control is... Pin
James T. Johnson3-Nov-02 9:18
James T. Johnson3-Nov-02 9:18 
GeneralRe: Best Video Control is... Pin
Stephane Rodriguez.3-Nov-02 9:35
Stephane Rodriguez.3-Nov-02 9:35 
GeneralXML Dataset and Removing Rows... Pin
hammackj2-Nov-02 18:08
hammackj2-Nov-02 18:08 
I can not seem to get a record/row to delete from my XML file, my code for removing is this.

	<br />
private void button5_Click(object sender, System.EventArgs e)<br />
		{<br />
			//remove code<br />
			try<br />
			{<br />
				row = lstAccounts.SelectedIndex;<br />
<br />
				lstAccounts.Items.RemoveAt(lstAccounts.SelectedIndex);<br />
				<br />
				ds.Tables[0].Rows[row].Delete();								<br />
				ds.GetChanges();<br />
				ds.Tables[0].Rows[row].AcceptChanges();<br />
				//--row;<br />
				<br />
			}<br />
			<br />
			catch (Exception p)<br />
			{<br />
				MessageBox.Show(p.Message);<br />
			}<br />
		}<br />

I am trying to remove this code from a Complex type XML file. for some reason the brackets are removed from the code =\

<br />
 <Account><br />
    <UserName>Please enter your name.</UserName><br />
    <UserEmail>Please enter your E-mail.</UserEmail><br />
    <LogonName>Please enter your E-mail Account name.</LogonName><br />
    <Password>Please enter your E-mail Password</Password><br />
    <AccountName>New Account...</AccountName><br />
    <Incomming>Please enter your POP3 server address.</Incomming><br />
    <Outgoing>Please Enter your STMP server address.</Outgoing><br />
    <IncommingPort>110</IncommingPort><br />
  </Account>



Sometimes i get the error, there is no row at position 0 and sometimes i do not get it. Any help would be nice, ive spent a while reading some books and the msdn but i cannot figure out what i am doing wrong.


thanks
xarx
GeneralRe: XML Dataset and Removing Rows... Pin
John Fisher4-Nov-02 8:08
John Fisher4-Nov-02 8:08 
GeneralRe: XML Dataset and Removing Rows... Pin
hammackj4-Nov-02 13:35
hammackj4-Nov-02 13:35 
GeneralC# Database question Pin
Anonymous2-Nov-02 14:57
Anonymous2-Nov-02 14:57 
GeneralRe: C# Database question Pin
ian mariano2-Nov-02 15:25
ian mariano2-Nov-02 15:25 
GeneralRe: C# Database question Pin
Munti4-Nov-02 5:48
Munti4-Nov-02 5:48 
Questionprocess id? Pin
imran_rafique2-Nov-02 14:21
imran_rafique2-Nov-02 14:21 

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.