imam zadatak zadati određene funkcionalnosti kreiranoj formi, jedna od funkcionalnosti koja me muči je desnim klikom miša promjeniti veličinu forme na 500x500
pa ako mi netko može pomoći oko toga, evo kako sam ja pokušao, bio bi zahvalan kad bi mi netko barem dao kakav hint :)2x/3y
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Vjezba3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Left(object sender, MouseEventArgs e)
{
if(e.Button==MouseButtons.Left)
{
this.BackColor = Color.Black;
}
}
private void button1_Click(object sender, EventArgs e)
{
}
private void Right(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
this.Size = new System.Drawing.Size(500, 500);
}
}
private void button2_Click(object sender, EventArgs e)
{
}
}
}
Domagoj Pordan