Click here to Skip to main content
15,914,924 members
Home / Discussions / C#
   

C#

 
AnswerRe: tabcontrol problem ? howto check if a different tab is clicked ? Pin
MCSD-Gandalf12-Jun-06 2:13
MCSD-Gandalf12-Jun-06 2:13 
AnswerRe: tabcontrol problem ? howto check if a different tab is clicked ? Pin
Andrei Ungureanu12-Jun-06 4:18
Andrei Ungureanu12-Jun-06 4:18 
GeneralRe: tabcontrol problem ? howto check if a different tab is clicked ? Pin
Mairaaj Khan12-Jun-06 20:53
professionalMairaaj Khan12-Jun-06 20:53 
QuestionHow to Clear data from DataGridView? Pin
Mairaaj Khan12-Jun-06 0:47
professionalMairaaj Khan12-Jun-06 0:47 
QuestionWritting listview items to xml file Pin
chandler8312-Jun-06 0:47
chandler8312-Jun-06 0:47 
AnswerRe: Writting listview items to xml file Pin
rah_sin12-Jun-06 0:50
professionalrah_sin12-Jun-06 0:50 
GeneralRe: Writting listview items to xml file Pin
chandler8312-Jun-06 1:11
chandler8312-Jun-06 1:11 
GeneralRe: Writting listview items to xml file Pin
rah_sin12-Jun-06 1:35
professionalrah_sin12-Jun-06 1:35 
According to ur reqirement i think u have to use two dataset's
one for storing 3 textbox values and another for populating listbox
becouse daset's writexml method writes data in xml file using table name tag,
column name and value tag,so for single entry u can not store multiple
values of listbox.

so u cn try
Dataset ds = new Dataset();
DataTable tbl1 = new DataTable();
tbl1.Columns.Add(new DataColumn("column name",typeof(String)));
tbl1.Columns.Add(new DataColumn("column name",typeof(String)));
tbl1.Columns.Add(new DataColumn("column name",typeof(String)));

DataRow dr = tbl1.NewRow();
dr["column name"] = textbox1.text;
dr["column name"] = textbox2.text;
dr["column name"] = textbox3.text;
tbl1.Rows.Add(dr);

Ds.Tables.Add(tbl1);

Ds.WriteXml("coplete path and name of xml file");

same way u can try to add data to second datasset which will store values
of listbox items.
and after that for reading u can use dataset's ReadXml method and populate
data into textbox and listbox from these datasets.

rahul
QuestionProblem with TVM_GETITEM Pin
suguimoto12-Jun-06 0:44
suguimoto12-Jun-06 0:44 
QuestionFile Downloading - Help Please Pin
Andrew Mercer12-Jun-06 0:17
Andrew Mercer12-Jun-06 0:17 
QuestionDataGridView.SelectedRows to DataTable in C# Pin
peshawarcoder11-Jun-06 23:03
peshawarcoder11-Jun-06 23:03 
QuestionCrystal reports - Keycodev2.dll Pin
SysJey11-Jun-06 22:48
SysJey11-Jun-06 22:48 
Questionveryyyy urgent..............online status [modified] Pin
ayshamushtaq11-Jun-06 22:44
ayshamushtaq11-Jun-06 22:44 
QuestionEmail Management Pin
Tiger45611-Jun-06 22:17
Tiger45611-Jun-06 22:17 
AnswerRe: Email Management Pin
ahall@mirapoint.com12-Jun-06 7:40
ahall@mirapoint.com12-Jun-06 7:40 
QuestionC# printing XML or txt File [modified] Pin
oskardiazdeleon11-Jun-06 21:15
oskardiazdeleon11-Jun-06 21:15 
QuestionConversion of DataGridView.SelectedRows to ... in C# Pin
peshawarcoder11-Jun-06 20:51
peshawarcoder11-Jun-06 20:51 
QuestionHow call events from another event Pin
ranandbe11-Jun-06 20:18
ranandbe11-Jun-06 20:18 
AnswerRe: How call events from another event Pin
stancrm11-Jun-06 20:27
stancrm11-Jun-06 20:27 
AnswerRe: How call events from another event Pin
engsrini11-Jun-06 20:46
engsrini11-Jun-06 20:46 
AnswerRe: How call events from another event Pin
Guffa11-Jun-06 21:07
Guffa11-Jun-06 21:07 
QuestionSend Mail Without Using SMTP Server Pin
Sushant Duggal11-Jun-06 20:18
Sushant Duggal11-Jun-06 20:18 
AnswerRe: Send Mail Without Using SMTP Server Pin
leppie11-Jun-06 20:29
leppie11-Jun-06 20:29 
GeneralRe: Send Mail Without Using SMTP Server Pin
Sushant Duggal11-Jun-06 20:32
Sushant Duggal11-Jun-06 20:32 
GeneralRe: Send Mail Without Using SMTP Server Pin
stancrm11-Jun-06 20:36
stancrm11-Jun-06 20:36 

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.