>Nearly all of the time when a programmer thinks she needs to write code at runtime, it is because she can not think of a better way to do it. For example, Christian's needs could and should be taken care of with classes. Put the code that you want in a class definition, and add it at runtime.
>
Erik,
I hope you're right by saying that I don't even need to write code at runtime. The need for this came through a weired problem which I encountered with my grid:
The grid is instantiated within the form (in the form designer), and all my code and methods and properties are edited there. So is my GotFocus event etc.
What happens is, that when I change a few properties of the grid (RecordSource of the grid, Controlsource of the Columns, Width of the columns etc), then the Gotfocus events of my textboxes are gone! I didn't expect this behavior.
Maybe I do something else wrong?
Christian Isberner
Software Consultant