Click here to Skip to main content
15,911,132 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Running VB6 programs in Windows 7 Pin
Wycombe25-Feb-14 5:01
Wycombe25-Feb-14 5:01 
GeneralRe: Running VB6 programs in Windows 7 Pin
Dave Kreskowiak25-Feb-14 6:47
mveDave Kreskowiak25-Feb-14 6:47 
AnswerRe: Running VB6 programs in Windows 7 Pin
MyOwnBoss7-Mar-14 13:02
MyOwnBoss7-Mar-14 13:02 
QuestionMulti Select List box to Word 2007 table Pin
Member 791951624-Feb-14 8:20
Member 791951624-Feb-14 8:20 
QuestionUpdating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan23-Feb-14 23:25
Dan O'Riordan23-Feb-14 23:25 
AnswerRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Eddy Vluggen24-Feb-14 7:53
professionalEddy Vluggen24-Feb-14 7:53 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan24-Feb-14 18:42
Dan O'Riordan24-Feb-14 18:42 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Eddy Vluggen25-Feb-14 0:28
professionalEddy Vluggen25-Feb-14 0:28 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan25-Feb-14 1:04
Dan O'Riordan25-Feb-14 1:04 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Eddy Vluggen25-Feb-14 3:04
professionalEddy Vluggen25-Feb-14 3:04 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan25-Feb-14 3:29
Dan O'Riordan25-Feb-14 3:29 
QuestionHow do I use ErrorProvider with a bound UserControl? (WinForms) Pin
GroupIII20-Feb-14 17:46
GroupIII20-Feb-14 17:46 
AnswerRe: How do I use ErrorProvider with a bound UserControl? (WinForms) Pin
Eddy Vluggen20-Feb-14 22:30
professionalEddy Vluggen20-Feb-14 22:30 
Question100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani19-Feb-14 7:04
Arun Peswani19-Feb-14 7:04 
AnswerRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen19-Feb-14 8:11
professionalEddy Vluggen19-Feb-14 8:11 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani19-Feb-14 16:09
Arun Peswani19-Feb-14 16:09 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen20-Feb-14 0:29
professionalEddy Vluggen20-Feb-14 0:29 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani20-Feb-14 5:35
Arun Peswani20-Feb-14 5:35 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen20-Feb-14 8:45
professionalEddy Vluggen20-Feb-14 8:45 
If you got a few days, we'll take it in a few steps.

Arun Peswani wrote:
Does it help you to help me further?
Yes, familiar pattern, might actually have something similar - without dates. Can you also tell us the column-types used? I'd also like to know if there's any indexes defined on that. If yes, then we'll look at optimizing the query tomorrow.

Arun Peswani wrote:
I noticed one more thing today, creating a long string ITEMS, which I am using in above query, is also taking a very long time.
Doing a lot costs a lot. Let's see;
VB
Dim ITEMS as String = "'" & CheckListBox.Item(0) & "'"
For int i = 1 To CheckListBox.Count - 1
ITEMS = ITEMS & "'" & CheckListBox(i) & "'"
Next

VB
Private CheckListBox As New CheckedListBox
    Sub method1()
        Dim sb = New System.Text.StringBuilder() ' use stringbuilder
        For Each checkedThingy In CheckListBox.CheckedItems ' only add thing you know are checked 
                                                             ' this loop is smaller than "all rows"
            sb.AppendFormat("'{0}',", checkedThingy)
        Next
        Dim ITEMS As String = sb.ToString()
    End Sub


Arun Peswani wrote:
How do I need to convert the selected items which can be used in above query?

Ideally, we'd have a list of the keys (Id's) coming from that selection, not words. You're selecting on a varchar field?
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani20-Feb-14 20:55
Arun Peswani20-Feb-14 20:55 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen21-Feb-14 6:43
professionalEddy Vluggen21-Feb-14 6:43 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani22-Feb-14 6:57
Arun Peswani22-Feb-14 6:57 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen24-Feb-14 7:35
professionalEddy Vluggen24-Feb-14 7:35 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
MyOwnBoss7-Mar-14 13:05
MyOwnBoss7-Mar-14 13:05 
AnswerRe: 100,000 Items in Check ListBox result in slow performance PinPopular
Richard MacCutchan19-Feb-14 22:09
mveRichard MacCutchan19-Feb-14 22:09 

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.