Академический Документы
Профессиональный Документы
Культура Документы
Try
ConexionBD.Open()
'FrmInicio.LblEstadoServer.Text = "Sesi�n Abierta"
'Dim F As New FrmMensajes
'F.LblMensaje.Text = "Conexi�n establecida con el Servidor!"
'F.Show()
Catch ex As Exception
'Dim F As New FrmMensajes
'F.LblMensaje.Text = ex.ToString
'F.Show()
ConexionBD.Close()
'FrmInicio.LblEstadoServer.Text = "Sesi�n Cerrada"
End Try
End Sub 'Terminado
Combo.Properties.DataSource = Dt
Combo.Properties.ValueMember = Dt.Columns(0).ToString
Combo.Properties.DisplayMember = Dt.Columns(1).ToString
Combo.Properties.DropDownRows = Dt.Rows.Count
Combo.Properties.BestFitMode =
DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup
End Try
End Sub 'Terminado
Catch ex As Exception
PBx.Image = Nothing
End Try
End Sub 'Terminado
End Sub
Combo.Properties.TextEditStyle =
DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor
Combo.Properties.Items.Clear()
Dim dr As SqlDataReader
Dim cmd As New SqlCommand
While dr.Read
Combo.Properties.Items.Add(dr.Item(0).ToString)
End While
dr.Close()
cmd.Dispose()