Click here to Skip to main content
15,903,385 members
Home / Discussions / C#
   

C#

 
GeneralRe: position of cursor in Text Box? Pin
superdragon13-Mar-06 11:55
superdragon13-Mar-06 11:55 
QuestionGridView link with two data???? Pin
papa198013-Mar-06 3:29
papa198013-Mar-06 3:29 
QuestionCreate a very big PictureBox Pin
Sasuko13-Mar-06 2:31
Sasuko13-Mar-06 2:31 
QuestionFolderBrowserDialog Problem in C# Pin
AyBee13-Mar-06 2:24
AyBee13-Mar-06 2:24 
AnswerRe: FolderBrowserDialog Problem in C# Pin
J4amieC13-Mar-06 4:05
J4amieC13-Mar-06 4:05 
AnswerRe: FolderBrowserDialog Problem in C# Pin
vineas13-Mar-06 4:18
vineas13-Mar-06 4:18 
AnswerRe: FolderBrowserDialog Problem in C# Pin
Ed.Poore13-Mar-06 6:29
Ed.Poore13-Mar-06 6:29 
QuestionCookie and ticket expiration Pin
Brendan Vogt13-Mar-06 1:47
Brendan Vogt13-Mar-06 1:47 
Questionaccessing xml file Pin
rah_sin13-Mar-06 1:21
professionalrah_sin13-Mar-06 1:21 
AnswerRe: accessing xml file Pin
darkelv13-Mar-06 12:59
darkelv13-Mar-06 12:59 
Questionlock columns's size Pin
sebastianos13-Mar-06 1:11
sebastianos13-Mar-06 1:11 
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 

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.