Click here to Skip to main content
15,891,976 members
Home / Discussions / C#
   

C#

 
GeneralRe: c#Move music files in listbox up or down Pin
Richard MacCutchan28-Oct-17 22:08
mveRichard MacCutchan28-Oct-17 22:08 
AnswerRe: c#Move music files in listbox up or down Pin
jschell27-Oct-17 7:39
jschell27-Oct-17 7:39 
AnswerRe: c#Move music files in listbox up or down Pin
Gerry Schmitz28-Oct-17 3:31
mveGerry Schmitz28-Oct-17 3:31 
Questionc# Need to be able to play music files that were additional items to the list box Pin
Member 1348924427-Oct-17 3:52
Member 1348924427-Oct-17 3:52 
AnswerRe: c# Need to be able to play music files that were additional items to the list box Pin
OriginalGriff27-Oct-17 3:57
mveOriginalGriff27-Oct-17 3:57 
AnswerRe: c# Need to be able to play music files that were additional items to the list box Pin
Richard Deeming27-Oct-17 4:04
mveRichard Deeming27-Oct-17 4:04 
GeneralSOLVEDRe: c# Need to be able to play music files that were additional items to the list box Pin
Member 1348924427-Oct-17 4:18
Member 1348924427-Oct-17 4:18 
AnswerRe: c# Need to be able to play music files that were additional items to the list box Pin
Gerry Schmitz27-Oct-17 4:26
mveGerry Schmitz27-Oct-17 4:26 
Never use "SelectedIndex" unless you know its value first.

The default is "-1"; which means "not selected"; and always results in an invalid index.

(And SelectedIndex will "bounce around" prior to a form / window being fully loaded).

Just because a "list control" has items, does not mean that SelectedIndex is "in range".

That also goes for "SelectedItem", "CurrentItem", "Position", etc. when dealing with "lists" and navigation.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal

QuestionExporting result to .csv format instead of .xlsx without using interop.excel Pin
Ratsr26-Oct-17 23:54
Ratsr26-Oct-17 23:54 
AnswerRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Ralf Meier27-Oct-17 0:21
mveRalf Meier27-Oct-17 0:21 
GeneralRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Ratsr27-Oct-17 0:30
Ratsr27-Oct-17 0:30 
SuggestionRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Ralf Meier27-Oct-17 0:39
mveRalf Meier27-Oct-17 0:39 
GeneralRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Ratsr27-Oct-17 0:48
Ratsr27-Oct-17 0:48 
AnswerRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Richard MacCutchan27-Oct-17 0:36
mveRichard MacCutchan27-Oct-17 0:36 
GeneralRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Jim_Snyder27-Oct-17 4:28
professionalJim_Snyder27-Oct-17 4:28 
GeneralRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Richard MacCutchan27-Oct-17 5:05
mveRichard MacCutchan27-Oct-17 5:05 
AnswerRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Richard Deeming27-Oct-17 1:15
mveRichard Deeming27-Oct-17 1:15 
GeneralRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Nathan Minier27-Oct-17 1:28
professionalNathan Minier27-Oct-17 1:28 
AnswerRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Jim_Snyder27-Oct-17 4:24
professionalJim_Snyder27-Oct-17 4:24 
AnswerRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Gerry Schmitz27-Oct-17 4:43
mveGerry Schmitz27-Oct-17 4:43 
GeneralRe: Exporting result to .csv format instead of .xlsx without using interop.excel Pin
Richard MacCutchan27-Oct-17 5:06
mveRichard MacCutchan27-Oct-17 5:06 
QuestionProgram crashes when form is refreshed Pin
Member 1274878324-Oct-17 11:55
Member 1274878324-Oct-17 11:55 
AnswerRe: Program crashes when form is refreshed Pin
Dave Kreskowiak24-Oct-17 12:08
mveDave Kreskowiak24-Oct-17 12:08 
GeneralRe: Program crashes when form is refreshed Pin
Member 1274878324-Oct-17 16:20
Member 1274878324-Oct-17 16:20 
AnswerRe: Program crashes when form is refreshed Pin
Eddy Vluggen24-Oct-17 13:33
professionalEddy Vluggen24-Oct-17 13:33 

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.