C# Scrolling a Panel in windows forms

后端 未结 3 1991
礼貌的吻别
礼貌的吻别 2021-02-14 18:07

I\'m using VS2010, Windows 7

I have a panel with lots of picture-boxes. It has

AutoScroll = true

The scroll bars work properly when i d

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-14 18:52

    Try

    private void panel1_MouseEnter(object sender, EventArgs e)    
    {    
       panel1.Focus();    
    }
    

提交回复
热议问题