Click here to Skip to main content
15,923,689 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: License not found error for dirDDBox and dirListBox Pin
Andraw Tang11-May-10 10:51
Andraw Tang11-May-10 10:51 
GeneralRe: License not found error for dirDDBox and dirListBox Pin
Andraw Tang11-May-10 11:10
Andraw Tang11-May-10 11:10 
QuestionVB bound data combo boxes. [SOLVED] Pin
ahulting11-May-10 3:01
ahulting11-May-10 3:01 
AnswerRe: VB bound data combo boxes. Pin
Johan Hakkesteegt11-May-10 3:11
Johan Hakkesteegt11-May-10 3:11 
GeneralRe: VB bound data combo boxes. Pin
ahulting11-May-10 3:14
ahulting11-May-10 3:14 
GeneralRe: VB bound data combo boxes. Pin
Johan Hakkesteegt11-May-10 3:20
Johan Hakkesteegt11-May-10 3:20 
GeneralRe: VB bound data combo boxes. Pin
ahulting11-May-10 6:14
ahulting11-May-10 6:14 
AnswerRe: VB bound data combo boxes. Pin
William Winner11-May-10 6:21
William Winner11-May-10 6:21 
First issue I see...you handled both the SelectedIndexChanged and SelectedValueChanged event for the TitleBox1 control. That means that event will actually fire twice.

Second, you're wasting memory with your array declarations...as in
VB
Dim val(2) As String

That actually creates an array with 3 values, when all you need is one. I understand that you used 0 for one item, 1 for another and 2 for the other, but that's completely unnecessary.

Actually, it's completely unnecessary to have val or ItemSelected. It's a waste of memory. You could just do:
VB
j = tldv.Find(TitleBox1.SelectedValue)


I also don't understand what you're trying to populate PUBLISHERTextBox with. Your comments at the beginning say
VB
'populates titles info from master title list table with SKU

for all of the last three methods, but you actually populate it with different columns.

And, I agree with the other responder...you shouldn't be creating new DataViews and repopulating each time.

And his question about where does it occur, meant on which line does the error occur? Yes, you've said it's the second time you do it, but on which line do you get an error the second time?

Also, do you realize that in your SKU and UPC methods, you get your ItemSelected from TitleBox1?
VB
Private Sub SKUBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SKUBox1.SelectedIndexChanged
        Dim ItemSelected As String
        ItemSelected = TitleBox1.SelectedValue

Is that what you meant to do? Because if you didn't select anything from TitleBox1 the before the others, there will be no value in TitleBox1.
GeneralRe: VB bound data combo boxes. Pin
ahulting11-May-10 6:28
ahulting11-May-10 6:28 
QuestionHow to run a .bat file in vb application? Pin
Orchid8510-May-10 19:17
Orchid8510-May-10 19:17 
AnswerRe: How to run a .bat file in vb application? Pin
Abhinav S10-May-10 19:46
Abhinav S10-May-10 19:46 
AnswerRe: How to run a .bat file in vb application? Pin
Johan Hakkesteegt11-May-10 3:34
Johan Hakkesteegt11-May-10 3:34 
AnswerRe: How to run a .bat file in vb application? Pin
Luc Pattyn11-May-10 4:19
sitebuilderLuc Pattyn11-May-10 4:19 
GeneralRe: How to run a .bat file in vb application? Pin
Orchid8511-May-10 20:33
Orchid8511-May-10 20:33 
GeneralRe: How to run a .bat file in vb application? Pin
Luc Pattyn12-May-10 1:43
sitebuilderLuc Pattyn12-May-10 1:43 
AnswerRe: How to run a .bat file in vb application? Pin
The Man from U.N.C.L.E.11-May-10 7:02
The Man from U.N.C.L.E.11-May-10 7:02 
QuestionCannot load control [ControlName]; license not found. Pin
Andraw Tang10-May-10 10:53
Andraw Tang10-May-10 10:53 
AnswerRe: Cannot load control [ControlName]; license not found. Pin
William Winner10-May-10 11:02
William Winner10-May-10 11:02 
AnswerRe: Cannot load control [ControlName]; license not found. Pin
DaveAuld10-May-10 11:24
professionalDaveAuld10-May-10 11:24 
GeneralRe: Cannot load control [ControlName]; license not found. Pin
Andraw Tang10-May-10 11:30
Andraw Tang10-May-10 11:30 
GeneralRe: Cannot load control [ControlName]; license not found. Pin
DaveAuld10-May-10 11:43
professionalDaveAuld10-May-10 11:43 
GeneralRe: Cannot load control [ControlName]; license not found. Pin
Andraw Tang10-May-10 11:45
Andraw Tang10-May-10 11:45 
GeneralRe: Cannot load control [ControlName]; license not found. Pin
DaveAuld10-May-10 11:48
professionalDaveAuld10-May-10 11:48 
GeneralRe: Cannot load control [ControlName]; license not found. Pin
Andraw Tang10-May-10 11:50
Andraw Tang10-May-10 11:50 
GeneralRe: Cannot load control [ControlName]; license not found. Pin
Andraw Tang10-May-10 12:01
Andraw Tang10-May-10 12:01 

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.