Advertisement
madhawaseeeee

Untitled

Sep 21st, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.01 KB | None | 0 0
  1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.         'TODO: This line of code loads data into the 'DilanDataSet.dilan' table. You can move, or remove it, as needed.
  3.         'Dim dbPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\dilansoft\"
  4.  
  5.         'AppDomain.CurrentDomain.SetData("DataDirectory", dbPath)
  6.         'MsgBox(Assembly.GetExecutingAssembly().GetManifestResourceNames())
  7.  
  8.         If My.Computer.FileSystem.FileExists("dilan.accdb") Then
  9.             'MsgBox("db found")
  10.             Console.Write("db found")
  11.  
  12.         Else
  13.             MsgBox("database not found : dilan.accdb -- exiting ")
  14.             'Application.Exit()
  15.             'End
  16.  
  17.             'SaveEmbeddedResourcesFile("sh.png", "C:\Users\User\Desktop\dilan\toxit\image.png")
  18.             'SaveFileFromResources(My.Resources."dilan.accdb")
  19.         End If
  20.         Me.DilanTableAdapter.Fill(Me.DilanDataSet.dilan)
  21.         Timer1.Enabled = True
  22.  
  23.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement