Click here to Skip to main content
15,905,028 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Importing XLS file to DataTable Pin
dan!sh 9-Sep-08 9:13
professional dan!sh 9-Sep-08 9:13 
GeneralRe: Importing XLS file to DataTable Pin
Codemonkey859-Sep-08 9:23
Codemonkey859-Sep-08 9:23 
AnswerRe: Importing XLS file to DataTable Pin
DrukenProgrammer9-Sep-08 8:58
DrukenProgrammer9-Sep-08 8:58 
GeneralRe: Importing XLS file to DataTable Pin
Codemonkey859-Sep-08 9:05
Codemonkey859-Sep-08 9:05 
GeneralRe: Importing XLS file to DataTable Pin
DrukenProgrammer9-Sep-08 9:12
DrukenProgrammer9-Sep-08 9:12 
GeneralRe: Importing XLS file to DataTable Pin
Codemonkey859-Sep-08 9:23
Codemonkey859-Sep-08 9:23 
GeneralRe: Importing XLS file to DataTable Pin
DrukenProgrammer9-Sep-08 9:34
DrukenProgrammer9-Sep-08 9:34 
GeneralRe: Importing XLS file to DataTable Pin
Codemonkey859-Sep-08 9:43
Codemonkey859-Sep-08 9:43 
Questionform name as a property of a custom control Pin
Randana9-Sep-08 4:38
Randana9-Sep-08 4:38 
AnswerRe: form name as a property of a custom control Pin
Manas Bhardwaj9-Sep-08 4:40
professionalManas Bhardwaj9-Sep-08 4:40 
GeneralRe: form name as a property of a custom control Pin
Randana9-Sep-08 4:45
Randana9-Sep-08 4:45 
AnswerWhy just the form name? Pin
Gregory Gadow9-Sep-08 8:05
Gregory Gadow9-Sep-08 8:05 
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 

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.