Click here to Skip to main content
15,888,113 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
AnswerRe: 100,000 Items in Check ListBox result in slow performance Pin
Dave Kreskowiak24-Feb-14 5:10
mveDave Kreskowiak24-Feb-14 5:10 
QuestionComboBox not receiving DataSet values? Pin
rsmldmv18-Feb-14 12:17
rsmldmv18-Feb-14 12:17 
I am trying to populate a ComboBox thru my business and data layer and it's not working for some reason. The data is there but the combobox isn't being populated. I'm using a Class that controls all passing of data from my UI to my Business Layer to my Data Layer. In my Class, I have a ComboBox control along with other controls and Data Types.

Below is the code that pertains to this functionality.

VB
    Private Sub frmEquipmentSetup_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        LoadIntervalComboBox()
        .
        .
        .
    End Sub

   'This is from the User Interface
    Private Sub LoadIntervalComboBox()
        Try
            InitializeErrorClass(EH)
            BL.LoadIntervalComboBox(EH)

            If EH.ErrorMessage = "" Then
                cmbCDInterval = EH.Combo                'There is no data now
            End If

            EH.ErrorMessage = ""

        Catch ex As Exception
            EH.ErrorMessage = "LoadIntervalComboBox() - " & ex.Message & "~E"
        End Try

        EH.ProcessMessages(Me, sbr, EH.ErrorMessage)
    End Sub
   '
   '
   'This SubProcedure is in a Module File
    Public Sub InitializeErrorClass(ByRef EH As ErrorHandling.ErrorHandler)
        Try
            EH.DataSet = New DataSet
            EH.DataTable = New DataTable
            EH.ErrorMessage = ""
            EH.Character = ""
            EH.Bool = False
            EH.Number = 0
            EH.Combo = New ComboBox
            EH.Exception = Nothing

        Catch ex As Exception
            EH.ErrorMessage = "cmbInitializeErrorClass() - " & ex.Message & "~E"
        End Try
    End Sub
   '
   '
   'This Function is in the Business Layer (BL)
    Public Function LoadIntervalComboBox(ByRef EH As ErrorHandling.ErrorHandler)
        Try
            Dim strFields As String = "interval_ID,interval"
            Dim strTblID As String = "LKUP_CalInterval"
            Dim strCriteria As String = "active <> 0"
            Dim strOrderBy As String = ""

            DL.GetData(strTblID, strFields, strCriteria, strOrderBy, EH)     'This Function is in the Data Layer

            If EH.DataSet.Tables(0).Rows.Count > 0 Then
                EH.Combo.DataSource = Nothing
                EH.Combo.DataSource = EH.DataSet.Tables(0)   'At this point there IS data in the table
                EH.Combo.DisplayMember = "interval"
                EH.Combo.ValueMember = "interval_ID"
                EH.Combo.SelectedIndex = -1
            End If

        Catch ex As Exception
            EH.ErrorMessage = "LoadIntervalComboBox() - " & ex.Message & "~E"
        End Try

        Return EH
    End Function
   '
   '
   '
Imports System.Windows.Forms

Public Class ErrorHandler
    'This single variable is used to hold System Warning/Error Messages. It is contained in every Form Module and 
    'Class Module where there is Logic

    Public gTimeOut As Integer = 0
    Public gSplashTimer As Integer = 0
    Public gMessageTimer As Integer = 0

    Public gblnHalt As Boolean = False
    Public gblnEscape As Boolean = False
    Public gblnPause As Boolean = False
    Public gblnMessageTimer As Boolean = False
    Public gblnFlashMessage As Boolean = False
    Public gblnHideMenuIcons As Boolean = False

    Public WithEvents tmrMessage As New Timer
    Public gSBR As New StatusStrip

    Public Property ErrorMessage As String
    Public Property Number As Integer
    Public Property Character As String
    Public Property DataTable As DataTable
    Public Property DataSet As DataSet
    Public Property Exception As Exception
    Public Property Bool As Boolean
    Public Property Miscellaneous As String

    Public Combo As ComboBox
    .
    .
    .

Blake McKenna


modified 18-Feb-14 18:23pm.

QuestionRe: ComboBox not receiving DataSet values? Pin
Eddy Vluggen19-Feb-14 8:01
professionalEddy Vluggen19-Feb-14 8:01 
QuestionAutomatically open Hyperlink in NeoOffice (VBA?) Pin
Member 1060384017-Feb-14 9:30
Member 1060384017-Feb-14 9:30 
SuggestionRe: Automatically open Hyperlink in NeoOffice (VBA?) Pin
Richard MacCutchan17-Feb-14 21:32
mveRichard MacCutchan17-Feb-14 21:32 
GeneralRe: Automatically open Hyperlink in NeoOffice (VBA?) Pin
Member 1060384017-Feb-14 22:42
Member 1060384017-Feb-14 22:42 
GeneralRe: Automatically open Hyperlink in NeoOffice (VBA?) Pin
Richard MacCutchan18-Feb-14 2:47
mveRichard MacCutchan18-Feb-14 2:47 
Questionvb.net Pin
SURAJIT UPADHYAY15-Feb-14 0:16
SURAJIT UPADHYAY15-Feb-14 0:16 
AnswerRe: vb.net Pin
Richard MacCutchan15-Feb-14 1:42
mveRichard MacCutchan15-Feb-14 1:42 
AnswerRe: vb.net Pin
Simon_Whale17-Feb-14 22:05
Simon_Whale17-Feb-14 22:05 
QuestionLibrary not registered in excel 2013 vba Pin
Samoeurn13-Feb-14 21:41
Samoeurn13-Feb-14 21:41 
AnswerRe: Library not registered in excel 2013 vba Pin
Richard MacCutchan13-Feb-14 21:56
mveRichard MacCutchan13-Feb-14 21:56 
GeneralRe: Library not registered in excel 2013 vba Pin
Samoeurn13-Feb-14 22:27
Samoeurn13-Feb-14 22:27 
GeneralRe: Library not registered in excel 2013 vba Pin
Richard MacCutchan13-Feb-14 22:59
mveRichard MacCutchan13-Feb-14 22:59 
AnswerRe: Library not registered in excel 2013 vba Pin
Eddy Vluggen13-Feb-14 22:33
professionalEddy Vluggen13-Feb-14 22:33 
GeneralRe: Library not registered in excel 2013 vba Pin
MyOwnBoss7-Mar-14 13:10
MyOwnBoss7-Mar-14 13:10 
QuestionSend a Text Message to a Cell Phone from a VB.NET Application Pin
SURAJIT UPADHYAY13-Feb-14 18:56
SURAJIT UPADHYAY13-Feb-14 18:56 
AnswerRe: Send a Text Message to a Cell Phone from a VB.NET Application Pin
Richard MacCutchan13-Feb-14 21:54
mveRichard MacCutchan13-Feb-14 21:54 
AnswerRe: Send a Text Message to a Cell Phone from a VB.NET Application Pin
Simon_Whale13-Feb-14 22:21
Simon_Whale13-Feb-14 22:21 

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.