Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27203

[RESOLVED] VS 2012 - Database addnew

$
0
0
Hi guys

I have just installed visual studio 2012 and tried to find my answer on google but its useless :( .
So im asking you first off all is there any youtube channel or website to learn visual basic 2012 ?

My question is . How to save text from textbox to database i connected it and it works but what is the code for that .
Downthere is code and screenshot

sry on bad english

Code:

Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'BazapodatakaDataSet.Korisnici' table. You can move, or remove it, as needed.
        Me.KorisniciTableAdapter.Fill(Me.BazapodatakaDataSet.Korisnici)
        Dim i As Integer
        For i = 1 To 31
            Me.cboxdan.Items.Add(i)
        Next


    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        KorisniciBindingSource.AddNew()
    End Sub

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

    End Sub
End Class

Attachment 94641

When i click add i want to add new user to database and when i click update i want to save that and exit the program.
Attached Images
 

Viewing all articles
Browse latest Browse all 27203

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>