In a combobox i have filled with data the "selectedindexChanged" event fires on form load.
VB Code:
Private Sub frmTest_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load datranstype.Fill(uscData.DsPersonalFinance.TransType) cboTransType.DataSource = uscData.DsPersonalFinance cboTransType.DisplayMember = "TransType.transType" cboTransType.ValueMember = "TransType.transTypePK" End Sub
Is there a reason for the selectedIndexChanged on that event to fire on form load? and is there a way to stop that event from firing, it is causing some problems.




Reply With Quote