Click here to Skip to main content
15,891,976 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Best way to save data in Visual basic Pin
HimanshuSha17-Dec-13 21:04
HimanshuSha17-Dec-13 21:04 
GeneralRe: Best way to save data in Visual basic Pin
Dave Kreskowiak18-Dec-13 6:32
mveDave Kreskowiak18-Dec-13 6:32 
QuestionCreating an Income and Expenditure Statement. Pin
Biplob Singha Shee16-Dec-13 21:38
Biplob Singha Shee16-Dec-13 21:38 
AnswerRe: Creating an Income and Expenditure Statement. Pin
Mycroft Holmes17-Dec-13 0:09
professionalMycroft Holmes17-Dec-13 0:09 
GeneralRe: Creating an Income and Expenditure Statement. Pin
Biplob Singha Shee17-Dec-13 9:37
Biplob Singha Shee17-Dec-13 9:37 
AnswerRe: Creating an Income and Expenditure Statement. Pin
David Mujica17-Dec-13 2:08
David Mujica17-Dec-13 2:08 
AnswerRe: Creating an Income and Expenditure Statement. Pin
kmoorevs24-Dec-13 7:18
kmoorevs24-Dec-13 7:18 
QuestionLoading data from SQL server Pin
Member 1038849415-Dec-13 12:25
Member 1038849415-Dec-13 12:25 
I Need to load data from SQL server. i wrote this. Can anyone help me please.
I have:
txt.ID
txt.Name
txt.Adress (as textboxes)
cbDept (as a combobox)
The textboxes stays empty. and in the combobox i get the ID, and in the combobox i need to get the name.

VB
Private Sub cmdRequery_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRequery.Click
       DBRequery()
       Me.BindingContext(_DataSet.Tables(0)).CancelCurrentEdit()
       Me.BindingContext(_DataSet.Tables(0)).Position = 0
       RefreshData(True)
   End Sub
   Private Sub DBRequery()
       cmdSave.Enabled = False
       _DataSet.Clear()
       Try
           _DataAdapter.Fill(_DataSet)
       Catch Eror As Exception
           cmdAdd.Enabled = False
           cmdUpdate.Enabled = False
           cmdDelete.Enabled = False
           MsgBox(Eror.Message, MsgBoxStyle.Exclamation, "Error Opening Database")
           Close()
           Exit Sub
       End Try
       txtCount.Text = Format(_DataSet.Tables(0).Rows.Count, "#,##0")
       If _DataSet.Tables(0).Rows.Count > 0 Then
           txtCurrent.Text = "1"
           EnableNavigation()
       End If
       cmdAdd.Enabled = True
   End Sub



Thank you Smile | :)
AnswerRe: Loading data from SQL server Pin
Member 1038849415-Dec-13 12:33
Member 1038849415-Dec-13 12:33 
GeneralRe: Loading data from SQL server Pin
Eddy Vluggen16-Dec-13 7:10
professionalEddy Vluggen16-Dec-13 7:10 
GeneralRe: Loading data from SQL server Pin
Member 1038849418-Dec-13 3:27
Member 1038849418-Dec-13 3:27 
QuestionDelete using BindingContext Pin
Member 1038849415-Dec-13 10:36
Member 1038849415-Dec-13 10:36 
AnswerRe: Delete using BindingContext Pin
Mycroft Holmes15-Dec-13 11:50
professionalMycroft Holmes15-Dec-13 11:50 
Questionview image from a picturebox loading from a database Pin
waner michaud15-Dec-13 10:15
waner michaud15-Dec-13 10:15 
AnswerRe: view image from a picturebox loading from a database Pin
Mycroft Holmes15-Dec-13 11:47
professionalMycroft Holmes15-Dec-13 11:47 
GeneralRe: view image from a picturebox loading from a database Pin
waner michaud19-Dec-13 4:36
waner michaud19-Dec-13 4:36 
QuestionCustom paper size Problem in Dot matrix printer... Pin
digitalbalu13-Dec-13 16:17
digitalbalu13-Dec-13 16:17 
QuestionLogic for Sales Return and Purchase Return Pin
Biplob Singha Shee13-Dec-13 7:10
Biplob Singha Shee13-Dec-13 7:10 
AnswerRe: Logic for Sales Return and Purchase Return Pin
Mycroft Holmes13-Dec-13 12:38
professionalMycroft Holmes13-Dec-13 12:38 
GeneralRe: Logic for Sales Return and Purchase Return Pin
Biplob Singha Shee14-Dec-13 8:56
Biplob Singha Shee14-Dec-13 8:56 
GeneralRe: Logic for Sales Return and Purchase Return Pin
Mycroft Holmes14-Dec-13 12:26
professionalMycroft Holmes14-Dec-13 12:26 
GeneralRe: Logic for Sales Return and Purchase Return Pin
Biplob Singha Shee16-Dec-13 7:46
Biplob Singha Shee16-Dec-13 7:46 
GeneralRe: Logic for Sales Return and Purchase Return Pin
Mycroft Holmes16-Dec-13 11:38
professionalMycroft Holmes16-Dec-13 11:38 
Questionan windows 8.1 app HELP! Pin
Member 1045927510-Dec-13 22:32
Member 1045927510-Dec-13 22:32 
AnswerRe: an windows 8.1 app HELP! Pin
Richard MacCutchan11-Dec-13 0:27
mveRichard MacCutchan11-Dec-13 0:27 

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.