sh4d0w4RCH3R415

27
reputation
6

I'm a young developer who's slowly, but surely learning C#, if you have any suggestions on things I can learn about in C#, go ahead and tell me them @sh4d0w4RCH3R415@gmail.com

Here's some code I've made myself based off of other people's creations:

[DllImport("user32.dll")]
private static extern bool ReleaseCapture();

[DllImport("user32.dll")]
private static extern int SendMessage(IntPtr handle, int msg, int w, int l);

private void rightPnlDown(object sender, MouseEventArgs e)
{
    if (e.Button == MouseButtons.Left)
    {
        ReleaseCapture();
        SendMessage(Handle, 161, 11, 0);
    }
}

private void downPnlDown(object sender, MouseEventArgs e)
{
    if (e.Button == MouseButtons.Left)
    {
        ReleaseCapture();
        SendMessage(Handle, 161, 15, 0);
    }
}

private void diagonalPnlDown(object sender, MouseEventArgs e)
{
    if (e.Button == MouseButtons.Left)
    {
        ReleaseCapture();
        SendMessage(Handle, 161, 17, 0);
    }
}

I hope whoever is looking at this, finds this useful for sizing.

Good luck in your journey of coding!