What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Need VB help(Visual Basic)

Pages: (5): « First « 1 2 3 4 [ 5 ] Last »
Need VB help(Visual Basic)
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Need VB help(Visual Basic)
isn't it something like filelistbox1.selected.index ?
[Image: 1-0.png]
             
10-09-2005 11:17 PM
Profile PM Web Find Quote Report
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
O.P. RE: Need VB help(Visual Basic)
i dont know:S thats why i need help...i have a list of files in a filelistbox and when u double click on one it plays in the wmp control??
10-09-2005 11:24 PM
Profile E-Mail PM Find Quote Report
surfichris
Former Admin
*****

Avatar

Posts: 2365
Reputation: 81
Joined: Mar 2002
RE: Need VB help(Visual Basic)
I can't remember exactly, and don't have VB on the computer i'm currently using, but isn't it something like:

SelectedIndex contains the index of the current selected item - this will be an integer starting from zero.

To get the text of the selected item can't you use this?

Dim MyItem as String
MyItem = List1.Items(List1.SelectedIndex)
10-09-2005 11:50 PM
Profile PM Find Quote Report
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
O.P. RE: Need VB help(Visual Basic)
i dont know:S i dont know anything at all about this:S it was it my book and i cant find any online tutorials on it...
10-09-2005 11:53 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Need VB help(Visual Basic)
quote:
Originally posted by Chris Boulton
To get the text of the selected item can't you use this?
Dim MyItem as String
MyItem = List1.Items(List1.SelectedIndex)
Yep, only it is "ListIndex". "SelectedIndex" is from VB.NET...

quote:
Originally posted by dylan!
and i cant find any online tutorials on it...
ermmm.... google "vb filelistbox"... How many tuts do you want?? The net is bulking with simple examples like you want, all you need to do is clicking, reading and learning...

quote:
Originally posted by dylan!
i dont know:S i dont know anything at all about this:S it was it my book and i cant find any online tutorials on it...
I pointed you earlier to the msdn library... Look up the FileListBox there and read about its properties like "ListIndex".

I'm sure even in your book there is info on how to get a current selected item of a list as this is something very basic to know.

And in the VB IDE if you type the name of the FileListBox control and put a point after it (to enter one of its properties) you also get a list of the available properties. Look them up!

PS: if you have a hard time doing VB stuff, I really really really suggest to get to the library and rent some beginners book and read it from the start and don't jump to things before you understand for 500% the previous pages. And thus follow each given example to the letter and experiment with it until you fully understand everything before you go to the next page...

Start by understanding and learning how to use the VB IDE (eg: to get a list of properties of controls, etc...) before you start to program.

;)

This post was edited on 10-10-2005 at 12:48 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-10-2005 12:13 AM
Profile PM Find Quote Report
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
O.P. RE: Need VB help(Visual Basic)
yeah ok i got books form the library...2...2 HUGE books ive been reading for a month...BUT a new problem has evolved...i dont got the Play alternative or w.e its called but i have stop pause ect...
10-10-2005 07:07 PM
Profile E-Mail PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Need VB help(Visual Basic)
Why don't you stop the project you are working on and start simple things, like manipulating variables and stuff... You have to understand why things work certain ways, and if you just keep asking here you will  know what to do, but not why.

Start with simple things, learn how to use a simple listbox after that you can make it more difficult.

I'm not trying to piss you off or anything like that, i'm just saying as cookie has said many times, start with the easy stuff, learn why things behave like they do, and work onwards from that.

I myselve just started learning VB.NET and i'm making dull programs that open bmp's and change simple variables, but eventually i'll be abled to make bigger and more advanced programs.

Just take it one step at a time, and you'll learn much quicker and better
[Image: 1-0.png]
             
10-10-2005 07:31 PM
Profile PM Web Find Quote Report
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
O.P. RE: Need VB help(Visual Basic)
ok so im back...this time its not the simple problems8-) i want to take information from like a rss thing...i want a dictionary...so how would i take information from like a site without writing a dictionary myself?
10-22-2005 05:49 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Need VB help(Visual Basic)
Sorry, but as you can read in this thread yourself you weren't able to handle easy stuff properly (or not at all). You simply copy/pasted the examples given to you which were meant to be studied and above all to be adapted to your own program instead.

So, in order to explain how to do such things as you ask, we need to write a book, as you don't have any basis.


quote:
Originally posted by Ezra
start with the easy stuff, learn why things behave like they do, and work onwards from that.
(...)
Just take it one step at a time, and you'll learn much quicker and better

This post was edited on 10-22-2005 at 02:05 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-22-2005 02:05 PM
Profile PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Need VB help(Visual Basic)
God sake dylan, if you can't do it, don't try.

Maybe you should learn the basics before you try, fail, give up, and come here for answers.
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
10-22-2005 02:53 PM
Profile PM Web Find Quote Report
Pages: (5): « First « 1 2 3 4 [ 5 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On