Click here to Skip to main content
15,887,398 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCreate a Semi Background Transparant Form Pin
pdnet9-Sep-08 3:58
pdnet9-Sep-08 3:58 
AnswerRe: Create a Semi Background Transparant Form Pin
Manas Bhardwaj9-Sep-08 4:13
professionalManas Bhardwaj9-Sep-08 4:13 
GeneralRe: Create a Semi Background Transparant Form Pin
pdnet9-Sep-08 19:15
pdnet9-Sep-08 19:15 
QuestionChecking "previously checked" items in a checkbox Pin
C0ley9-Sep-08 3:32
C0ley9-Sep-08 3:32 
AnswerRe: Checking "previously checked" items in a checkbox Pin
Wendelius9-Sep-08 9:09
mentorWendelius9-Sep-08 9:09 
GeneralRe: Checking "previously checked" items in a checkbox Pin
C0ley9-Sep-08 9:46
C0ley9-Sep-08 9:46 
GeneralRe: Checking "previously checked" items in a checkbox Pin
Wendelius9-Sep-08 10:10
mentorWendelius9-Sep-08 10:10 
GeneralRe: Checking "previously checked" items in a checkbox Pin
C0ley10-Sep-08 0:05
C0ley10-Sep-08 0:05 
Hi Mika, unfortunately that didn't work.

To make it easier, and forgetting database access for a while, I can narrow it down to the following issue. Hopefully this might help you to find the root of the problem, and to identify where I'm going wrong!!!

The problem is that I have searched through the listbox properties, and cannot find a way of getting the tags from each of the items in a listbox through a FOR loop. What I would like to do is something like this:

Dim i as integer = 0<br />
<br />
For i = 0 to (MyListBox.items.count - 1)<br />
<br />
   ' Attempt 1 - doesn't work (Tag isn't a property of Items anyway)<br />
<br />
   msgbox("The tag in this item is: " & MyListBox.Items.Tag(i))<br />
<br />
   ' Attempt 2 - doesn't work either (Tag is a property of the listbox, but it<br />
     does not seem to like being treated as an "array")<br />
<br />
   msgbox("The tag in this item is: " & MyListBox.Tag(i))<br />
<br />
Next


In both cases, the application compiles but returns an error message: "If a member in a class library has been removed, recompile any assemblies that reference that library". I am not certain what this means, but I'm guessing it is the fact that listboxes don't like their items being treated as "arrays".

I have also changed i = 0 to i = 1 in the forlorn hope that the listbox started at 1 rather than 0, but with no luck.

I'm sure there are ways around this, but I don't want to write pages of extra code if I'm just missing one line...

Thanks again, I really appreciate it!
GeneralRe: Checking "previously checked" items in a checkbox Pin
C0ley10-Sep-08 0:14
C0ley10-Sep-08 0:14 
GeneralFIXED - Checking "previously checked" items in a checkbox Pin
C0ley10-Sep-08 2:20
C0ley10-Sep-08 2:20 
GeneralRe: FIXED - Checking "previously checked" items in a checkbox Pin
Wendelius10-Sep-08 8:26
mentorWendelius10-Sep-08 8:26 
QuestionReport with vb-net Pin
zagari9-Sep-08 1:04
zagari9-Sep-08 1:04 
AnswerRe: Report with vb-net Pin
Dave Kreskowiak9-Sep-08 6:55
mveDave Kreskowiak9-Sep-08 6:55 
Questionsystem.data.datarowview as string Pin
Ebube9-Sep-08 0:56
Ebube9-Sep-08 0:56 
AnswerRe: system.data.datarowview as string Pin
Manas Bhardwaj9-Sep-08 1:35
professionalManas Bhardwaj9-Sep-08 1:35 
GeneralRe: system.data.datarowview as string Pin
Ebube9-Sep-08 3:37
Ebube9-Sep-08 3:37 
GeneralRe: system.data.datarowview as string Pin
Manas Bhardwaj9-Sep-08 3:52
professionalManas Bhardwaj9-Sep-08 3:52 
QuestionHow to invoke MQ series through classic ASP Pin
Member 26856239-Sep-08 0:05
Member 26856239-Sep-08 0:05 
QuestionHow we use INF-Tool for making setup Pin
Amit Battan Ror8-Sep-08 21:18
Amit Battan Ror8-Sep-08 21:18 
AnswerRe: How we use INF-Tool for making setup Pin
Manas Bhardwaj8-Sep-08 21:30
professionalManas Bhardwaj8-Sep-08 21:30 
Questiontype cast in vb.net Pin
rprateek8-Sep-08 17:51
rprateek8-Sep-08 17:51 
AnswerRe: type cast in vb.net Pin
Steven J Jowett8-Sep-08 18:18
Steven J Jowett8-Sep-08 18:18 
AnswerRe: type cast in vb.net Pin
rprateek8-Sep-08 18:28
rprateek8-Sep-08 18:28 
AnswerRe: type cast in vb.net Pin
Guffa8-Sep-08 21:16
Guffa8-Sep-08 21:16 
QuestionDataGridView Cell Change [modified] Pin
Fahim A8-Sep-08 17:03
Fahim A8-Sep-08 17:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.