pada design, Formnya harus disetting Popup = -1 (true),
sedangkan untuk form modal itu optional


  -----Original Message-----
  From: Ivan Leonardo [mailto:[email protected]]
  Sent: Wednesday, April 08, 2009 12:00
  To: [email protected]
  Subject: Hide Window was :[belajar-access] Re: Protect program...?





  sy coba pasang di form load begitu form diopen langsung hilang semua
accessnya di task manager juga ga ada kenapa ya ? pake access 2003. spt
diclose gitu

  Roland wrote:


    Buat tambahan info saja....
    Ini yang biasa saya buat karena ngga ngerti2 buat level security :D

    Prosesnya..
    1. Backup ---> sangat penting
    2. Buat disable shift key
    3. VBAnya di password trus dicontreng "Lock Project for Viewing"
    4. Setting Startup, semua tanda contreng dihapus ya.
    5. Pada Display Form, Pilih Form yang pertama muncul.
    6. Lanjutannya edit Form yang pertama muncul tsb trus insert VBA pada
Form Load

            Option Compare Database

            Const SW_HIDE = 0       ' Hide window
            Const SW_NORMAL = 1     ' Show Window

            Private Declare Function ShowWindow Lib "user32" _
            (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

            Private Sub Form_Load()
            Dim hWindow As Long
            Dim nResult As Long
            Dim nCmdShow As Long
            hWindow = Application.hWndAccessApp
            nCmdShow = SW_HIDE
            nResult = ShowWindow(ByVal hWindow, ByVal nCmdShow)
            Call ShowWindow(Me.hwnd, SW_NORMAL)
            End Sub

    7. Convert menjadi MDE
    8. Rename file extension MDE menjadi MDB
    9. Program siap dipakai/share

    dengan ini form & modul pasti aman 100% (tapi untuk sementara, banyak
kemungkinan
    yang bisa terjadi khan...) sedangkan untuk tabel mungkin lebih baik
menggunakan level
    security .... untuk ini saya tidak bisa bantu karena masih belum
mengerti :D

    Untuk prosedur no.2,saya attac file kiriman [email protected] di
milis ini
    untuk membuat disable shift key pada file MDB yang mau diproses.

    Prosedur untuk no.6 untuk apa? silahkan coba sendiri ah... :D
    code tsb saya copy dari email mas opie..

    Selamat berkreasi... ingat jangan langsung ke prosedur no.2, backup data
dulu..

    ~roland
    masih master di copy paste :D
    Test di Ms Access 2000
    .




  --------------------------------------------------------------------------
-
  This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message, which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version.

  

Kirim email ke