// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Drawing; using System.Windows.Forms; namespace E { public partial class MainForm : Form { public MainForm() { InitializeComponent(); for(int i = 1; i <= 100; i++) textBox1.AppendText("Linie " + i + "\r\n"); panel1.VerticalScroll.Enabled = true; panel1.VerticalScroll.Visible = true; panel1.Scroll += myscroll; } public void myscroll(Object sender, ScrollEventArgs e) { MessageBox.Show("Vi scroller"); } } }