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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sammye
  • Content: Threads
  • Order by date
  1. sammye

    Show/hide tool tips programatically

    Is there a way to show/hide all of the tooltips on a form programatically? I want to use them as sort of a help function by creating a button that toggles their view. I have found ways to show individual tooltips momentarily or allow the hover to work even if the form is not the focused form...
  2. sammye

    Prevent Thread Re-entrance on Same Thread

    I am looking for a way to prevent reentrance on the same thread. The problem is that I have a static function that is called from a form in a couple of ways (button, timer), and I have been using a lock to prevent reentrance from other threads and that portion seems to be working fine. However...
  3. sammye

    Application dies suddenly without warning

    Hello, My app has this funny habit of crashing and burning without the slightest hint of what happened. One moment it is running along (in debug mode) without issue, and then all of a sudden it just disappears. There were no warnings, pop-ups, exceptions caught, etc. I am curious of there are...
  4. sammye

    Synchronous Static Method on Same Thread

    Hello, How do I go about making a static method synchronous? I have a static method which gets called by multiple UI events, but I want the last one to complete before the latest call gets processed. I tried to use 'lock', but only to find out that it only blocks between separate threads. Any...
  5. sammye

    SQL Inline Macro

    Is there such a thing as an inline macro within sql? I am not sure I am using the right terminology, but below is what I am looking for: MACRO myRemoteTableMacro "OPENDATASOURCE('SQLNCLI','Data Source=myRemoteSvr;Integrated Security=SSPI').myDb.dbo" select * from myRemoteTableMacro.table1 The...
  6. sammye

    Control auto resizes when it's width is less than 10

    Hello, I am curious if anyone knows why my controls automatically resize themselves after I change the height within the designer while on a form. This is only the case when the control width is less than 10 (pixels I think). For example, if I add a button to my form and manually change its...
  7. sammye

    Replace everything in string except...

    Hello, Does anyone have any tips on replacing every character in a string with "something1" except for "something2"? For example: Given string "xxAyxx", replace every character which is not an 'x' with a 'g'. Start: "xxAyxx" Result: "xxggxx" Thanks
  8. sammye

    Can I add a DLL as a Project Resource?

    Hello, Is it possible to add a DLL as a project resource? I would like to have a second DLL which I am using in my application be somehow included within my .EXE to alleviate having to keep track of it. If it is in fact possible, any tips on how to do it? Thanks.
  9. sammye

    query fails in C# with field "bit_length"

    Does anyone have an idea why the query below results in an error? The problem appears to be centered around the field named "bit_length". If I use query for only "name" or "*" instead, the query returns just fine. Error: failed to retrieve the required data from the database...
  10. sammye

    get one record per duplicate field

    I’m having trouble retrieving just the 1st record where there are two available. Here’s an example table: My table: Name Address ---- ------- Bob 1st street Bob 4th ave Ann 3rd street Ann 7th ave What I’d like to retrieve: Name Address ---- ------- Bob 1st street Ann 3rd street I don’t...

Part and Inventory Search

Back
Top