Private Sub PictureBox1_MouseDoubleClick(ByVal sender As Object, ByVal e As MouseEventArgs) Handles PictureBox1.MouseDoubleClick If e.X > 41 AndAlso e.X < 184 AndAlso e.Y > 387 AndAlso e.Y < 219 Then Dim frm2 As New Form_customer_order() frm2.Show() End If End Sub不行
If e.X > 41 AndAlso e.X < 184 AndAlso e.Y > 387 AndAlso e.Y < 219 Then
Dim frm2 As New Form_customer_order()
frm2.Show()
End If
End Sub不行
{
if ((e.X > 0 && e.X < 100) && (e.Y > 0 && e.Y < 100))
{
Form2 ff = new Form2();
ff.Show();
}
}
{
this.Cursor = Cursors.Hand;
} private void pictureBox2_MouseLeave(object sender, EventArgs e)
{
this.Cursor = Cursors.Default;
}
{
int x = e.X;
int y = e.Y;
if( ( x > 0 && x < 100 ) && ( y > 0 && y < 100 ) )
{
this.Cursor = Cursors.Hand;
}
else
{
this.Cursor = Cursors.Default;
}
}
这个可以啊
{
int x = e.X;
int y = e.Y;
if( ( x > 0 && x < 100 ) && ( y > 0 && y < 100 ) )
{
this.Cursor = Cursors.Hand;
}
else
{
this.Cursor = Cursors.Default;
}
}