Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: tRiCksTa on January 22, 2005, 03:01 PM

Title: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 22, 2005, 03:01 PM
I know you guys said I would get help if I just asked. Well, here I go.

When I connect, i get this error saying

Run-Time Error '35613'

ImageList must be initialized before it can be used.

What is wrong? If you want to see code or something just ask.

Title: Re: ImageList must be initialized before it can be used.
Post by: Hdx on January 22, 2005, 03:08 PM
right click your channel ist or w/e your getting the error with, and goto the "Image lists" tab and add the image lsit object there.
(http://img119.exs.cx/img119/5347/imglst2lm.gif)
~-~(HDX)~-~
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 22, 2005, 03:17 PM
Thanks! For some reason i dont see any icons. Im seeing the channel like this.



Username1              Username 2




Username 3             Username 4




Username 5             Etc



Exactly like that with no icons.. Anyone know y?           
Title: Re: ImageList must be initialized before it can be used.
Post by: CrAz3D on January 22, 2005, 03:22 PM
Post your code that adds the username & icon to the imagelist.
Title: Re: ImageList must be initialized before it can be used.
Post by: Eric on January 22, 2005, 05:38 PM
Change the listview's view property.
Title: Re: ImageList must be initialized before it can be used.
Post by: Hdx on January 22, 2005, 06:02 PM
Change your List view to a ReportView in the properties.
(http://img30.exs.cx/img30/3821/rtp0le.png)
~-~(HDX)~-~
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 22, 2005, 06:06 PM
THanks guys you guys are the best, especially you HdxBmx27 and all who helped!  ;)
Title: Re: ImageList must be initialized before it can be used.
Post by: Hdx on January 22, 2005, 06:09 PM
You might also want to look intot he Column Headers tab, and .ListSubItems if you want to add Ping Icons to.
~-~(HDX)~-~
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 22, 2005, 06:33 PM
HdxBmx27, do you have AIM or something?
Title: Re: ImageList must be initialized before it can be used.
Post by: Hdx on January 22, 2005, 07:48 PM
Just ask here, I dont like people msging me on AIM.
~-~(HDX)~-~
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 22, 2005, 07:59 PM
Um.. one more problem. When I try to get someone's profile, nothing comes up. Heres my code


Private Sub cmdCancel_Click()
Unload Me
End Sub

Private Sub Form_Load()
txtusername.Text = frmMain.lvChannel.SelectedItem
frmMain.CleanSlateBot1.RequestKey profile, frmMain.lvChannel.SelectedItem, "Profile\Age", "Profile\Location", "Profile\Sex", "Profile\Description"
End Sub
Title: Re: ImageList must be initialized before it can be used.
Post by: Hdx on January 22, 2005, 08:03 PM
Sorry I dont help with CSB, and i didnt liek it when u msged me when i said not to -.-
If you want to get out of CSB and go Self Parsing, then I'll help -.-
~-~(HDX)~-~
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 22, 2005, 08:07 PM
eh.. whats wrong with CSb..  :( sorry that i messaged you but..  :-\ come on..  ???
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 22, 2005, 11:01 PM
Can someone please help? Hdx isn't helping me anymore ??? . I know its CSB, but I'm new.. is CSB that bad that one would feel ashamed to help another that uses it.  ::)
Title: Re: ImageList must be initialized before it can be used.
Post by: Hdx on January 23, 2005, 12:22 AM
Quote from: -^heXaBLeS^- on January 22, 2005, 11:01 PMis CSB that bad that one would feel ashamed to help another that uses it.
To me, Yes. It allows people who know next to nothing about programming, produce run-of-the-mill bots, that noone will use, and are jsut an annoyance. 'Specilly when the creators of those bots think thet they are the worlds greatest programer jsut cuz they made a b.net bot with CSB.

Like I said, if you want to acually work hard on your bot, and produce a respectible bot, use winsock orother form of internet connection, where you acually pare your own packets. BNetAuth and BNLS are jsut fine, I just dont like CSB. Its basiclly easier then telnet.

Note: I'm not saying everyone has my opinion, This is just my point of view. From my own exp with csb, it was one of the worst things i've ever done in my programming attempts.
Note2: I do not think ALL users of CSB are pricks, but i've jsut had my bad shair.
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 23, 2005, 11:42 PM
Judging from the lack of posts (not counting Hdx) I'm not gonna get any help at all?  :( what happened to the just post and we will help.  :'(
Title: Re: ImageList must be initialized before it can be used.
Post by: Newby on January 24, 2005, 12:07 AM
Quote from: -^heXaBLeS^- on January 22, 2005, 07:59 PM
Private Sub Form_Load()
txtusername.Text = frmMain.lvChannel.SelectedItem
frmMain.CleanSlateBot1.RequestKey profile, frmMain.lvChannel.SelectedItem, "Profile\Age", "Profile\Location", "Profile\Sex", "Profile\Description"
End Sub
Are you parsing the incoming profile data?
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 24, 2005, 12:30 AM
It already is
Title: Re: ImageList must be initialized before it can be used.
Post by: Eric on January 24, 2005, 04:31 AM
Quote from: -^heXaBLeS^- on January 23, 2005, 11:42 PM
Judging from the lack of posts (not counting Hdx) I'm not gonna get any help at all?  :( what happened to the just post and we will help.  :'(

There's a few reasons why you're not getting as much help as you'd like.

Your lack of respect towards the people who are trying to help you is pushing those who want to help you away.  Statements such as "Judging from the lack of posts (not counting Hdx) I'm not gonna get any help at all?" are not going to get you help faster.

The answers to most of your questions are all well within your reach.  Through a simple click of the search button, you can find various topics covering your questions in full-detail.  The people who've discussed these topics again and again have grown tired of participating in yet another discussion of material that has not changed since the previous times discussed every time the question comes up which is perfectly understandable.  So, before posting a new thread, you're expected to search.  CSB is one of those things, as is adding icons to your listview.

We won't always be here to give you a step by step layout of what you need to do.  You're expected to be somewhat well-educated before you come here, ofcourse no where near novice, but atleast understanding how to use your IDE — a listview's property window for example.  At some point you will have to learn how to help yourself, or atleast build yourself a foundation which we can help to build apon.
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 24, 2005, 10:13 AM
I didn't mean to be mean. I didn't even know I was mean.  :( I just don't get why people hate CSB so much. As long as a bot can connect, then it's fine.
Title: Re: ImageList must be initialized before it can be used.
Post by: Eric on January 24, 2005, 10:29 AM
Quote from: -^heXaBLeS^- on January 24, 2005, 10:13 AM
As long as a bot can connect, then it's fine.

That attitude, which is commonly seen in CSB users, is one of the reasons why people look down apon CSB, as well as those who use it.
Title: Re: ImageList must be initialized before it can be used.
Post by: Dyndrilliac on January 24, 2005, 10:42 AM
http://forum.valhallalegends.com/phpbbs/index.php?topic=6095.0
http://forum.valhallalegends.com/phpbbs/index.php?topic=2764.0

http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=13
http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=12
http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=11

Please search.
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 24, 2005, 11:09 AM
What.. attitude..?   ??? And I have to start out with something small first. This is my first bot so shouldnt I be working with CSB?
Title: Re: ImageList must be initialized before it can be used.
Post by: MyndFyre on January 24, 2005, 11:45 AM
Quote from: -^heXaBLeS^- on January 24, 2005, 11:09 AM
What.. attitude..?   ??? And I have to start out with something small first. This is my first bot so shouldnt I be working with CSB?

Something small as a project should be a calculator or a database project, not a bot.  You should learn the language through something besides making a bot; in other words, you shouldn't be learning the language exclusively for making a bot.

For a more in-depth review as to why people tend to dislike copying code and probably as much why we don't like CSB, refer to my post (http://forum.valhallalegends.com/phpbbs/index.php?topic=10141.msg95015#msg95015) on code leeching.  The reason it applies to CSB is that CSB users tend to do exactly the same thing as code leechers: they learn just enough to not know how to search for information and help themselves.
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 24, 2005, 12:43 PM
@MindFyre: I made a calculator already  ;) . Plus, I know CSB is bad, but once I get a hang of it I might start on hashed bots. I do search, it's just not the answer I'm wanting.

Oh yeah, and I can view profiles now. I fixed it myself -.- , but..... it can only view profiles only if you update your own first. I dont know why .
Title: Re: ImageList must be initialized before it can be used.
Post by: Dyndrilliac on January 24, 2005, 12:52 PM
Quote from: -^heXaBLeS^- on January 24, 2005, 12:43 PMI do search, it's just not the answer I'm wanting.

Oh yeah, and I can view profiles now. I fixed it myself -.- , but..... it can only view profiles only if you update your own first. I dont know why .

Note that my post contained all the information you needed regarding profiles - both CSB and non-CSB.
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 24, 2005, 12:58 PM
I know thx Dyndrilliac  ;) If anyone wants to help, how come my profile needs to be updated in order to see other people's profile. If you need code or something just ask.  :-\
Title: Re: ImageList must be initialized before it can be used.
Post by: Newby on January 24, 2005, 07:21 PM
Quote from: -^heXaBLeS^- on January 24, 2005, 12:58 PM
I know thx Dyndrilliac  ;) If anyone wants to help, how come my profile needs to be updated in order to see other people's profile. If you need code or something just ask.  :-\
Your profile does not need to be updated in order to see another person's profile.

Show us coding when you request the keys, and when you receive and parse the keys.
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 24, 2005, 11:26 PM
txtusername.Text = frmMain.lvChannel.SelectedItem
frmMain.CleanSlateBot1.RequestKey profile, frmMain.lvChannel.SelectedItem, "Profile\Age", "Profile\Location", "Profile\Sex", "Profile\Description"


thats about all there is to it Lol  :P
Title: Re: ImageList must be initialized before it can be used.
Post by: Stealth on January 25, 2005, 10:27 AM
I believe it should be .SelectedItem.Text..? Try that.
Title: Re: ImageList must be initialized before it can be used.
Post by: tRiCksTa on January 25, 2005, 08:43 PM
Nope didnt work.  :( Thanks for trying though  :)