Click here to Skip to main content
15,919,178 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Cancel Text_Changed event ? Pin
Spacix One22-May-08 11:50
Spacix One22-May-08 11:50 
QuestionReg: EmailID Validation Pin
Member 400849221-May-08 22:09
Member 400849221-May-08 22:09 
AnswerRe: Reg: EmailID Validation Pin
Nick K21-May-08 22:38
Nick K21-May-08 22:38 
AnswerRe: Reg: EmailID Validation Pin
Vasudevan Deepak Kumar21-May-08 23:07
Vasudevan Deepak Kumar21-May-08 23:07 
Questioninstall image with setup file Pin
Knowledgestudent21-May-08 22:07
Knowledgestudent21-May-08 22:07 
AnswerRe: install image with setup file Pin
Jimmanuel22-May-08 1:28
Jimmanuel22-May-08 1:28 
AnswerRe: install image with setup file Pin
The Nightcoder22-May-08 11:46
The Nightcoder22-May-08 11:46 
QuestionHow to parse a string to display in List View? Pin
daden20321-May-08 21:52
daden20321-May-08 21:52 
I have a MonitorAction ma return a MonitorResponse mr as a string:
Code:
MonitorAction ma = new MonitorAction();         
 try
 {
      ManagerResponse mr = manager.Connection.SendAction(ma, 10000);
      Console.WriteLine("Monitor Call" + "\n\tResponse:" + mr.Response);
}

Return as in the picture below:
http://i301.photobucket.com/albums/nn71/mikeakins/mr.jpg
Now, I want to display it like the listview here:
http://i301.photobucket.com/albums/nn71/mikeakins/ListViewSample.gif

We will have 5 Columns: Channel, UniqueId, CallerId, CallerIdName, State, DateReceived instead of 3 colums Name, Email, Phone as in the second picture.

How to parse the string mr to display it in the Listview? Please help me!

The code I use to display this information:

lvChannels1.Columns.Add("Channel", 200);
lvChannels1.Columns.Add("UniqueId", 200);
lvChannels1.Columns.Add("CallerId", 200);
lvChannels1.Columns.Add("CallerIdName", 200);
lvChannels1.Columns.Add("State", 200);
lvChannels1.Columns.Add("Date", 200);

lvChannels2.Columns.Add("Channel", 200);
lvChannels2.Columns.Add("UniqueId", 200);


string ChannelConnect = "New channel Event";
string ChannelDisConnect = "Hangup Event";

if (String.Compare(ChannelConnect, 0, ex.Message, 0, 17) == 0)
{
    // Parse string and add to lvChannels1? How to?
}
else if (String.Compare(ChannelDisConnect, 0, ex.Message, 0, 12) == 0)
{
   // Parse string and add to lvChannels2? How to?
}

QuestionGeneral design guidelines/principles Pin
Nick K21-May-08 21:10
Nick K21-May-08 21:10 
AnswerRe: General design guidelines/principles Pin
Guffa22-May-08 0:23
Guffa22-May-08 0:23 
AnswerRe: General design guidelines/principles Pin
Robert.C.Cartaino22-May-08 3:46
Robert.C.Cartaino22-May-08 3:46 
GeneralRe: General design guidelines/principles Pin
Nick K22-May-08 23:50
Nick K22-May-08 23:50 
AnswerRe: General design guidelines/principles Pin
Mike Dimmick22-May-08 4:07
Mike Dimmick22-May-08 4:07 
QuestionHow to Create Custom Skin and apply Pin
Sababathi Balakrishnan21-May-08 20:53
Sababathi Balakrishnan21-May-08 20:53 
AnswerRe: How to Create Custom Skin and apply Pin
Laddie21-May-08 20:57
Laddie21-May-08 20:57 
QuestionModulus function Pin
usyra4221-May-08 20:43
usyra4221-May-08 20:43 
AnswerRe: Modulus function Pin
laserbaronen21-May-08 20:48
laserbaronen21-May-08 20:48 
AnswerRe: Modulus function Pin
Shree22-May-08 0:18
Shree22-May-08 0:18 
AnswerRe: Modulus function Pin
The Nightcoder22-May-08 9:49
The Nightcoder22-May-08 9:49 
Questionhow to write a property at designer by propety window at design time of nested control Pin
Guru Call21-May-08 20:12
Guru Call21-May-08 20:12 
AnswerRe: how to write a property at designer by propety window at design time of nested control Pin
gnjunge21-May-08 21:37
gnjunge21-May-08 21:37 
QuestionPassing value from popup to parent page Pin
Abu-Muawiyah21-May-08 19:59
Abu-Muawiyah21-May-08 19:59 
AnswerRe: Passing value from popup to parent page Pin
Vikram A Punathambekar21-May-08 20:28
Vikram A Punathambekar21-May-08 20:28 
Questionhow to set an image for tabpage's button Pin
Sababathi Balakrishnan21-May-08 19:44
Sababathi Balakrishnan21-May-08 19:44 
AnswerRe: how to set an image for tabpage's button Pin
dan!sh 21-May-08 20:12
professional dan!sh 21-May-08 20:12 

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.