Click here to Skip to main content
15,906,455 members
Home / Discussions / C#
   

C#

 
GeneralRe: A question about s singleton applicaiton? Pin
Wendelius15-Nov-08 4:13
mentorWendelius15-Nov-08 4:13 
AnswerRe: A question about s singleton applicaiton? Pin
Jason_Shen17-Nov-08 3:27
Jason_Shen17-Nov-08 3:27 
Questionproblem in custom paging.. Pin
kamalesh574314-Nov-08 15:11
kamalesh574314-Nov-08 15:11 
AnswerRe: problem in custom paging.. Pin
Guffa14-Nov-08 18:06
Guffa14-Nov-08 18:06 
GeneralRe: problem in custom paging.. Pin
kamalesh574316-Nov-08 13:30
kamalesh574316-Nov-08 13:30 
GeneralRe: problem in custom paging.. Pin
Guffa16-Nov-08 15:49
Guffa16-Nov-08 15:49 
GeneralRe: problem in custom paging.. Pin
kamalesh574316-Nov-08 16:17
kamalesh574316-Nov-08 16:17 
Questionxml file embedded: can´t save changes Pin
nelsonpaixao14-Nov-08 13:46
nelsonpaixao14-Nov-08 13:46 
Hi,

i have a xml file embedded in my project resources. I can read it but i can´t save changes on it, check code bellow


// class_helper.ResourcesXml_Login is the xml file!

DataSet ds = new DataSet();
ds.ReadXml(Class_Helper.ResourceXml_login, XmlReadMode.ReadSchema);
DataGridView_Administrator.DataSource = ds.Tables[0];
DataRow DataRow_user = ds.Tables[0].NewRow();
DataRow_user["id"] = 10;
DataRow_user["f_name"] = ToolStripTextBox_FName.Text;
DataRow_user["l_name"] = ToolStripTextBox_LName.Text;
DataRow_user["username"] = ToolStripTextBox_Username.Text;
DataRow_user["password"] = ToolStripTextBox_Password.Text;
DataRow_user["role"] = ToolStripComboBox_Role.Text;
ds.Tables[0].Rows.Add(DataRow_user);            
ds.WriteXml(Class_Helper.ResourceXml_login,XmlWriteMode.WriteSchema);            
DataGridView_Administrator.DataSource = ds.Tables[0];


i can save changes if i use the path way you know?! but i want this way and i really dont know where the codes goes wrong D'Oh! | :doh:

nelsonpaixao@yahoo.com.br

trying to help & get help

AnswerRe: xml file embedded: can´t save changes Pin
Dave Kreskowiak14-Nov-08 16:24
mveDave Kreskowiak14-Nov-08 16:24 
GeneralRe: xml file embedded: can´t save changes Pin
nelsonpaixao15-Nov-08 5:09
nelsonpaixao15-Nov-08 5:09 
QuestionHow to scan barcode without an active focus on a textbox Pin
hafij_cse14-Nov-08 8:58
hafij_cse14-Nov-08 8:58 
AnswerRe: How to scan barcode without an active focus on a textbox Pin
Wendelius14-Nov-08 9:11
mentorWendelius14-Nov-08 9:11 
QuestionForm minimize Pin
netJP12L14-Nov-08 8:55
netJP12L14-Nov-08 8:55 
AnswerRe: Form minimize Pin
Wendelius14-Nov-08 9:08
mentorWendelius14-Nov-08 9:08 
QuestionHow to display different texts with different colors in a textbox Pin
Seraph_summer14-Nov-08 7:55
Seraph_summer14-Nov-08 7:55 
AnswerRe: How to display different texts with different colors in a textbox Pin
Wendelius14-Nov-08 7:57
mentorWendelius14-Nov-08 7:57 
AnswerRe: How to display different texts with different colors in a textbox Pin
Paul Conrad14-Nov-08 8:45
professionalPaul Conrad14-Nov-08 8:45 
Questionone prolem for publishing project Pin
Seraph_summer14-Nov-08 7:48
Seraph_summer14-Nov-08 7:48 
AnswerRe: one prolem for publishing project Pin
sph3rex14-Nov-08 7:58
sph3rex14-Nov-08 7:58 
GeneralRe: one prolem for publishing project Pin
Seraph_summer14-Nov-08 8:01
Seraph_summer14-Nov-08 8:01 
QuestionForms Pin
humayunlalzad14-Nov-08 6:40
humayunlalzad14-Nov-08 6:40 
AnswerRe: Forms Pin
netJP12L14-Nov-08 6:52
netJP12L14-Nov-08 6:52 
GeneralRe: Forms Pin
humayunlalzad14-Nov-08 7:25
humayunlalzad14-Nov-08 7:25 
AnswerRe: Forms Pin
Le centriste14-Nov-08 7:24
Le centriste14-Nov-08 7:24 
GeneralRe: Forms Pin
humayunlalzad14-Nov-08 7:41
humayunlalzad14-Nov-08 7:41 

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.