Click here to Skip to main content
16,005,437 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Automation Error in VB6.0 Pin
Paul Conrad29-Oct-08 5:55
professionalPaul Conrad29-Oct-08 5:55 
GeneralRe: Automation Error in VB6.0 Pin
Pedram Behroozi29-Oct-08 5:57
Pedram Behroozi29-Oct-08 5:57 
AnswerRe: Automation Error in VB6.0 Pin
Jon_Boy29-Oct-08 5:49
Jon_Boy29-Oct-08 5:49 
GeneralRe: Automation Error in VB6.0 Pin
Pedram Behroozi29-Oct-08 5:52
Pedram Behroozi29-Oct-08 5:52 
GeneralRe: Automation Error in VB6.0 Pin
Paul Conrad29-Oct-08 5:53
professionalPaul Conrad29-Oct-08 5:53 
AnswerRe: Automation Error in VB6.0 Pin
Pedram Behroozi29-Oct-08 6:26
Pedram Behroozi29-Oct-08 6:26 
GeneralRe: Automation Error in VB6.0 Pin
Jon_Boy29-Oct-08 7:25
Jon_Boy29-Oct-08 7:25 
QuestionDetect Form Load Event is still happening Pin
langc33429-Oct-08 4:30
langc33429-Oct-08 4:30 
I am running some initializing code for the forms ComboBoxes in the Form Load event. I am populating some ComboBoxes using the ComboBox.DataSource = (Array of a type of object). The object is a listitem class, i set the DisplayMemeber equal to the display string in the object and ValueMember equal to the ID of the object, sample displaystring = ProductName and ID = ProductID.

The SelectedValueChanged event of the combobox triggers a repopulation of the products information for the selected product. The problem is the SelectedValueChanged event is triggering on the Form Load when the DataSource is set for the combobox. I do not want this event to happen during the Form Load event. I only want this event to trigger after the form has loaded and a user changes the SelectedValue or the SelectedValue is changed within code that is no fired off by the Form Load event.

Is there either a way to suppress the ComboBox events, SelectedValueChanged, SelectedIndexChanged, etc., or a way to detect that I am still in the Form Load event/state and conditionally use that to not execute the code in the SelectedValueChanged event?
AnswerRe: Detect Form Load Event is still happening Pin
Jon_Boy29-Oct-08 5:08
Jon_Boy29-Oct-08 5:08 
GeneralRe: Detect Form Load Event is still happening Pin
langc33429-Oct-08 7:02
langc33429-Oct-08 7:02 
Questioncreate properites and assign to object at rum time Pin
Member 450489129-Oct-08 3:55
Member 450489129-Oct-08 3:55 
AnswerRe: create properites and assign to object at rum time Pin
Dave Kreskowiak29-Oct-08 4:18
mveDave Kreskowiak29-Oct-08 4:18 
JokeRe: create properites and assign to object at rum time Pin
Paul Conrad29-Oct-08 5:04
professionalPaul Conrad29-Oct-08 5:04 
GeneralRe: create properites and assign to object at rum time Pin
Dave Kreskowiak29-Oct-08 5:39
mveDave Kreskowiak29-Oct-08 5:39 
GeneralRe: create properites and assign to object at rum time Pin
Paul Conrad29-Oct-08 5:43
professionalPaul Conrad29-Oct-08 5:43 
QuestionDll issue Pin
afridy29-Oct-08 1:55
afridy29-Oct-08 1:55 
AnswerRe: Dll issue Pin
Dave Kreskowiak29-Oct-08 2:20
mveDave Kreskowiak29-Oct-08 2:20 
GeneralRe: Dll issue Pin
afridy29-Oct-08 2:34
afridy29-Oct-08 2:34 
GeneralRe: Dll issue Pin
Dave Kreskowiak29-Oct-08 4:23
mveDave Kreskowiak29-Oct-08 4:23 
GeneralRe: Dll issue Pin
afridy29-Oct-08 6:31
afridy29-Oct-08 6:31 
GeneralRe: Dll issue Pin
afridy29-Oct-08 6:53
afridy29-Oct-08 6:53 
GeneralRe: Dll issue Pin
Dave Kreskowiak29-Oct-08 7:18
mveDave Kreskowiak29-Oct-08 7:18 
GeneralRe: Dll issue Pin
afridy29-Oct-08 7:30
afridy29-Oct-08 7:30 
QuestionProblem in Debugging Pin
vijaylumar29-Oct-08 0:04
vijaylumar29-Oct-08 0:04 
AnswerRe: Problem in Debugging Pin
Dave Kreskowiak29-Oct-08 2:18
mveDave Kreskowiak29-Oct-08 2:18 

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.