Click here to Skip to main content
16,006,348 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Combobox - DrawItem and dragging scroll bar problem Pin
Luc Pattyn19-Jul-09 12:17
sitebuilderLuc Pattyn19-Jul-09 12:17 
GeneralRe: Combobox - DrawItem and dragging scroll bar problem Pin
David Hovey19-Jul-09 12:33
David Hovey19-Jul-09 12:33 
Questionloading text [modified] Pin
deadcell_618-Jul-09 8:50
deadcell_618-Jul-09 8:50 
AnswerRe: loading text Pin
Luc Pattyn18-Jul-09 9:07
sitebuilderLuc Pattyn18-Jul-09 9:07 
GeneralRe: loading text [modified] Pin
deadcell_618-Jul-09 9:11
deadcell_618-Jul-09 9:11 
GeneralRe: loading text Pin
Luc Pattyn18-Jul-09 9:21
sitebuilderLuc Pattyn18-Jul-09 9:21 
GeneralRe: loading text Pin
deadcell_618-Jul-09 9:30
deadcell_618-Jul-09 9:30 
GeneralRe: loading text Pin
molesworth18-Jul-09 10:02
molesworth18-Jul-09 10:02 
deadcell_6 wrote:
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (listBox1.SelectedItem == (object)"DVD 1")
{
TextBox1 <--- and i want to display dvd 1.txt

}
else if (listBox1.SelectedItem == (object)"DVD 2")
TextBox1 <---- and i want to display dvd 2.txt

else if (listBox1.SelectedItem == (object)"DVD 3")
...


Eeek!!

Seriously, you need to learn some more of the basics of how to organise and manage data first.

How do you think an application that handles hundreds , or thousands, of pieces of information works? It certainly isn't by having a seaprate "if..." for each one.

Find out about structures, arrays, and file handling (then eventually maybe databases) and think about what information you have and how you want to organise it.

There are three kinds of people in the world - those who can count and those who can't...

QuestionC#.net Display Pin
eyeshield2118-Jul-09 5:55
eyeshield2118-Jul-09 5:55 
AnswerRe: C#.net Display Pin
Luc Pattyn18-Jul-09 9:08
sitebuilderLuc Pattyn18-Jul-09 9:08 
AnswerRe: C#.net Display Pin
Eddy Vluggen18-Jul-09 9:14
professionalEddy Vluggen18-Jul-09 9:14 
QuestionPrintable DataGrid Pin
danishkhawar18-Jul-09 4:47
danishkhawar18-Jul-09 4:47 
AnswerRe: Printable DataGrid Pin
Ravi Bhavnani18-Jul-09 6:10
professionalRavi Bhavnani18-Jul-09 6:10 
QuestionHow to create a set up Pin
ksss_maheshece17-Jul-09 23:21
ksss_maheshece17-Jul-09 23:21 
AnswerRe: How to create a set up Pin
Abhijit Jana18-Jul-09 1:40
professionalAbhijit Jana18-Jul-09 1:40 
GeneralRe: How to create a set up Pin
ksss_maheshece18-Jul-09 6:43
ksss_maheshece18-Jul-09 6:43 
GeneralRe: How to create a set up Pin
Abhijit Jana19-Jul-09 0:15
professionalAbhijit Jana19-Jul-09 0:15 
QuestionListbox help please Pin
deadcell_617-Jul-09 21:37
deadcell_617-Jul-09 21:37 
AnswerRe: Listbox help please Pin
Pete O'Hanlon17-Jul-09 22:45
mvePete O'Hanlon17-Jul-09 22:45 
QuestionHow to Set Order of Properties in Property Grid VB.NET 2 Pin
luongmai17-Jul-09 5:54
luongmai17-Jul-09 5:54 
AnswerRe: How to Set Order of Properties in Property Grid VB.NET 2 Pin
Luc Pattyn17-Jul-09 10:39
sitebuilderLuc Pattyn17-Jul-09 10:39 
QuestionReports Layout Formating ....... Pin
shaina223116-Jul-09 20:10
shaina223116-Jul-09 20:10 
AnswerRe: Reports Layout Formating ....... Pin
shaina223117-Jul-09 18:46
shaina223117-Jul-09 18:46 
QuestionIs is even possible to write to the event log under Vista? Pin
Gregory Gadow16-Jul-09 6:12
Gregory Gadow16-Jul-09 6:12 
AnswerRe: Is is even possible to write to the event log under Vista? Pin
Mark Salsbery16-Jul-09 9:51
Mark Salsbery16-Jul-09 9:51 

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.