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!
Mga master paturo nmn ako nung dev express . kasi hnd ko mapalabas ung isang form pag ka click ko ng button. thank you.
sige hulaan ko nlng kung ano error
My.Settings.server = darServer.Text
My.Settings.username = darUsername.Text
My.Settings.password = darPassword.Text
My.Settings.dbname = darName.Text
My.Settings.Save()
MessageBox.Show("Database setting save!", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information)
ConnectDatabase()
Me.Hide()
Pa help about dynamic connection string.
I have this code
Code:My.Settings.server = darServer.Text My.Settings.username = darUsername.Text My.Settings.password = darPassword.Text My.Settings.dbname = darName.Text My.Settings.Save() MessageBox.Show("Database setting save!", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information) ConnectDatabase() Me.Hide()
Working naman po sya , my problem is pano ma reset ata yung connection, I mean If input like the info below the INVALID one, ofcourse mag eeror, then If i'll enter the VALID one still error parin sya, I need to rerun or debug the system again to work, I'll input the VALID one, then saka magwowork >.< . Please
What's the best solution po para no need to rerun or debug the system,
- INVALID -
Server = localhost
Username= root
Password = blahhblahh
DBName = db_sample
- VALID -
Server = localhost
Username= root
Password = myPassword
DBName = db_sample
wala nmn syang error boss. ayaw lng nya tlga lumabas.
o_0
ipost mo yung code mo para alam namin kung ano kulang mo.
Please post your code in ConnectDatabase()
Imports MySql.Data.MySqlClient
Module modConnect
Public CNN As New MySqlConnection
Public cnString As String = "SERVER = '" & My.Settings.server & "'; USERID = '" & My.Settings.username & "'; PASSWORD = '" & My.Settings.password & "'; DATABASE = '" & My.Settings.dbname & "'; "
Public da As New MySqlDataAdapter
Public cmd As New MySqlCommand
Public dr As MySqlDataReader
Public cmb As MySqlCommandBuilder
Public DataTable As New DataTable
'Public DataSet As New DataSet
Public DataSet As DataSet = New DataSet
Public Sub ConnectDatabase()
Try
If CNN.State = ConnectionState.Closed Then
CNN.ConnectionString = cnString
CNN.Open()
End If
Catch ex As Exception
'MsgBox("Please check your database configuration", MsgBoxStyle.Exclamation, "Message")
MsgBox(ex.Message.ToString, MsgBoxStyle.Critical, "Message")
End Try
End Sub
End Module
Heto po sir ,
Code:Imports MySql.Data.MySqlClient Module modConnect Public CNN As New MySqlConnection Public cnString As String = "SERVER = '" & My.Settings.server & "'; USERID = '" & My.Settings.username & "'; PASSWORD = '" & My.Settings.password & "'; DATABASE = '" & My.Settings.dbname & "'; " Public da As New MySqlDataAdapter Public cmd As New MySqlCommand Public dr As MySqlDataReader Public cmb As MySqlCommandBuilder Public DataTable As New DataTable 'Public DataSet As New DataSet Public DataSet As DataSet = New DataSet Public Sub ConnectDatabase() Try If CNN.State = ConnectionState.Closed Then CNN.ConnectionString = cnString CNN.Open() End If Catch ex As Exception 'MsgBox("Please check your database configuration", MsgBoxStyle.Exclamation, "Message") MsgBox(ex.Message.ToString, MsgBoxStyle.Critical, "Message") End Try End Sub End Module
Public cnString As String ="SERVER = '" & My.Settings.server & "'; USERID = '" & My.Settings.username & "'; PASSWORD = '" & My.Settings.password & "'; DATABASE = '" & My.Settings.dbname & "'; "
Public cnString As String
cnString String ="SERVER = " & My.Settings.server & "; USERID = " & My.Settings.username & "; PASSWORD = " & My.Settings.password & "; DATABASE = " & My.Settings.dbname & ";"
So ganun pala, once lang ma-assign ang cnString.
Try mo kaya, yung declaration mo sa taas na...
Code:Public cnString As String ="SERVER = '" & My.Settings.server & "'; USERID = '" & My.Settings.username & "'; PASSWORD = '" & My.Settings.password & "'; DATABASE = '" & My.Settings.dbname & "'; "
gawin mo na lang...
Code:Public cnString As String
Dun sa ConnectDatabase mo, dun mo na lang initialize ang variable mo na cnString before mo i-open ang connection, para laging latest value ang nakukuha nya sa settings mo.
Code:cnString String ="SERVER = " & My.Settings.server & "; USERID = " & My.Settings.username & "; PASSWORD = " & My.Settings.password & "; DATABASE = " & My.Settings.dbname & ";"
BTW, pwede namang walang single quotation sa Connection String mo.
Guys, tanong lang ko
Pano ganito? I mean the left side (orange part)
What tools do you think ang gamit? Curious lang ako, di ko kasi makuha :3
Please suggestions . .
Panel ba parent nito? Saka when clicking New product or products categories, pano white ang backgroud
https://fbcdn-sphotos-d-a.akamaihd....07563_712367568799693_69883571872551215_n.jpg
Another sample, Gusto ko sanang gumawa ng ganito the left side part :3
https://fbcdn-sphotos-g-a.akamaihd....68_1447262568876144_6305605155865925691_n.jpg
Pahelp naman pu about sa vb.net
eto pu dapat mangyari:
Name fields must not accept ‘spaces’ at the beginning of the input.
Name fields should auto-capitalize on the first letter.
Characters must auto-capitalize after pressing space.
dun sa must not accept spaces gamitan mo lang ng ASCII yan! check mo yung ASCII number ng space kay google
sa auto-capitalize naman sa first letter.. ng bawat word ba ito or what? kasi pwede ka gumamit ng SUBSTRING or INDEXOF
sa capitalize naman after pressing space.. gamitin mo naman yung ganito halimbawa..
txtName.text.substring(" ", 1).toUppercase <----- meaning yung " " after nun may 1 kasi yung first character after ng space gagawin niyang uppercase kaya may toUppercase