Tuesday, June 25, 2019

Fransiskus Sutris

CARA MEMATIKAN KOMPUTER LEWAT COMMAND PROMPT

Untuk mematikan/shutdown komputer lewat command prompt berikut ini perintahnya.

  • Buka command prompt dari menu Start
  • Ketik cmd
  • Lalu Enter
  • Ketikan perintah shutdown -s - f -t 00 pada layar command prompt yang tampil
  • Lalu tekan Enter maka komputer akan melakukan shutting down.
Untuk merestart komputer tinggal mengganti parameter -s menjadi -r
Untuk mematikan/merestart dalam bebeberapa waktu setelah perintah ditekan enter ubah saja parameter 00 menjadi jumlah detik yang dikehendaki.

Read More

Monday, June 24, 2019

Fransiskus Sutris

Microsoft Office Outlook Has Stopped Working


Ketika Microsoft Outlook anda tidak bisa dijalankan dan muncul error "Microsoft Office Outlook Has Stopped Working", maka cara untuk memperbaikinya sangat mudah yaitu dengan cara repair Microsoft Office anda.












Langkah-langkahnya adalah sebagai berikut :
  • Buka Control Panel >>
  • Buka Add or Remove Programs / Programs And Features
  • Klik pada Microsoft Office 2010 (Versi tergantung dari Ms Office yang anda pakai, maka disesuaikan saja)
  • Lalu Pilih menu Change
  • Ikut prosesnya dan pilih Repair dan klik continue
  • Silahkan diikuti prosesnya sampai selesai
  • Lalu restart komputer anda.
Demikianlah cara memperbaikin Microsof Office yang tidak bisa dibuka dengan error tersebut di atas.

semoga bermanfaat.

Read More

Thursday, June 13, 2019

Fransiskus Sutris

How To Display XML File in Combobox Using VB.net

How To Display XML File in Combobox Using VB.net

What is xml?

XML is a software- and hardware-independent tool for storing and transporting data.

What is XML?

  • XML stands for eXtensible Markup Language
  • XML is a markup language much like HTML
  • XML was designed to store and transport data
  • XML was designed to be self-descriptive
  • XML is a W3C Recommendation
want to read more about xml ? Go Here>>
Source : https://www.w3schools.com/xml/xml_whatis.asp
Now i want focus on how to display data from XML file in combobox.

  • Open your text editor (like sublimeText or notepad)
Type the following xml content, then save with file name : category.xml
On my computer i save category.xml on the following place >> D:\category.xml

  • Open your Vb.net
On form1 design put one ComboBox, name it ComboBox1, see picture below:

  • Double click on form area and then type the following code in Form1_Load:
  • Run the project and look at the combobox, it will be filled with category data from the category.xml file

Thank you, hopefully useful.

#Loading xml value into combobox
Read More

Thursday, May 30, 2019

Fransiskus Sutris

Easy Way To Encrypt Files Without Software

Easy Way To Encrypt Files Without Software

Encryption is the process of securing an information by making the information cannot be read without the help of special knowledge.
Because the title is a layman method, I will show you how to encrypt our file files in a simple and simple way.
Here we will use the file extension.
I told you that by default the file extension is not visible.




Let's try now, we will encrypt the MY PASSWOD.DOCX file, see the picture below

The target file that we will encrypt is MY PASSWORD.DOCX
  • Right-click on the MY PASSWORD.DOCX file,
  • Select Add to archive ...
  • Please change the name of the archive file, for example the compressed file becomes MY PASSWORD ENKRIP.RAR
  • The first step is complete, compressing MY PASSWORD.DOCX file, the encrypted file appears as below
The second step is that we rename the compressed file to an extension .docx.
  • Right-click MY PASSWORD ENKRIP.RAR
  • Pilgrimage Rename
  • Change the .rar extension to .docx
  • Just Click YES if questions arise
  • The encryption process is complete and the file we compressed will change again to the icon of Microsoft Word. see the picture below (it appears MY PASSWORD ENKRIP.DOCX file with Microsoft Word default icon).
  • Now your file is safe, because other people think that the file is a word file, and when we open it will definitely open the Microsoft Word application. But the file will not open and is considered corrupt.

Then how to open it? Yes, you just have to rename it again to .rar then extract it again to become the original file.

That is an encryption trick from me, hopefully it's useful for you. but if it's not useful, please forgive.
Read More
Fransiskus Sutris

CARA MUDAH DAN AWAM ENKRIPSI FILE TANPA SOFTWARE

Enkripsi adalah proses mengamankan suatu informasi/file dengan membuat informasi tersebut tidak dapat dibaca tanpa bantuan pengetahuan khusus.

Karena judulnya adalah cara awam maka saya akan tunjukan cara mengenkripsi file file kita secara awam dan sederhana, walaupun sederhana tetapi trik ini sangat bermanfaat bagi kita untuk menyimpan file-file yang sangat rahasia, kita sendiri yang tahu cara membukanya.

Trik enkripsi ini akan memanfaatkan ekstensi file. contohnya misalkan kita punya file microsoft word versi 2007 keatas maka ekstensinya adalah filename.docx. docx itulah yang disebut sebagai ekstensi file. Saya beri tahu bahwa secara default ekstensi file tidak terlihat. (CARA MENAMPILKAN EKSTENSI FILE).

Mari kita coba sekarang, kita akan mengenkripsi file MY PASSWOD.DOCX, lihat gambar di bawah ini.
Target File yang akan kita enkripsi adalah MY PASSWORD.DOCX

  • Klik kanan pada file MY PASSWORD.DOCX
  • Pilih Add to archive...
  • Silahkan ubah nama file archivenya, disini saya contohkan file compressnya menjadi MY PASSWORD ENKRIP.RAR
  • Langkah pertama sudah selesai yaitu compress file MY PASSWORD.DOCX, file yang sudah terenkrip sudah muncul seperti di bawah ini
  • Langkah kedua adalah kita rename file yang sudah dicompress tersebut menjadi berekstensi .docx. 
  • Klik kanan MY PASSWORD ENKRIP.RAR
  • Pilil Rename
  • Ubah ekstensi .rar menjadi .docx
  • Klik YES saja jika ada pertanyaan muncul
  • Proses enkripsi sudah selesai dan file yang kita kompress tadi akan berubah lagi menjadi icon microsoft word. lihat gambar dibawah ini (tampak file MY PASSWORD ENKRIP.DOCX dengan icon default microsoft word).
  • Sekarang file anda sudah aman, karena orang lain menyangka bahwa file itu adalah file word, dan ketika kita buka pasti akan langsung membuka aplikasi microsoft word. Namun file tidak akan bisa terbuka dan dianggap corrupt file.
Lalu cara membukanya bagaimana? Ya tinggal anda rename lagi menjadi .rar lalu di ekstrak lagi menjadi file aslinya.

Demikian trik dari saya ini, semoga bermanfaat, jika kurang atau tidak bermanfaat mohon dimaafkan.
sekian terimakasih.


Read More
Fransiskus Sutris

Cara mudah menampilkan ekstensi file pada windows 10

Cara menampilkan ekstensi file pada windows 10.

Berikut ini tips cara menampilkan ekstensi file di diwindows 10.

Ekstensi file tidak terlihat, karena yang muncul  hanya nama file tanpa (.docx)

Mari saya tunjukan cara menampilkan ekstensi file.
Windows yang saya gunakan adalah Windows 10, maka contoh ini menggunakan Sistem Operasi WIndows 10.
  • Klik Menu File >
  • Pilih Option >
  • Pada Jendela yang muncul pilih tab View
  • Pada bagian Advanced Settings, uncheck hide extension for known files , lalu klik OK


Sekarang kita lihat ekstensi file sudah muncul, lihat gambar dibawah ini.
Ekstensi file sudah muncul .docx dan .xlsx

Demikian panduan cara menampilkan ekstensi file di windows 10, semoga membantu.






Read More

Monday, May 27, 2019

Fransiskus Sutris

VB.NET – MEMBUAT FORM AKTIVASI


Tutorial kali ini akan menjelaskan bagaimana membuat contoh form aktivasi, yaitu form yang berfungsi untuk melakukan aktivasi software aplikasi yang kita buat. Dimana biasanya dalam form terdapat dua bagian penting yaitu Serial Number dan Activation Key. Serial Number akan unik disetiap komputer, sehingga dibutuhkan Activation Key yang unik pula.

Untuk mendapatkan Activation Key bisa gunakan tombol Generate, namun jangan lupa untuk menghapus/men-disabled tombol Generate agar tidak bisa diakses oleh pengguna software yang kita buat.



  1. Silahkan desain form seperti gambar di bawah ini, dan buat property name nya seperti pada gambar. 
    Copy Kode Program ini di dalam jendela kode ACTIVATION_FORM
Imports Microsoft.Win32

Public Class ACTIVATION_FORM

    Private Sub ACTIVATION_FORM_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim serial As Long
        Dim sm As New SecurityManager
        Dim temp As String
        Dim pjg As Integer
        Dim newSerial As String = ""
        serial = sm.GetSerial
        temp = serial
        pjg = temp.Length
        For i As Integer = 1 To pjg
            Dim a As String
            Dim b As Integer
            a = Mid(temp, i, 1)
            b = Asc(a)
            newSerial = newSerial & a & b Mod 2
        Next
        serialTextBox.Text = newSerial

        checkLicense()

        Dim kg As New KeyGenerator
        Dim key As String = kg.GenerateKey(serialTextBox.Text)

        If activationKeyTextBox.Text <> key Then
            statusLabel.ForeColor = Color.Red
            statusLabel.Text = "Not Activated/invalid key"
            Button1.Enabled = True
        Else
            statusLabel.ForeColor = Color.DarkGreen
            statusLabel.Text = "Activated"
            Button1.Enabled = False
        End If

    End Sub

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        Me.Close()
    End Sub

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
        'Dim serial As Long
        'If Not Long.TryParse(serialTextBox.Text, serial) Then
        'MessageBox.Show("Inavlid serial number")
        'Exit Sub
        'End If

        Dim kg As New KeyGenerator
        Dim key As String = kg.GenerateKey(serialTextBox.Text)
        activationKeyTextBox.Text = key
    End Sub

    Sub checkLicense()
        Dim kg As New KeyGenerator
        Dim key As String = kg.GenerateKey(serialTextBox.Text)
        If System.IO.File.Exists(bejoLicenseFile) Then
            bejoWriteSettings(bejoLicenseFile, "LICENSE", "serial", serialTextBox.Text)
            activationKeyTextBox.Text = bejoReadSettings(bejoLicenseFile, "LICENSE", "activation_key", "")
        Else
            bejoWriteSettings(bejoLicenseFile, "LICENSE", "serial", serialTextBox.Text)
            activationKeyTextBox.Text = ""
        End If

    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim kg As New KeyGenerator
        Dim key As String = kg.GenerateKey(serialTextBox.Text)

        If activationKeyTextBox.Text <> key Then
            statusLabel.ForeColor = Color.Red
            statusLabel.Text = "Not Activated/invalid key"
            MsgBox("Invalid activation key!", vbExclamation)
        Else
            bejoWriteSettings(bejoLicenseFile, "LICENSE", "activation_key", activationKeyTextBox.Text)
            statusLabel.ForeColor = Color.DarkGreen
            statusLabel.Text = "Activated"
            MsgBox("Successfull Activated!", vbInformation)
        End If
    End Sub

End Class

  1. Tambahkan Module1 pada project dan copy source code berikut :
    Module Module1
        Public bejoDirectory As String = My.Application.Info.DirectoryPath
        Public bejoLicenseFile As String = bejoDirectory & "\license.ini"

        Private Declare Unicode Function GetPrivateProfileString Lib "kernel32" _
        Alias "GetPrivateProfileStringW" (ByVal lpApplicationName As String, _
        ByVal lpKeyName As String, ByVal lpDefault As String, _
        ByVal lpReturnedString As String, ByVal nSize As Int32, _
        ByVal lpFileName As String) As Int32

        Private Declare Unicode Function WritePrivateProfileString Lib "kernel32" _
            Alias "WritePrivateProfileStringW" (ByVal lpApplicationName As String, _
            ByVal lpKeyName As String, ByVal lpString As String, _
            ByVal lpFileName As String) As Int32

        Public Sub bejoWriteSettings(ByVal iniFileName As String, ByVal Section As String, ByVal ParamName As String, ByVal ParamVal As String)
            Dim Result As Integer = WritePrivateProfileString(Section, ParamName, ParamVal, iniFileName)
        End Sub

        Public Function bejoReadSettings(ByVal IniFileName As String, ByVal Section As String, ByVal ParamName As String, ByVal ParamDefault As String) As String
            Dim ParamVal As String = Space$(1024)
            Dim LenParamVal As Long = GetPrivateProfileString(Section, ParamName, ParamDefault, ParamVal, Len(ParamVal), IniFileName)
            bejoReadSettings = Left$(ParamVal, LenParamVal)
        End Function

    End Module

  1. Pada menu Project > Add References (beri tick pada System.Management)

  1. Tambahkan  object Class pada project simpan dengan nama KeyGenerator.vb, lalu copy code berikut :
    Public Class KeyGenerator
        Public Function GenerateKey(ByVal serial As String) As String
            Dim x As String = serial
            Dim temp As String = x * x / (x / 2) + x / 193686
            Dim a As String = ""
            For i As Integer = 0 To temp.Length - 1
                Dim s As Char = temp.Substring(i, 1)
                If s = "," Or s = "." Then
                    a = a & Asc(".")
                Else
                    a = a & Asc(temp.Substring(i, 1))
                End If
            Next
            Dim b As String = a.Substring(0, 5) & "-" & a.Substring(5, 5) & "-" & a.Substring(10, 5) & "-" & a.Substring(15, 5) & "-" & a.Substring(20, 5)
            Return b
        End Function
    End Class
  2. Tambahkan object Class pada project simpan dengan nama SecurityManager.vb, lalu copy code berikut :
    Imports System.Management
    Public Class SecurityManager
        Public Function GetSerial() As Long
            Dim mc As New ManagementClass("Win32_NetworkAdapterConfiguration")
            Dim mac As String = ""
            Dim moc As ManagementObjectCollection = mc.GetInstances

            For Each mo As ManagementObject In moc
                If mo.Item("IPEnabled") Then
                    mac = mo.Item("MacAddress").ToString
                End If
            Next

            mc.Dispose()

            Dim sum As Long = 0
            Dim index As Integer = 1
            For Each ch As Char In mac
                If Char.IsDigit(ch) Then
                    sum += sum + Integer.Parse(ch) * (index * 2)
                ElseIf Char.IsLetter(ch) Then
                    Select Case ch.ToString.ToUpper
                        Case "A"
                            sum += sum + 10 * (index * 2)
                        Case "B"
                            sum += sum + 11 * (index * 2)
                        Case "C"
                            sum += sum + 12 * (index * 2)
                        Case "D"
                            sum += sum + 13 * (index * 2)
                        Case "E"
                            sum += sum + 14 * (index * 2)
                        Case "F"
                            sum += sum + 15 * (index * 2)
                    End Select
                End If

                index += 1
            Next

            Return sum
        End Function

        Public Function CheckKey(ByVal key As Long) As Boolean
            Dim x As Long = GetSerial()
            Dim y As Long = x * x + 53 / x + 113 * (x / 4)
            Return y = key
        End Function
    End Class
Yang mau download project nya dan papernya download di bawah ini :

Read More