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

Visual Basic

 
Questiondisplaying search results Pin
JMS7615-Nov-05 7:07
JMS7615-Nov-05 7:07 
AnswerRe: displaying search results Pin
Guerven15-Nov-05 14:44
Guerven15-Nov-05 14:44 
GeneralRe: displaying search results Pin
JMS7616-Nov-05 5:55
JMS7616-Nov-05 5:55 
QuestionReferencing the selected ro in a DataGrid Pin
dptalt15-Nov-05 6:51
dptalt15-Nov-05 6:51 
AnswerRe: Referencing the selected ro in a DataGrid Pin
Guerven15-Nov-05 14:47
Guerven15-Nov-05 14:47 
AnswerRe: Referencing the selected ro in a DataGrid Pin
aseef15-Nov-05 21:45
aseef15-Nov-05 21:45 
GeneralRe: Referencing the selected ro in a DataGrid Pin
dptalt17-Nov-05 2:12
dptalt17-Nov-05 2:12 
QuestionCombobox issues Pin
lildragon15-Nov-05 6:36
lildragon15-Nov-05 6:36 
Hi everyone, thank you for looking at my post. I have a problem when loading a combobox in a windows usercontrol/form. I attempt to populate the combobox, within my user control, when I load the other data within the form. When I populate the combobox with data, I cannot clear the combobox if there is matching selected index when it loads. After it loads and the user selects another item, the combobox filters and clears the index as needed. I populate as much of the data on the form when the form loads. The user controls are then populated based on the data populated on the form. This is where I have the problem. When the form and user controls load for the first time, the addtion of the datasource to the combobox does not allow me to clear set the index of the combobox to -1 if the first time on the form does not have related record to the data on the form. Thank you for your help.

Code:
#Region " Load Stuff "
Private Sub uc_companyCreditBankContact_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.ucCreditMediator = New tabCompany.CompanyCredit.uc_companyCreditMediator
Call Me.requery()
Call Me.populateComboAllTypes()
Me.recordStatus = cCreditBankContStatusType.none
'Call Me.enableCreditBankContact(False)
End Sub
#End Region
#Region " Requery "
Public Sub requery() 'Function that can be called from other forms/classes to populate the companyInfo data
ds1 = Me.ucCreditMediator.creditBankInfo.Copy 'Calls the mediator class to populate the ds
End Sub
#End Region
#Region " Populate Types/Comboboxes"
Private Sub populateComboAllTypes()
Call Me.CompanyBank_Populate()
Call Me.CompanyBankContact_Populate()
End Sub
Private Sub CompanyBank_Populate()
Me.comb_companyCreditBank.AddDataSource(ds1.Tables("tbl_CompanyBank"), "companyBankName", "companyBankId") 'Add a datasource to the company with display and value members
Me.comb_companyCreditBank.emptyIndex()
End Sub
Private Sub CompanyBankContact_Populate()
If Me.txtBankId.Text <> "" Or Me.txtBankId.Text <> "-1" Or IsNothing(Me.txtBankId) = False Then
Call Me.comb_companyCreditBankContact.AddDataSource(Me.ds1.Tables("tbl_CreditBankContact"), "creditBankContactFirstName", "creditBankContactId")
Call Me.comb_companyCreditBankContact.emptyIndex()
End If
End Sub
#End Region
QuestionDisable the Windows Key Pin
Wilhelm-NA15-Nov-05 4:07
Wilhelm-NA15-Nov-05 4:07 
AnswerRe: Disable the Windows Key Pin
Dave Kreskowiak15-Nov-05 6:25
mveDave Kreskowiak15-Nov-05 6:25 
QuestionCSV file Pin
Dennis Huisman15-Nov-05 3:19
Dennis Huisman15-Nov-05 3:19 
AnswerRe: CSV file Pin
Christian Graus15-Nov-05 12:54
protectorChristian Graus15-Nov-05 12:54 
GeneralRe: CSV file Pin
Dennis Huisman15-Nov-05 19:16
Dennis Huisman15-Nov-05 19:16 
GeneralRe: CSV file Pin
Christian Graus16-Nov-05 12:15
protectorChristian Graus16-Nov-05 12:15 
QuestionHow to do Pin
minhbt_hitec15-Nov-05 2:50
minhbt_hitec15-Nov-05 2:50 
AnswerRe: How to do Pin
Christian Graus15-Nov-05 12:53
protectorChristian Graus15-Nov-05 12:53 
QuestionLast Post apply to VB.NET 2003 Pin
PatriceB15-Nov-05 1:58
PatriceB15-Nov-05 1:58 
QuestionStrong Name: error BC30145 Pin
PatriceB15-Nov-05 1:50
PatriceB15-Nov-05 1:50 
Questiontoolbar button , How on disable Normal image will display Pin
Rizwan Bashir15-Nov-05 1:20
Rizwan Bashir15-Nov-05 1:20 
Questionfile content change notification in VB Pin
Dinakara K15-Nov-05 1:19
Dinakara K15-Nov-05 1:19 
Questiondecompress a file vb.net 2005 Pin
wva197714-Nov-05 23:58
wva197714-Nov-05 23:58 
QuestionHOW TO USE TDB OR FLEXI GRID IN VB.NET PROJECT USING DATA SET.....PLEASE HELP ME Pin
ajay bharti14-Nov-05 22:12
ajay bharti14-Nov-05 22:12 
Questionhow to extract a selected row from datagrid Pin
raghu sahay14-Nov-05 20:30
raghu sahay14-Nov-05 20:30 
AnswerRe: how to extract a selected row from datagrid Pin
Guerven15-Nov-05 14:41
Guerven15-Nov-05 14:41 
GeneralRe: how to extract a selected row from datagrid Pin
dptalt16-Nov-05 2:46
dptalt16-Nov-05 2:46 

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.