Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 09-01-06   #1 (permalink)
4.0 GHz
 
guitar22891's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Florida
Posts: 997

Rep: 46 guitar22891 is acknowledged by some
Unique Rep: 38
FAQs Submitted: 4
Trader Rating: 0
Default Visual Studio 2005, 3 List boxes

I KNOW I"M A NOOB... BUT PLEASE HELP ME>>>
so I have 3 listboxes and I want to make it so when I select colors from a list (for example) on listbox1 it shows the colors list on listbox2 and when I select like the color blue from listbox 2 it shows light and dark in listbox3... could someone construct something like this for me.... rep+ will be awarded for people who help....
__________________
Future Upgrades:
  • Another 1gb of GSKILL DDR500
  • Better Graphics Card
Jesus is my Savior

System: My System
CPU
3.0E E0 Presscott @ 3.85
Motherboard
P4P800 SE
Memory
1GB DDR500 Gskill HZ
Graphics Card
FX5500 256mb 128bit AGP
Hard Drive
200GB Sata1.5 Maxtor
Sound Card
Onboard
Power Supply
400w FSP-PN
Case
Xoxide 5 in 1 combo
OS
Windows XP Home & Ubuntu
Monitor
19in Flat Panel
guitar22891 is offline   Reply With Quote
Old 09-02-06   #2 (permalink)
Intel oc'er in training
 
intel ati

Join Date: Jun 2004
Location: Herts, UK
Posts: 2,562

Rep: 207 Zeus is acknowledged by manyZeus is acknowledged by manyZeus is acknowledged by many
Unique Rep: 142
Trader Rating: 0
Default

Try this. You'll have to edit the items for each listbox

Add the code below to the Form Load Sub
Code:
        Me.FillListBox1()
        Me.ListBox2.Items.Clear()
        Me.ListBox3.Items.Clear()
Add the code below to the class for the Form
Code:
    Private Sub FillListBox1()

        With Me.ListBox1
            .Items.Clear()
            .Items.Add("List 1")
            .Items.Add("List 2")
        End With
    End Sub

    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
        Me.ListBox2.Items.Clear()
        Me.ListBox3.Items.Clear()

        Select Case Me.ListBox1.SelectedIndex
            Case 0
                With Me.ListBox2
                    .Items.Clear()
                    .Items.Add("List 1 - Item 1")
                    .Items.Add("List 1 - Item 2")
                End With
            Case 1
                With Me.ListBox2
                    .Items.Clear()
                    .Items.Add("List 2 - Item 1")
                    .Items.Add("List 2 - Item 2")
                End With
        End Select
    End Sub


    Private Sub ListBox2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox2.SelectedIndexChanged
        Me.ListBox3.Items.Clear()
        Select Case Me.ListBox1.SelectedIndex
            Case 0
                Select Case Me.ListBox2.SelectedIndex
                    Case 0
                        With Me.ListBox3
                            .Items.Clear()
                            .Items.Add("List 1 - Item 1 - subitem 1")
                            .Items.Add("List 1 - Item 1 - subitem 2")
                        End With
                    Case 1
                        With Me.ListBox3
                            .Items.Clear()
                            .Items.Add("List 1 - Item 2 - subitem 1")
                            .Items.Add("List 1 - Item 2 - subitem 2")
                        End With
                End Select
            Case 1
                Select Case Me.ListBox2.SelectedIndex
                    Case 0
                        With Me.ListBox3
                            .Items.Clear()
                            .Items.Add("List 2 - Item 1 - subitem 1")
                            .Items.Add("List 2 - Item 1 - subitem 2")
                        End With
                    Case 1
                        With Me.ListBox3
                            .Items.Clear()
                            .Items.Add("List 2 - Item 2 - subitem 1")
                            .Items.Add("List 2 - Item 2 - subitem 2")
                        End With
                End Select
        End Select

    End Sub
__________________
E6600 L717A @ 3560Mhz CPUz validated --> ID 242627

X1950 scores: AM3: 126900 | 3DMark01: 45167 | 3DMark03: 20353 | 3DMark05: 11822 | 3DMark06: 5954

...Gaming rig being rebuilt after new mobo...

System: Gaming Rig
CPU
E6600 L717A
Motherboard
Gigabyte GA-P35-DS3
Memory
A-Data DDR2 PC6400 (2x1GBMB)
Graphics Card
HD 4870 1024MB GDDR5
Hard Drive
Maxtor 250Gb 16Mb PATA
Sound Card
Onboard
Power Supply
Antec TPQ 850W modular
Case
PoS
CPU cooling
Zalman CNPS9500 LED
GPU cooling
Stock
OS
WinXP 32bit SP2
Monitor
Fujitsu CRT 19"
Zeus is offline Overclocked Account   Reply With Quote
Old 09-02-06   #3 (permalink)
4.0 GHz
 
guitar22891's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Florida
Posts: 997

Rep: 46 guitar22891 is acknowledged by some
Unique Rep: 38
FAQs Submitted: 4
Trader Rating: 0
Default

ok Thanks alot Zeus... i understand now.. alright
__________________
Future Upgrades:
  • Another 1gb of GSKILL DDR500
  • Better Graphics Card
Jesus is my Savior

System: My System
CPU
3.0E E0 Presscott @ 3.85
Motherboard
P4P800 SE
Memory
1GB DDR500 Gskill HZ
Graphics Card
FX5500 256mb 128bit AGP
Hard Drive
200GB Sata1.5 Maxtor
Sound Card
Onboard
Power Supply
400w FSP-PN
Case
Xoxide 5 in 1 combo
OS
Windows XP Home & Ubuntu
Monitor
19in Flat Panel
guitar22891 is offline   Reply With Quote
Old 09-11-06   #4 (permalink)
PC Gamer
 
ALIENIZED's Avatar
 
amd nvidia

Join Date: May 2006
Location: Louisiana
Posts: 414

Rep: 9 ALIENIZED Unknown
Unique Rep: 9
Trader Rating: 0
Default

would it be possible to get a screenshot of this, im a noob as well
__________________
Quote:
Originally Posted by Highly-Annoyed View Post
Man's ability to create, is only paralleled by his ability to destroy…
AWESOME VIDEO
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination chicken.txt
.

System: AsuraX
CPU
AMD Athlon 64 3000+ NC
Motherboard
MICRO-STAR RS480M
Memory
(1)G.Skill1gb + 512mb
Graphics Card
XFX 6800xt 128mb 465/1.23
Hard Drive
80gb + 250gb external
Sound Card
5.1 Sound card
Power Supply
Ultra 500 w
Case
Sunbeam Samurai
CPU cooling
stock fan & HS
GPU cooling
stock cooler
OS
XP Pro
Monitor
19" Samsung 940BW
ALIENIZED is offline   Reply With Quote
Old 09-13-06   #5 (permalink)
Intel oc'er in training
 
intel ati

Join Date: Jun 2004
Location: Herts, UK
Posts: 2,562

Rep: 207 Zeus is acknowledged by manyZeus is acknowledged by manyZeus is acknowledged by many
Unique Rep: 142
Trader Rating: 0
Default

I've attached a screenshot of the form running (if thats what you want ALIENIZED)
Attached Thumbnails
visual-studio-2005-3-list-boxes-untitled.jpg  
__________________
E6600 L717A @ 3560Mhz CPUz validated --> ID 242627

X1950 scores: AM3: 126900 | 3DMark01: 45167 | 3DMark03: 20353 | 3DMark05: 11822 | 3DMark06: 5954

...Gaming rig being rebuilt after new mobo...

System: Gaming Rig
CPU
E6600 L717A
Motherboard
Gigabyte GA-P35-DS3
Memory
A-Data DDR2 PC6400 (2x1GBMB)
Graphics Card
HD 4870 1024MB GDDR5
Hard Drive
Maxtor 250Gb 16Mb PATA
Sound Card
Onboard
Power Supply
Antec TPQ 850W modular
Case
PoS
CPU cooling
Zalman CNPS9500 LED
GPU cooling
Stock
OS
WinXP 32bit SP2
Monitor
Fujitsu CRT 19"
Zeus is offline Overclocked Account   Reply With Quote
Old 09-13-06   #6 (permalink)
Intel oc'er in training
 
intel ati

Join Date: Jun 2004
Location: Herts, UK
Posts: 2,562

Rep: 207 Zeus is acknowledged by manyZeus is acknowledged by manyZeus is acknowledged by many
Unique Rep: 142
Trader Rating: 0
Default

I've attached the VB 2005 project for the above form (in case anyone wants it)
Attached Files
File Type: zip MultiListBox1.zip (53.4 KB, 4 views)
__________________
E6600 L717A @ 3560Mhz CPUz validated --> ID 242627

X1950 scores: AM3: 126900 | 3DMark01: 45167 | 3DMark03: 20353 | 3DMark05: 11822 | 3DMark06: 5954

...Gaming rig being rebuilt after new mobo...

System: Gaming Rig
CPU
E6600 L717A
Motherboard
Gigabyte GA-P35-DS3
Memory
A-Data DDR2 PC6400 (2x1GBMB)
Graphics Card
HD 4870 1024MB GDDR5
Hard Drive
Maxtor 250Gb 16Mb PATA
Sound Card
Onboard
Power Supply
Antec TPQ 850W modular
Case
PoS
CPU cooling
Zalman CNPS9500 LED
GPU cooling
Stock
OS
WinXP 32bit SP2
Monitor
Fujitsu CRT 19"
Zeus is offline Overclocked Account   Reply With Quote
Old 09-14-06   #7 (permalink)
PC Gamer
 
ALIENIZED's Avatar
 
amd nvidia

Join Date: May 2006
Location: Louisiana
Posts: 414

Rep: 9 ALIENIZED Unknown
Unique Rep: 9
Trader Rating: 0
Default

yes, I was confused as to what you were making. but now I know
__________________
Quote:
Originally Posted by Highly-Annoyed View Post
Man's ability to create, is only paralleled by his ability to destroy…
AWESOME VIDEO
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination chicken.txt
.

System: AsuraX
CPU
AMD Athlon 64 3000+ NC
Motherboard
MICRO-STAR RS480M
Memory
(1)G.Skill1gb + 512mb
Graphics Card
XFX 6800xt 128mb 465/1.23
Hard Drive
80gb + 250gb external
Sound Card
5.1 Sound card
Power Supply
Ultra 500 w
Case
Sunbeam Samurai
CPU cooling
stock fan & HS
GPU cooling
stock cooler
OS
XP Pro
Monitor
19" Samsung 940BW
ALIENIZED is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 01:08 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.25169 seconds with 9 queries