Okaaay jadi begini loh Panji Abdi ^_^

Supaya ukuran dan posisi nya tetep compatible di banyak PC/Laptop dengan resolusi yang bermacam2 juga, ya itu kita patokannya adalah ukuran form.

UI:
Code:
Public Class frmParameter

    Sub ControlLayout()
        Try
            Button1.Top = Me.Height - 75
            DataGridView1.Top = 14
            DataGridView1.Height = Me.Height - 100
            DataGridView1.Width = Me.Width - 40
        Catch ex As Exception
            'kosong buat ignore error
        End Try
    End Sub


    Private Sub frmParameter_Load(ByVal sender As System.Object, _
                ByVal e As System.EventArgs) Handles MyBase.Load
        ControlLayout()
    End Sub

    Private Sub frmParameter_Resize(ByVal sender As Object, _
                ByVal e As System.EventArgs) Handles Me.Resize
        ControlLayout()
    End Sub

End Class


Saat Load Pertama:

Resize Pertama:

Resize Kedua:

When I tried, it works fine...


Click here if you like this article.