Click here to Skip to main content
15,889,877 members
Home / Discussions / C#
   

C#

 
QuestionRegular expression string Pin
Brendan Vogt13-Mar-06 0:51
Brendan Vogt13-Mar-06 0:51 
AnswerRe: Regular expression string Pin
leppie13-Mar-06 1:09
leppie13-Mar-06 1:09 
GeneralRe: Regular expression string Pin
Brendan Vogt13-Mar-06 1:50
Brendan Vogt13-Mar-06 1:50 
GeneralRe: Regular expression string Pin
leppie13-Mar-06 7:38
leppie13-Mar-06 7:38 
QuestionStatic Constructor Problem Pin
Suhas Pawar13-Mar-06 0:46
Suhas Pawar13-Mar-06 0:46 
AnswerRe: Static Constructor Problem Pin
gnjunge13-Mar-06 0:52
gnjunge13-Mar-06 0:52 
QuestionListBox Pin
Monin D.12-Mar-06 23:47
Monin D.12-Mar-06 23:47 
AnswerRe: ListBox Pin
gnjunge13-Mar-06 0:19
gnjunge13-Mar-06 0:19 
listbox1.SelectedItems[0] returns a ListItem in ASP.NET in which you can get it's value by listbox.SelectedItems[0].Value. And in Win App it returns an ObjectCollections, which could indead be a DataRowView.
So how to get the info from a DataRowView?
try the following
<br />
((DataRowView)listbox1.SelectedItems[0])[0].ToString();

The second index is the cell in your datarowview, so with the following code, you get the first cell of the first selected datarowview of your listbox and convert it to a string.
If that cell contains another object, you will have to cast it again.
GeneralRe: ListBox Pin
Monin D.13-Mar-06 0:45
Monin D.13-Mar-06 0:45 
GeneralRe: ListBox Pin
gnjunge13-Mar-06 0:47
gnjunge13-Mar-06 0:47 
QuestionPlease introduce me a dll or windows application to send email.... Pin
m.rastgar12-Mar-06 23:40
m.rastgar12-Mar-06 23:40 
AnswerRe: Please introduce me a dll or windows application to send email.... Pin
Colin Angus Mackay12-Mar-06 23:46
Colin Angus Mackay12-Mar-06 23:46 
AnswerRe: Please introduce me a dll or windows application to send email.... Pin
Vasudevan Deepak Kumar13-Mar-06 0:13
Vasudevan Deepak Kumar13-Mar-06 0:13 
Questionhow can i tracks a server's response times and records the results .... Pin
JulietPlando12-Mar-06 23:36
JulietPlando12-Mar-06 23:36 
AnswerRe: how can i tracks a server's response times and records the results .... Pin
gnjunge13-Mar-06 0:24
gnjunge13-Mar-06 0:24 
Questionhow to move a word document with c# Pin
fady_sayegh12-Mar-06 23:32
fady_sayegh12-Mar-06 23:32 
AnswerRe: how to move a word document with c# Pin
gnjunge13-Mar-06 0:29
gnjunge13-Mar-06 0:29 
Questioncan we use private static field Pin
shashank veerkar12-Mar-06 23:30
shashank veerkar12-Mar-06 23:30 
AnswerRe: can we use private static field Pin
hpetriffer12-Mar-06 23:40
hpetriffer12-Mar-06 23:40 
Questionapplying ccs to email sent using C# Pin
pride and no12-Mar-06 22:06
pride and no12-Mar-06 22:06 
AnswerRe: applying ccs to email sent using C# Pin
Vasudevan Deepak Kumar12-Mar-06 22:48
Vasudevan Deepak Kumar12-Mar-06 22:48 
QuestionArticle Usage Notification Pin
Prasadrn12-Mar-06 22:02
Prasadrn12-Mar-06 22:02 
QuestionImage not displaying with combobox Pin
Dave McCool12-Mar-06 22:00
Dave McCool12-Mar-06 22:00 
AnswerRe: Image not displaying with combobox Pin
gnjunge13-Mar-06 0:31
gnjunge13-Mar-06 0:31 
GeneralRe: Image not displaying with combobox Pin
Dave McCool13-Mar-06 21:49
Dave McCool13-Mar-06 21:49 

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.