ListView.Controls.Add() failing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am deriving a new class from ListView and want to create two buttons for
some special scrolling logic. The buttons do not appear, though. When I try
the same thing in a normal .Net Framework application, the same problem
occurs unless I do a Controls.Add(btn) -- t his works for a .Net Framework
app, but it fails with a:

An unhandled exception of type 'System.ArgumentException' occurred in
System.Windows.Forms.dll

Additional information: ArgumentException

when I attempt to do the same thing in a .Net Compact Framework app (running
in the emulator).

Anyone have any thoughts on this? Is there another approach to getting the
buttons to display, other than adding them to the collection of controls?

thanks

al
 
Back
Top