Jump to content
Xtreme .Net Talk

BenH

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by BenH

  1. Regardless of whether you meant this.Close() or t.Close(), code execution in that particular routine will stop until the t form has been closed. You should probably explore the differences in the .Show and .ShowDialog methods. If you call t's Show method instead, code execution will continue and this.Close() will be called. BUT, if this contains your application's entry point, calling Close() will cause your application to exit, thus closing with it the new t form. :) You could call this.Hide() instead.
  2. Instantiation without Declaration I certainly wouldn't advocate such, but: (new MyForm()).Show(); Always declare your variables! :D This code is not so easy to read and might cause someone other than yourself to get tripped up. Inevitably, if you're a professional developer, your code will be read by someone else at some point. I see no real benefit in not declaring the variable.
  3. You wouldn't necessarily have to use a database as such. Before generating the report, you could just run your hashtable through a procedure that generates and returns an in-memory dataset or datatable. You could pass the dataset to crystal reports.
  4. The ListView class has a FullRowSelect property that handles this. At least I think that addresses your question.
×
×
  • Create New...