Click here to Skip to main content
15,920,633 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: clearing a combobox Pin
Asim N.9-Dec-05 2:39
Asim N.9-Dec-05 2:39 
QuestionCheck the instance of an object Pin
biglewy8-Dec-05 21:19
biglewy8-Dec-05 21:19 
AnswerRe: Check the instance of an object Pin
Asim N.8-Dec-05 23:22
Asim N.8-Dec-05 23:22 
QuestionDataBase Checking Table Exist or Not Pin
Sasmi8-Dec-05 19:51
Sasmi8-Dec-05 19:51 
AnswerRe: DataBase Checking Table Exist or Not Pin
abhinish8-Dec-05 23:38
abhinish8-Dec-05 23:38 
QuestionUsing Store Procedure that using dblink in VB.NET Pin
lucdt8-Dec-05 19:33
lucdt8-Dec-05 19:33 
QuestionHelp with a program within Network Programming in .net Pin
Delo8-Dec-05 16:04
Delo8-Dec-05 16:04 
QuestionCustom ComboBox Control Issue Pin
eatwork8-Dec-05 11:44
eatwork8-Dec-05 11:44 
Hi, everyone, thanks for viewing my post. I have a custom combobox that allows the user to type within the list and filter the options as the user types letters, and the combobox also allows the user to select a value from the list. The issue I am having is that I need to be able to either return -1 for the selected index if the user types a value that does not exist in the list, or return the selected value if the user selects a value from the list.
Code:
Private comb_companyName_SelectedIndexTextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles comb_companyName.SelectedIndexChanged, comb_companyName.TextChanged
Call Me.ucIMediator.addressCheckStatus()
If Me.comb_companyName.SelectedIndex >= 0 Then
Me.tcmediator.p_cId = Me.comb_companyName.SelectedValue
Else
Me.tcmediator.p_cId = Me.comb_companyName.SelectedIndex
End If
Me.lbl_companyInfoStatus.Text = Me.tcmediator.p_cId
Call Me.enableUserControls(False)
End Sub

The problem with this function is that it fires the two events everytime the index and text are changed. (Meaning I am calling the addressCheckStatus function twice, everytime the user selects one item from the list or types one character into the text area). Does anyone have any idea on how I can control this so that the event will only fire once. Thank you.

eatwork
AnswerRe: Custom ComboBox Control Issue Pin
Roy Heil8-Dec-05 13:38
professionalRoy Heil8-Dec-05 13:38 
QuestionSTARTING VB.NET Pin
Jkkenzie8-Dec-05 10:03
Jkkenzie8-Dec-05 10:03 
AnswerRe: STARTING VB.NET Pin
Christian Graus8-Dec-05 10:07
protectorChristian Graus8-Dec-05 10:07 
GeneralRe: STARTING VB.NET Pin
Jkkenzie8-Dec-05 10:13
Jkkenzie8-Dec-05 10:13 
AnswerRe: STARTING VB.NET Pin
Dave Kreskowiak8-Dec-05 11:44
mveDave Kreskowiak8-Dec-05 11:44 
QuestionCrystal Report and DataBase Login Pin
dptalt8-Dec-05 9:23
dptalt8-Dec-05 9:23 
QuestionCrystal Reports Preview Pin
projectcode18-Dec-05 8:52
projectcode18-Dec-05 8:52 
Questionhow to make dll Pin
giotis828-Dec-05 2:56
giotis828-Dec-05 2:56 
AnswerRe: how to make dll Pin
Christian Graus8-Dec-05 10:04
protectorChristian Graus8-Dec-05 10:04 
GeneralRe: how to make dll Pin
giotis828-Dec-05 20:53
giotis828-Dec-05 20:53 
GeneralRe: how to make dll Pin
Christian Graus9-Dec-05 10:35
protectorChristian Graus9-Dec-05 10:35 
GeneralRe: how to make dll Pin
giotis8211-Dec-05 21:19
giotis8211-Dec-05 21:19 
GeneralRe: how to make dll Pin
Christian Graus12-Dec-05 10:54
protectorChristian Graus12-Dec-05 10:54 
GeneralRe: how to make dll Pin
giotis8212-Dec-05 22:04
giotis8212-Dec-05 22:04 
GeneralRe: how to make dll Pin
giotis828-Dec-05 21:18
giotis828-Dec-05 21:18 
AnswerRe: how to make dll Pin
uktrips0079-Dec-05 19:18
uktrips0079-Dec-05 19:18 
QuestionProblem with insert command Pin
fitz2345678-Dec-05 2:13
fitz2345678-Dec-05 2:13 

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.