As I wait in dreadful silence to find out whether or not this company will stay in business (and hence whether all of us will be retrenched), I find myself blogging obsessively… the value of these posts is rather dubious, I fear.
Again, the source, for this and a whole bunch of other stuff, is here: RomyView.zip
My pet project written completely in my spare time… how many more posts can I possibly squeeze out of it?
Anyway, it always pissed me off that setting a form’s startup type as WindowsDefaultLocation in c# causes all forms of that type to start up in exactly the same place. e.g. My application supports multiple simultaneous similar operations, like converting videos, or creating zip files, that show modeless progress dialogs. I don’t want all of those dialogs on top of each other. Thus I added this silly method to my base form class (Called from OnLoad when required):
Depending on how many monitors there are, and the circumstances of the form or dialog being created, the above code may not be ideal. Thus I made it a virtual method. In fact, I did override it somewhere, but I don’t recall the details of why right now.