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!
@ako2: tama po...
@ericgmejia: Aus po un ah... galing...
System.AppDomain.CurrentDomain.BaseDirectory & Student.mdb
ganyan n po b ung coding nyan?
gumamit ka lang ng existing browser component gn .NET,
mas matindi kung ikaw mismo ang gagawa ng browser from ground up using IO.Sockets,
TCP/IP at UDP, ikaw mismo ang kokontak sa web server at mag render ng pag.
sa coding ka mag focus, mas madami ka matutunan dun.
Dim is DIMENSION
Basic Variable Declaration
Declaration = ipinapa alam mo sa buong scope ng program na may isang object na ang pangalan ay x at ang uri nito ay INTEGER
Dim x as integer == mag sukat/mag allot/mag set ng lalagyan ng data na integer na ang pangalan ay x
thats as basic as it can be.......
Ahh.. mukang mrmi p qng dapt pagaralan ahh... mejo nalilito p q.. tatambay aq lagi d2.... update ntin 2 lagi sir... mrmi pong nanga2ilngan ng tulong pgdtng d2...
yes meron nyan sa 2008
hindi kasi ako nagsasave sa local path ng exe for security reasons
i save it sa My.Settings yung path ng database,
convenient sakin yan if i work on multiple database and for backups
usefull din yun pag kunwari you want a separate database for each Windows user, so you will have a database for each user on their corresponding C:\Users\username
or pwede rin malocate yung database across the network or shared drive
the first sample on this post shows how it is done.
Tol, paki explain kung pano malolocate nya yung database mo gamit ang code na yan?
Public _gstrConnectionString As String
''' <summary>
'''<para>Check if the database file exist based on the saved My.Settings.DatabaseFile1.
'''Opens browse dialog if file does not exist.</para>
''' <returns>Boolean</returns>
''' </summary>
Friend Function CheckFile() As Boolean
Dim sFileName As String = "ericBikesDB1.mdb"
Dim sFile As String = My.Settings.DatabaseFile1
Dim f As New IO.FileInfo(sFile)
If Not f.Exists Then
sFile = System.AppDomain.CurrentDomain.BaseDirectory() & sFileName
Dim fx As New IO.FileInfo(sFile)
If Not fx.Exists Then
Dim fOpen As New OpenFileDialog
fOpen.Filter = "MSAccess Database Files|*.mdb|All Files|*.*"
fOpen.FileName = sFileName
fOpen.CheckFileExists = True
If fOpen.ShowDialog = Windows.Forms.DialogResult.OK Then
sFile = fOpen.FileName
Dim fx1 As New IO.FileInfo(sFile)
If Not fx1.Exists Then
Return False
Else
_gstrConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & sFile
My.Settings.DatabaseFile1 = sFile
My.Settings.Save()
Return True
End If
Else
Return False
End If
End If
Else
_gstrConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & sFile
My.Settings.DatabaseFile1 = sFile
My.Settings.Save()
Return True
End If
End Function
hello po sino po ba may visual studio jan? penge naman po ako nung download link need ko kasi eh pls pls help me
sir, pahingi naman po ng idea kung pano gawin ang clock sa vb.net..
kung pwd po pahingi nadin ng codes..pag-aaralan ko po sana..
tnx!
ayan
http://www.vbdotnetheaven.com/Uploa...T04212005032826AM/VirtualClockinVBdotNET.aspx
basic math lang yan, Sine Cosine, PI.
saka GDI graphics
tip ko sayo:
nakita ko lang yan sa google
ang keyword ay "vb.net clock"
salamat d2 sir!..pag.aaralan ko 2..
by the way sir, pahelp namn sa activity namin..
gagawa kami ng calcu..nagawa ko naman yang part na yan..kaso sabi ng teacher dapat daw pag letter ang nilagay ko sa textbox lalabas naman sa isang textbox yung message na nagsasabing numbers lang dapat..
mag.e-error kasi pag letters ginamit ko..
baleh 3 textbox lahat..yung textbox1 ay para sa answer tapos yung textbox2 at textbox3 ay para naman yun sa numbers na e.ni input ng users para e.add/sub/mult..
sa textbox1 lalabas yung message pag d number yung ilalagay sa textboxes
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If Not IsNumeric(e.KeyChar) Then
e.Handled = True
End If
End Sub
jologs ang teacher nyo.
bakit mo pa kelangan mag message, hassle sa user ang message ng message;
bakit di mo nalang i filter ang textbox na magaccept nalang ng numeric input, disregard lang pag non numeric.
mas simple ang buhay
Code:Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If Not IsNumeric(e.KeyChar) Then e.Handled = True End If End Sub
nakakatuwa naman yang teacher ninyo nerdz....by the way thanks master ERIC...nagawa ko activity namin kagabi with your help
@sir eric
pano po ung connection ng access 2007 sa .net
ung may pwd po ung access di ko magets eh
na tas ung laman ng dbase ko lalabas na data grid
tnry ko may error naman pano ba tama?
salamat idol...