Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# execute reader to liste Pin
Luc Pattyn12-Jul-12 8:34
sitebuilderLuc Pattyn12-Jul-12 8:34 
GeneralRe: C# execute reader to liste Pin
Ennis Ray Lynch, Jr.12-Jul-12 8:53
Ennis Ray Lynch, Jr.12-Jul-12 8:53 
GeneralRe: C# execute reader to liste Pin
Luc Pattyn12-Jul-12 9:17
sitebuilderLuc Pattyn12-Jul-12 9:17 
GeneralRe: C# execute reader to liste Pin
jschell12-Jul-12 10:24
jschell12-Jul-12 10:24 
GeneralRe: C# execute reader to liste Pin
Eddy Vluggen12-Jul-12 9:17
professionalEddy Vluggen12-Jul-12 9:17 
AnswerRe: C# execute reader to liste Pin
Luc Pattyn12-Jul-12 9:30
sitebuilderLuc Pattyn12-Jul-12 9:30 
GeneralRe: C# execute reader to liste Pin
coucou00812-Jul-12 22:43
coucou00812-Jul-12 22:43 
AnswerRe: C# execute reader to liste Pin
Matt T Heffron13-Jul-12 8:08
professionalMatt T Heffron13-Jul-12 8:08 
For this code, it appears the problem is that you've never put anything into ListBox list !! So when you try to load the row array, the value of list.Items.Count is zero! and the loop is not executed (and I'd expect the titre1.Text = row[0]; line to throw an IndexOutOfRangeException). It seems more likely that you wanted to use affiche_titre.FieldCount to fill the row array with the values from the reader's current row. I don't see ListBox list or DataTable titre used at all here (when corrected per my assumption).

If you've edited this to a smaller example then it is going to be difficult for anyone to give you good advice based on incomplete information. (We don't need the whole application!! just all of the relevant code. If you repost with more code, please use the code "button" above the Message entry box, to format the code more readably.)
Questionhow to save data Pin
shubham salwan12-Jul-12 1:56
shubham salwan12-Jul-12 1:56 
AnswerRe: how to save data Pin
Eddy Vluggen12-Jul-12 2:28
professionalEddy Vluggen12-Jul-12 2:28 
AnswerRe: how to save data Pin
KSaiPrasad12-Jul-12 3:09
KSaiPrasad12-Jul-12 3:09 
GeneralRe: how to save data PinPopular
PIEBALDconsult12-Jul-12 3:55
mvePIEBALDconsult12-Jul-12 3:55 
GeneralRe: how to save data Pin
shubham salwan12-Jul-12 8:43
shubham salwan12-Jul-12 8:43 
GeneralRe: how to save data Pin
PIEBALDconsult13-Jul-12 3:49
mvePIEBALDconsult13-Jul-12 3:49 
GeneralRe: how to save data Pin
shubham salwan12-Jul-12 8:26
shubham salwan12-Jul-12 8:26 
GeneralRe: how to save data Pin
KSaiPrasad12-Jul-12 19:15
KSaiPrasad12-Jul-12 19:15 
GeneralRe: how to save data Pin
shubham salwan12-Jul-12 20:11
shubham salwan12-Jul-12 20:11 
AnswerRe: how to save data Pin
Simon_Whale12-Jul-12 3:17
Simon_Whale12-Jul-12 3:17 
AnswerRe: how to save data Pin
BobJanova12-Jul-12 4:08
BobJanova12-Jul-12 4:08 
Questionconnectivity with database Pin
shubham salwan12-Jul-12 1:53
shubham salwan12-Jul-12 1:53 
AnswerRe: connectivity with database Pin
Abhinav S12-Jul-12 2:52
Abhinav S12-Jul-12 2:52 
AnswerRe: connectivity with database Pin
Dave Kreskowiak12-Jul-12 3:41
mveDave Kreskowiak12-Jul-12 3:41 
GeneralRe: connectivity with database Pin
shubham salwan12-Jul-12 8:16
shubham salwan12-Jul-12 8:16 
GeneralRe: connectivity with database Pin
Wes Aday12-Jul-12 8:43
professionalWes Aday12-Jul-12 8:43 
GeneralRe: connectivity with database Pin
shubham salwan12-Jul-12 9:38
shubham salwan12-Jul-12 9:38 

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.