I touched on this in my last topic. I've been unable to get a 'Paint' event for a TextBox working - this is documented in the .NET help, but it is not listed in the Events list of the control (In VC#). I tried to write one into the code myself but it never triggers.
Am I doing something wrong? I also notice that the TreeView control doesn't have a Paint event at all - is there a suitable alternative I can use?Code:// In InitializeComponent () this.txtText.Paint += new System.Windows.Forms.PaintEventHandler(this.txtText_Paint); // Paint function private void txtText_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { // This function never runs }




Reply With Quote