Click here to Skip to main content
15,915,869 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Access to SQL. Pin
Dave Kreskowiak2-Dec-13 2:47
mveDave Kreskowiak2-Dec-13 2:47 
QuestionRtf,vb.net Pin
srinivasankrishnaa22-Nov-13 4:49
srinivasankrishnaa22-Nov-13 4:49 
AnswerRe: Rtf,vb.net Pin
Dave Kreskowiak22-Nov-13 6:20
mveDave Kreskowiak22-Nov-13 6:20 
AnswerRe: Rtf,vb.net Pin
Eddy Vluggen28-Nov-13 9:41
professionalEddy Vluggen28-Nov-13 9:41 
Questionwindow form to wpf Pin
Member 1026351918-Nov-13 22:41
Member 1026351918-Nov-13 22:41 
AnswerRe: window form to wpf Pin
Abhinav S18-Nov-13 22:47
Abhinav S18-Nov-13 22:47 
Question.net4.0 Pin
Member 1026351918-Nov-13 18:27
Member 1026351918-Nov-13 18:27 
AnswerRe: .net4.0 Pin
Abhinav S18-Nov-13 22:46
Abhinav S18-Nov-13 22:46 
AnswerRe: .net4.0 Pin
joginder-banger15-Dec-13 8:13
professionaljoginder-banger15-Dec-13 8:13 
QuestionBound Datagridview Column Which Shows Name instead of ID. Pin
Dinesh Prajapati15-Nov-13 1:49
Dinesh Prajapati15-Nov-13 1:49 
AnswerRe: Bound Datagridview Column Which Shows Name instead of ID. Pin
Richard MacCutchan15-Nov-13 2:52
mveRichard MacCutchan15-Nov-13 2:52 
GeneralRe: Bound Datagridview Column Which Shows Name instead of ID. Pin
Dinesh Prajapati15-Nov-13 9:43
Dinesh Prajapati15-Nov-13 9:43 
GeneralRe: Bound Datagridview Column Which Shows Name instead of ID. Pin
Richard MacCutchan17-Nov-13 22:18
mveRichard MacCutchan17-Nov-13 22:18 
AnswerRe: Bound Datagridview Column Which Shows Name instead of ID. Pin
WuRunZhe17-Nov-13 21:19
WuRunZhe17-Nov-13 21:19 
AnswerRe: Bound Datagridview Column Which Shows Name instead of ID. Pin
Peter Leow23-Nov-13 3:59
professionalPeter Leow23-Nov-13 3:59 
GeneralRe: Bound Datagridview Column Which Shows Name instead of ID. Pin
Dinesh Prajapati30-Dec-13 18:20
Dinesh Prajapati30-Dec-13 18:20 
GeneralRe: Bound Datagridview Column Which Shows Name instead of ID. Pin
Peter Leow30-Dec-13 19:02
professionalPeter Leow30-Dec-13 19:02 
GeneralRe: Bound Datagridview Column Which Shows Name instead of ID. Pin
Dinesh Prajapati31-Dec-13 20:07
Dinesh Prajapati31-Dec-13 20:07 
QuestionDisplay data from SQL into a form Pin
Member 1038849413-Nov-13 10:16
Member 1038849413-Nov-13 10:16 
Hello
i need your help in something.
I have a DataBase. I need to search it, If found, i want to display the record into my textboxes and comboboxes.
This is my code. it works with no errors. But i don't know how to display the data from SQL into my form.

VB
Private Sub btnSearch_Click(sender As Object, e As EventArgs) Handles btnSearch.Click
        If CheckBox1.Checked = True Then
            Dim strconnection As String = "Data Source=ELIANE-VAIO\SQLEXPRESS;Initial Catalog=SchoolDB;Integrated Security=True;"
            Dim _cn As SqlConnection = New SqlConnection(strconnection)
            Dim cmd As New SqlCommand
            Dim cmd1 As New SqlCommand
            _cn.Open()
            cmd.Connection = _cn
            Dim r As DataGridViewRow
            For Each r In Form1.DataGridView1.Rows
                cmd.CommandText = "select * from StudentInfo where Code = <a href="/Members/t1">@t1</a>; "
                cmd.ExecuteNonQuery()
            Next
            If MessageBox.Show("Record Found. Do you want to display the record in the textboxes?", "Found", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) = DialogResult.No Then
                MsgBox("Display Cancelled")
                Exit Sub
            Else
                '    cmd.ExecuteNonQuery()
                MsgBox(":)")
            End If
        End If
End Sub

Thank you in advance
AnswerRe: Display data from SQL into a form Pin
Pete O'Hanlon13-Nov-13 11:42
mvePete O'Hanlon13-Nov-13 11:42 
Questionwebtransform issue... anyone? Pin
Desvariovsk13-Nov-13 6:31
Desvariovsk13-Nov-13 6:31 
AnswerRe: webtransform issue... anyone? Pin
WuRunZhe17-Nov-13 21:21
WuRunZhe17-Nov-13 21:21 
GeneralRe: webtransform issue... anyone? Pin
Desvariovsk18-Nov-13 1:33
Desvariovsk18-Nov-13 1:33 
QuestionRe: webtransform issue... anyone? Pin
Eddy Vluggen21-Nov-13 7:28
professionalEddy Vluggen21-Nov-13 7:28 
QuestionRefreshing DGV after db (access 2007) changed Pin
jose mandurrino13-Nov-13 5:54
jose mandurrino13-Nov-13 5:54 

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.