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 wOOdy-Soft 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 hansaplast

  1. hansaplast

    Where is the banded rectangle in ListView?

    Moving around on items in a ListView using CTRL-UP/DOWN normally displays a banded rectangle around the item. I can't figure out how to enable this in VB 2005. Currently I only see the blue bounding box around items. Whatever you do will be insignificant, but it is very important that you do...
  2. hansaplast

    ListView selection bug?

    VS dotnet 2003 :( Whatever you do will be insignificant, but it is very important that you do it. (Mahatma Gandhi) http://www.jeeval.nl http://www.Logic-Q.nl
  3. hansaplast

    ListView selection bug?

    Property 'FocusedItem' is 'ReadOnly' Whatever you do will be insignificant, but it is very important that you do it. (Mahatma Gandhi) http://www.jeeval.nl http://www.Logic-Q.nl
  4. hansaplast

    ListView selection bug?

    The selection anchor in a listview is not resetted when SelectedItems.Clear is called. Place a ListView with a few items on a from. Next, set ListView.View = "Details". Add a button and add the folowing codePrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...
  5. hansaplast

    Raise keydown event

    Thanks. Whatever you do will be insignificant, but it is very important that you do it. (Mahatma Gandhi) http://www.jeeval.nl http://www.Logic-Q.nl
  6. hansaplast

    Raise keydown event

    He Thanks. This works within the same class. However, I want to raise TextBox1_KeyDown event from a different class. I can make the event public but since it's an event I don't think its the proper way to do it. Any suggestions here? Whatever you do will be insignificant, but it is very...
  7. hansaplast

    Raise keydown event

    I want to raise a keydown event from within a function. How do I do that? Regards, Hansa Whatever you do will be insignificant, but it is very important that you do it. (Mahatma Gandhi) http://www.jeeval.nl http://www.Logic-Q.nl
  8. hansaplast

    Capture CTRL+C to avoid mem leak

    Yep.. Commandline tools since they are so easy and flexible in use. Perhaps my UNIX background has something to with it and maybe that too has something to do with cleaning up my own stuff instead of letting the garbage collector decide (no offence Prattaratt) :) Salem, from the VC++ forum had...
  9. hansaplast

    Capture CTRL+C to avoid mem leak

    Now... Thats what I was looking for! Thank you verry much Salem. Whatever you do will be insignificant, but it is very important that you do it. (Mahatma Gandhi) http://www.jeeval.nl
  10. hansaplast

    Capture CTRL+C to avoid mem leak

    Thanks Salem, that works for one case namely CTRL+C. But what to do when pressing the X on the windows console? Whatever you do will be insignificant, but it is very important that you do it. (Mahatma Gandhi) http://www.jeeval.nl
  11. hansaplast

    Capture CTRL+C to avoid mem leak

    I'm having memory leaks. I've posted my problem in the Builder forum but I think this also applies to MS VC++. Maybe someone here can have a look at it. http://www.tek-tips.com/viewthread.cfm?qid=1313233&page=1 Tnx.. Whatever you do will be insignificant, but it is very important that you do...
  12. hansaplast

    Capture CTRL+C to avoid mem leak

    Borlands documentation (ref: abort) says:If you call abort anywhere in a program, no destructors are called, not even for variables with a global scope.Somehow no exception is thrown when pressing CTRL+C and thus exception handlers do not apply. So my thought was that CTR+C (or pressing the...
  13. hansaplast

    Capture CTRL+C to avoid mem leak

    Ok. I did the folowing: #include <stdlib.h> void destruct_main(void) { delete clss; } main () { MyClass *clss = new MyClass; atexit(destruct_main); //.. some code ..// delete clss; }Hitting CTR+C doesn't execute destruct_main. The funny thing is that when I use MyClass in a local...
  14. hansaplast

    Capture CTRL+C to avoid mem leak

    Please consider the folowing: main () { MyClass *clss = new MyClass; //.. some code ..// delete clss; }When the programm runs and CTRL+C is pressed, clss is not deleted thus creating a leak. How can I avoid this? I tried 'try' and 'catch' but that doesn't seem to work. Whatever you do...
  15. hansaplast

    Sync (sub)Items to Columns in a TListView

    A long time ago I needed a component which was capable of adding columns and items in a listview. Then Lord Borland presented me the TListView component with which I could add columns and items as much as I liked. I could even add subitems and the world became a beautiful place. I then got the...

Part and Inventory Search

Back
Top