• Welcome to Valhalla Legends Archive.
 

[CSB; any language] Adding channels to a channel list

Started by Yegg, August 27, 2004, 05:02 PM

Previous topic - Next topic

Yegg

Im just added a channel list to my bot. So far it has an add command, remove command, and a join command. I cant figure out how to get the add command to work. I know if I can get the right code in remove channel will work too. Can anybody help me with using the right code?(By the way my bot uses CSB)

[Kp edit: gave the thread a much better title.  "Adding Channels" is misleading and not very helpful.  Left the body of the text alone.]

Blaze

What are you using for you channel list? listbox? ListView?
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

Yegg


LordNevar

Private Sub cmdAddChannel_Click()
       lstviewName.ListItems.add , ,  ChanneltxtLabelname.text
       ChanneltxtLabelname.text = ""
       lstviewName.Refresh
End Sub


Hope this is what your looking for.

A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
The greatest trick the Devil ever pulled, was convincing the world he didn't exsist.

Banana fanna fo fanna


Kp

Quote from: $t0rm on August 28, 2004, 09:03 AMThis is more of a VB question methinks.

I thought so as well, but I couldn't tell whether to banish it to VB Programming (VB6 question) or to .net programming (VB7 question) until the poster responded, and it had been answered before I came back and found it.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

LordNevar

Well I already gave him the answer, so I don't think it matters much where it's moved too. Besides, he said any language, but isn't CSB only useable in VB platforms?

A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
The greatest trick the Devil ever pulled, was convincing the world he didn't exsist.

Kp

Quote from: LordNevar on August 28, 2004, 11:53 AMWell I already gave him the answer, so I don't think it matters much where it's moved too. Besides, he said any language, but isn't CSB only useable in VB platforms?

No, on both counts. :)  If you read the edit note I left in his post, his title was "Adding Channels".  I found that to be horribly useless as a title, so I gave the thread a better title.  Since he had not specified the language at the time, I marked it "any language".  As regards CSB usability: it can be used from any language that can handle COM (though generally VB is the only language that makes COM trivial enough for CSB-dummies to use it); in any other COM language, you're going to be moderately advanced by the time you get COM working, at which point you have to ask whether you really want to use CSB since you are advanced. :)
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

LordNevar


A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
The greatest trick the Devil ever pulled, was convincing the world he didn't exsist.