Go Back   Gaming Gutter > Non-Gaming > Programming > Tutorials


Tutorials - Looking for programming tutorials to increase your knowledge? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Fastest Way To Get...
Today 11:20 AM
by Sicklez
Last post by Footballer
Today 11:56 AM
9 Replies, 10 Views
Go to first new post buying 3mnth+ accs with...
Today 11:56 AM
Last post by Belle Epoque
Today 11:56 AM
0 Replies, 1 Views
Go to first new post This account has been...
Today 11:49 AM
Last post by lolatquilts
Today 11:53 AM
1 Replies, 2 Views
Go to first new post Selling 43 month neopets...
Today 05:09 AM
Last post by drdd10
Today 11:52 AM
1 Replies, 2 Views
Go to first new post Irritating computer...
Today 09:48 AM
Last post by DarkenedSky
Today 11:52 AM
16 Replies, 17 Views
Reply
 
LinkBack Thread Tools Display Modes

 [vb6] List Boxes
Old 04-27-2007, 09:43 PM   #1 (permalink)
Rockage Rockage is offline Gender Male
Banned
 
Rockage is offline
Join Date: Feb 2007
Posts: 87
iTrader: -1 / 0%
Rockage Is gaining popularity
Rep Power: 0
[vb6] List Boxes

1 start a new project, standard exe
2 add two list boxs two form1
3 make the list boxes share about half the space of the form, each fully visible
4 open the code window and add the following code to the Load event:
Code:
Private Sub Form_Load() ' when the form loads....
    List1.AddItem "Rockage" ' add this along with the following to the one list
    List1.AddItem "owns"
    List1.AddItem "you"
    List1.AddItem "so"
    List1.AddItem "bad"
    End Sub
5 add the following code to the DblClick() event of list1:
Code:
Private Sub List1_DblClick()' when an item is double clicked on the first list
    List2.AddItem List1.Text' add that item to list two,
    List1.RemoveItem List1.ListIndex' remove that item from list one
End Sub
6 add the following code to the DblClick() event of list2:
Code:
Private Sub List2_DblClick()' when in item is double clicked on the second list
    List1.AddItem List2.Text' add that item to list two
    List2.RemoveItem List2.ListIndex' and remove that item from list two
End Sub
7 run the program

more to come ~!
  Reply With Quote

 
Old 04-27-2007, 10:04 PM   #2 (permalink)
second2none second2none is offline Gender Male
Underground
 
second2none is offline
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,023
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
Rep Power: 15
How to I add different colours to different lines? Subaru had it dont but he cant remember how? do you know how?
__________________
This is from:
Screenies Of A Mod
Code:
How did you do it? FLP , jotform, some other form of hacking? - First Class Noob
Lawl.. funny shit.

Quote:
Originally Posted by Kore
By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive.
Lawl Ownt

Hoes forgot to eat a dick and shut the FUCK UP!
  Reply With Quote

 
Old 04-27-2007, 10:06 PM   #3 (permalink)
Rockage Rockage is offline Gender Male
Banned
 
Rockage is offline
Join Date: Feb 2007
Posts: 87
iTrader: -1 / 0%
Rockage Is gaining popularity
Rep Power: 0
I think so...Instead of doing <code> Do <php>
  Reply With Quote

 
Old 04-27-2007, 10:07 PM   #4 (permalink)
second2none second2none is offline Gender Male
Underground
 
second2none is offline
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,023
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
Rep Power: 15
xD I mean in the Listboxes xD not VBulletin xD
__________________
This is from:
Screenies Of A Mod
Code:
How did you do it? FLP , jotform, some other form of hacking? - First Class Noob
Lawl.. funny shit.

Quote:
Originally Posted by Kore
By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive.
Lawl Ownt

Hoes forgot to eat a dick and shut the FUCK UP!
  Reply With Quote

 
Old 04-28-2007, 08:19 AM   #5 (permalink)
Rockage Rockage is offline Gender Male
Banned
 
Rockage is offline
Join Date: Feb 2007
Posts: 87
iTrader: -1 / 0%
Rockage Is gaining popularity
Rep Power: 0
oh lmao, No I dont :( sorry
  Reply With Quote
Reply

Bookmarks



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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 11:56 AM.


vBulletin skin developed by: eXtremepixels
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.17042398 seconds (100.00% PHP - 0% MySQL) with 19 queries