Cara Membuka/Import Project Android di Eclipse

1. Siapkan Project yang telah kita download di luar misalnya kita akan menggunakan Project Kamus Download

2. Jika sudah buka zip/rar/7z dan compressor lainnya, extract folder project dan letakkan sebagai contoh di Desktop.

3. Buka Eclipse, Pilih File -> Import 

 














4. Pada tampilan Import, pilih Existing Projects into Workspaces, ... next




















5. Akan muncul tampilan Import Projects, kemudian klik tombol Browse cari folder Project.



















6. Sebagai contoh kita akan memanggil Project dari folder E:\Android\Ali\Kamus, klik Folder dan Ok..


















7. Jika tidak berhasil akan muncul tulisan "No Projects are found to Import". Berarti folder yang dituju belum tepat, ulangi langkah ke 6

8. Kemudian Finish, maka Project siap di oprek dan di pelajari... good luck

Cara Penggunaan sqlTransaction di vb.net 2008

  1. Public Sub RunSqlTransaction(myConnString As String)
  2. Dim myConnection As New SqlConnection(myConnString)
  3. myConnection.Open()
  4. Dim myCommand As SqlCommand = myConnection.CreateCommand()
  5. Dim myTrans As SqlTransaction
  6. ' Start a local transaction
  7. myTrans = myConnection.BeginTransaction(IsolationLevel.ReadCommitted, "SampleTransaction")
  8. ' Must assign both transaction object and connection
  9. ' to Command object for a pending local transaction
  10. myCommand.Connection = myConnection
  11. myCommand.Transaction = myTrans
  12. Try
  13. myCommand.CommandText = "Insert into Region (RegionID, RegionDescription) VALUES (100, 'Description')"
  14. myCommand.ExecuteNonQuery()
  15. myCommand.CommandText = "Insert into Region (RegionID, RegionDescription) VALUES (101, 'Description')"
  16. myCommand.ExecuteNonQuery()
  17. myTrans.Commit()
  18. Console.WriteLine("Both records are written to database.")
  19. Catch e As Exception
  20. Try
  21. myTrans.Rollback("SampleTransaction")
  22. Catch ex As SqlException
  23. If Not myTrans.Connection Is Nothing Then
  24. Console.WriteLine("An exception of type " & ex.GetType().ToString() & _
  25. " was encountered while attempting to roll back the transaction.")
  26. End If
  27. End Try
  28. Console.WriteLine("An exception of type " & e.GetType().ToString() & _
  29. "was encountered while inserting the data.")
  30. Console.WriteLine("Neither record was written to database.")
  31. Finally
  32. myConnection.Close()
  33. End Try
  34. End Sub 'RunSqlTransaction

Cara Penggunaan oleDbTransaction di vb.net

Public Sub ExecuteTransaction(ByVal connectionString As String)

    Using connection As New OleDbConnection(connectionString)
        Dim command As New OleDbCommand()
        Dim transaction As OleDbTransaction

        ' Set the Connection to the new OleDbConnection.
        command.Connection = connection

        ' Open the connection and execute the transaction. 
        Try
            connection.Open()

            ' Start a local transaction.
            transaction = connection.BeginTransaction()

            ' Assign transaction object for a pending local transaction.
            command.Connection = connection
            command.Transaction = transaction

            ' Execute the commands.
            command.CommandText = _
                "Insert into Region (RegionID, RegionDescription) VALUES (100, 'Description')"
            command.ExecuteNonQuery()
            command.CommandText = _
                "Insert into Region (RegionID, RegionDescription) VALUES (101, 'Description')"
            command.ExecuteNonQuery()

            ' Commit the transaction.
            transaction.Commit()
            Console.WriteLine("Both records are written to database.")

        Catch ex As Exception
            Console.WriteLine(ex.Message)
            ' Try to rollback the transaction 
            Try
                    transaction.Rollback()

            Catch 
                ' Do nothing here; transaction is not active. 
            End Try 
        End Try 
        ' The connection is automatically closed when the 
        ' code exits the Using block. 
    End Using 
End Sub

Cara Penggunaan sqlTransaction di VB.net

Private Sub ExecuteSqlTransaction(ByVal connectionString As String)
    Using connection As New SqlConnection(connectionString)
        connection.Open()

        Dim command As SqlCommand = connection.CreateCommand()
        Dim transaction As SqlTransaction

        ' Start a local transaction
        transaction = connection.BeginTransaction("SampleTransaction")

        ' Must assign both transaction object and connection 
        ' to Command object for a pending local transaction.
        command.Connection = connection
        command.Transaction = transaction

        Try
            command.CommandText = _
              "Insert into Region (RegionID, RegionDescription) VALUES (100, 'Description')"
            command.ExecuteNonQuery()
            command.CommandText = _
              "Insert into Region (RegionID, RegionDescription) VALUES (101, 'Description')"

            command.ExecuteNonQuery()

            ' Attempt to commit the transaction.
            transaction.Commit()
            Console.WriteLine("Both records are written to database.")

        Catch ex As Exception
            Console.WriteLine("Commit Exception Type: {0}", ex.GetType())
            Console.WriteLine("  Message: {0}", ex.Message)

            ' Attempt to roll back the transaction. 
            Try
                transaction.Rollback()

            Catch ex2 As Exception
                ' This catch block will handle any errors that may have occurred 
                ' on the server that would cause the rollback to fail, such as 
                ' a closed connection.
                Console.WriteLine("Rollback Exception Type: {0}", ex2.GetType())
                Console.WriteLine("  Message: {0}", ex2.Message)
            End Try 
        End Try 
    End Using 
End Sub

Source Code Antivirus



Ok sob, ane mau sharing source code antivirus baru untuk referensi ente dalam membuat antivirus ente sendiri, semoga dengan adanya source  code ini project antivirus yang ente buat dapat lebih bagus dari source code yang ane share ini ya, kalo antivirus buatan ente udah jadi jangan lupa di share disini ya.

Source Code Accounting


Nih ada sourcecode accounting buat sobat blogger yang hobi ngoprek kode.....
Ane dapat nih sc dari mbah google....
Semoga bermanfaat

Download Disini

Source Code Hotel wahana


Hallo Sobat....
Ni ada sourcecode hotel wahana...
Sourcecode ini ane dapat sewaktu jalan2 sama mbahgoogle :)
Silahkan dikembangi lagi ya...
Alangkah indahnya jika kita saling berbagi untuk memajukan bangsa ini..

Download Disini