Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by zythra

  1. zythra

    ComboBox - Bound to Business Object - Update Question

    eb24, I haven't tried chrissie1's solution, but I believe he is on the right track. I do have a question for you though. You mentioned that you're using an MVC pattern with WinForms. Is there a framework you're using or is it something you've come up with on your own?
  2. zythra

    Wrap a method in a try..finally using an attribute

    I like your thoughts there JurkMonkey, unfortunately it's not quite what I'm looking for. If the action I needed to perform between the try and the finally was the same every time, it would work. You did give me some thoughts for something else though so I gave you a star. :-) If anything...
  3. zythra

    Wrap a method in a try..finally using an attribute

    Alex, your response cracked me up. :-) I know very well how to use a try..finally. I really don't know if what I'm after is possible. Here's the jist. In winForms I have methods that have a try..finally in them where the finally is always the same thing. I'm just looking for a way to make...
  4. zythra

    Wrap a method in a try..finally using an attribute

    Instead of this: public void MyMethod() { try { dostuff; } finally { do finally stuff; } } I want to do this: [TryFinally] public void MyMethod() { dostuff; }
  5. zythra

    Wrap a method in a try..finally using an attribute

    I'd like to create an attribute that I can use to wrap a method in a try..finally. I don't know if this is possible, but any ideas would be appreciated. Basically I'd like to be able to do the following: [TryFinally] public void MyMethod() { dostuff; } And the code of the method would...

Part and Inventory Search

Back
Top