Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.
All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!
Patulong mga master
populated po ung combo box galing sa database, gusto ko po sana na lagyan ng "addnew" sa dulo, then parang button siya na mag oopen ng form para sa input ng new category:
eto po ung ss;View attachment 1214351
View attachment 1215747
help namana dapat pag lagay ko dun sa birth year lalabas ung age nya dun salamat
Sa onTextChanged event ng textbox1:
Textbox2.Text = Today.Year - int.Parse(TextBox1.Text)
salamat
Sir patulong po..I have 3 tables using Sql server..Pano po magload ang Table sa Datagridview..Nagdisplay na po ang 3 Table names sa Combobox kaso yung Table1 lng magloload ang Table2 at Table3 hindi ee..Patulong nmn po pano mag populate ito..thanks..
ito po code at forms ko..
View attachment 1217475
View attachment 1217476
try mo to sir ilagay sa textchanged or selectedindexchangedevent ng combobox
dim adp2 as new sqldataadapter("select * from " & Combobox1.text,con)
con.open
dim ds2 as new dataset
adp2.fill(ds2)
con.close
datagridview1.datasource=ds2.tables(0)
View attachment 323345
sir tulong naman hindi nakakapag add ako tapos lumalabas sa dtagridview pero hindi siya nauupdate sa access database
pahelp po mga ka sym, ayaw po kasi gumana ng search button ayaw din po magshow ng kusa yung data sa datagridview.
eto po code ko. im using vb.net 2010 and mysql as database
Private Sub residentrecord_Load(ByVal id As Integer, ByVal firstname As String, ByVal middlename As String, ByVal lastname As String, ByVal birthdate As String, ByVal birthplace As String, ByVal age As Integer, ByVal gender As String)
Dim sda As New MySqlDataAdapter
Dim dt As New DataTable
Dim bs As New BindingSource
Try
mycon.Open()
Dim query As String
query = "select * from db_bis.resident"
com = New MySqlCommand
sda.SelectCommand = com
sda.Fill(dt)
bs.DataSource = dt
DataGridView1.DataSource = bs
sda.Update(dt)
Catch ex As Exception
End Try
End Sub
Private Sub btn_search_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim reader As MySqlDataReader
Try
mycon.Open()
Dim query As String
query = " select * from db_bis.resident where firstname='" & txt_search.Text & "' "
com = New MySqlCommand(query, mycon)
While reader.Read
txt_id.Text = reader.GetInt32("id")
txt_fn.Text = reader.GetString("firstname")
txt_mn.Text = reader.GetString("middlename")
txt_ln.Text = reader.GetString("lastname")
txt_bd.Text = reader.GetString("birthdate")
txt_bp.Text = reader.GetString("birthplace")
txt_age.Text = reader.GetInt16("age")
gen = reader.GetString("gender")
End While
mycon.Close()
Catch ex As Exception
End Try
End Sub
View attachment 1220087
salamat po sa mga sasagot
mga sir wala na bang paraan pra hindi masali sa pag print itong button sa taas?
View attachment 1219957
printform gamit ko
code: PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
PrintForm1.Print()
thanks