I've set the 'mouse leave' event on a windows form and I want to hide the form when the mouse leaves the visible area.  But here is where I am facing a problem. Even when I move the mouse to a button on the same form, it calls the 'mouse leave' event, which makes this form invisible.  It means I've got to prevent the event triggering when moving the mouse to the button. But how? Any other approach?
I have a form with a lot of controls on it.  How can I detect when the mouse leaves the form?  I've tried wiring up a MouseLeave event for every single control and the form, but that does not work because those events fire all the time as the mouse passes over controls.  Is there a way that actually works.?
Why does the degree of freedom of SSR equals 1 in simple linear regression Filling only when one curve is below the other Bibliography in Texmaker Why is my toilet bubbling? Last night while my washing machine and sink in the master bath was running, my master toilet started having air bubbles come up.  Then this morning while I was showering I heard bubbles again, and the shower was draining very slowly.  After the bubbles occurred my toilet in the master bath and powder room completely drained of water in the bowl and tank.  What is happening? How to render lightning in Cycles How can you render a lightning bolt using Cycles? Page range truncation with imakeidx This is a followup question to egreg's answer to  The answer runs into a problem if an index topic occurs in more than one page range. The following MWE, based on egreg's answer:  \begin{filecontents*}{subjind.ist} delim_0 ", \\checkrange{" delim_t "}" \end{filecontents*}  \documentclass{book} \usepackage{xparse} \usepackage{imakeidx}  \makeindex[title=Subject Index,options=-s subjind]  \ExplSyntaxOn \NewDocumentCommand{\checkrange}{&gt;{\SplitArgument{1}{--}}m}  {   \formatrange#1  } \NewDocumentCommand{\formatrange}{mm}  {   \IfNoValueTF { #2 }    { % no --, it's not a range     #1    }    { % it's a range     \egreg_range:nn { #1 } { #2 }    }  }  \bool_new:N \l__egreg_range_compare_bool  \cs_new_protected:Nn \egreg_range:nn  {   % print the start number   #1--   \int_compare:nNnTF { \str_count:n { #1 } } = { \str_count:n { #2 } }    {% same number of digits, remove equal ones at the start     \__egreg_range_compare:nn { #1 } { #2 }    }    {% different number of digits, print both     #2    }  } \cs_new_protected:Nn \__egreg_range_compare:nn  {   \bool_set_true:N \l__egreg_range_compare_bool   % do a loop on the digits in the first number   \int_step_inline:nn { \str_count:n { #1 } }    {     \bool_if:NTF \l__egreg_range_compare_bool      {       % if the digits coincide, print nothing       \str_if_eq:eeF { \str_item:nn { #1 } { ##1 } } { \str_item:nn { #2 } { ##1 } }        {         \str_item:nn { #2 } { ##1 }         % at the first differing digit, don't compare any longer         \bool_set_false:N \l__egreg_range_compare_bool        }      }      { \str_item:nn { #2 } { ##1 } }    }  } \ExplSyntaxOff  \begin{document} \setcounter{page}{95}\index{Topic0|(}Text\newpage \setcounter{page}{101}\index{Topic0|)}Text\newpage \setcounter{page}{124}\index{Topic1|(}\index{Topic2|(}Text\newpage \setcounter{page}{126}\index{Topic1|)}Text\newpage \setcounter{page}{134}\index{Topic2|)}Text\newpage \setcounter{page}{141}\index{Topic0}Text\newpage \index{Topic0}Text\newpage \index{Topic0}Text \printindex \end{document}   yields the following error message:  ! LaTeX3 Error: Too many '--' tokens when trying to split argument.  For immediate help type H &lt;return&gt;.  ...                                                l.3   \item Topic0, \checkrange{95--101, 141--143}   Entering non-stop yields the following output:    which omits "-3" from the second index entry of Topic0. The question is how to get around this.  Edit following up on egreg's ingenious solution.  I don't know if I should ask a new follow up question, so I'm posing it first here in this edit.  egreg's solution doesn't seem to handle index sub-topics.  If one adds the following 4 lines  \setcounter{page}{135}\index{Topic0!sub0|(}Text\newpage \setcounter{page}{136}\index{Topic0!sub0!subsub0|(}Text\newpage \setcounter{page}{139}\index{Topic0!sub0!subsub0|)}Text\newpage \setcounter{page}{140}\index{Topic0!sub0|)}Text\newpage   after  \setcounter{page}{134}\index{Topic2|)}Text\newpage   in the solution, one gets the following errors:  Output written in mwe.ind. Transcript written in mwe.ilg.  (mwe.ind ! Extra }, or forgotten \endgroup. l.4     \subitem sub0, 135--140}  ? r OK, entering \nonstopmode... ! Extra }, or forgotten \endgroup. l.5       \subsubitem subsub0, 136--139}  ) [145] (mwe.aux) )   and this output:    Alas I don't understand egreg's code well enough to make the required changes. What is an uninterruptible process? Sometimes whenever I write a program in Linux and it crashes due to a bug of some sort, it will become an uninterruptible process and continue running forever until I restart my computer (even if I log out).  My questions are:   What causes a process to become uninterruptible? How do I stop that from happening? This is probably a dumb question, but is there any way to interrupt it without restarting my computer? Let the search find questions by ID Why are cryptography algorithms not exported to certain countries? There have been strict laws about the export of crypto software to certain countries. I can understand the intent, but never gauged the fact that there is nothing stopping these countries from developing their own crypto software. So why limit the export?   And in light of the recent NSA revelations, of backdoors being engineered into crypto algos, wouldn't the export of such compromised algorithms have helped to unravel secrets? Please provide a mobile-optimized captcha page How to avoid pagenumering with text in scrlttr2 Have a Letter in scrlttr2. I cannot avoid/exclude the text before the page number 'Seite' (see print-screen). The  recommends to add \pagenumbering{arabic}. But for my document, it has no effect.    %--------------------------------------------------------------------------- \documentclass%% %---------------------------------------------------------------------------   [fontsize=12pt,%%          Schriftgroesse %--------------------------------------------------------------------------- % Satzspiegel    paper=a4,%%               Papierformat    enlargefirstpage=on,%%    Erste Seite anders    pagenumber=footcenter,%%   Seitenzahl oben mittig %--------------------------------------------------------------------------- % Layout    headsepline=on,%%         Linie unter der Seitenzahl    parskip=half,%%           Abstand zwischen Absaetzen %--------------------------------------------------------------------------- % Formatierung    draft=on%%                Entwurfsmodus ]{scrlttr2} %--------------------------------------------------------------------------- \usepackage{german} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}  %--------------------------------------------------------------------------- \begin{document} %--------------------------------------------------------------------------- % Briefstil und Position des Briefkopfs \LoadLetterOption{DIN} %% oder: DINmtext, SN, SNleft, KOMAold. \makeatletter \pagenumbering{arabic}  %--------------------------------------------------------------------------- % Seitenstil \pagestyle{plain}%% keine Header in der Kopfzeile %--------------------------------------------------------------------------- \begin{letter}{Herr\\                 Mustermann\\                Straße 1\\                12345 Stadt} %--------------------------------------------------------------------------- \setkomavar{subject}{Beispielschreiben} %--------------------------------------------------------------------------- \opening{Liebe Herr Mustermann,}  here is some Text.  \pagebreak  here is some Text. %--------------------------------------------------------------------------- \end{letter} %--------------------------------------------------------------------------- \end{document} %--------------------------------------------------------------------------- Can I change the color of the last selected face, so that it is the same as the other selected faces?  Here, I've selected the left face then the right face. Note the right face is some sort of checkered or dithered pattern, and just the outline has the nice orange 'selected' color.    Here I've selected the top face, note the right face has now the nice color.    And here I've deselected the top face. Now, both of the remaining selected faces have the nice color. This is the result I'd rather see instead of image 1. How can I decode HTML characters in C#? I have email addresses encoded with HTML character entities. Is there anything in .NET that can convert them to plain strings? align vs equation What does "overfull hbox" mean? (Why is there a black mark at the end of a line?) I often see output from TeX with the warning overfull hbox, badness 10000. What does this message mean? can you help me to do a difference of CDF? I have 2 CDF's with equal number of points that I want to compare. These are from:   Temperature of 1 month from 2012 Mean temperature across months   What can I do to obtain this difference, this is from the formula of Finkelstein-Schafer iPhone stuck on Connect to iTunes My iPhone is stuck on Connect to iTunes Screen (support.apple.com/iphone/restore iTunes logo and up arrow with lightning cable) I have Tried :-   Connecting it to iTunes and Updating, It updates Successfully.But on the same screen again   Restoring, It restores successfully.But on the same screen again  Tried Recovery Mode Screen Method and DFU method Tried Closing and Restarting iTunes Tried Deleting 'iPhone Software Update' folder in iTunes and Re-Downloding Updates    Nothing Works... Any Help will be appreciated .fbx export why there are no materials or textures? I used node textures in a mesh I exported to .FBX.  I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine.  Is there something I'm doing wrong or is it Blender? Identifier for win64 configuration in Qmake Is there a "win64" identifier in Qmake project files?  documentation does not mention other than unix / macx / win32.  So far I've tried using:  win32:message("using win32") win64:message("using win64") amd64:message("using amd64")   The result is always "using win32".  Must I use a separate project-file for x32 and x64 projects, so they would compile against correct libraries? Is there any other way to identify between 32-bit and 64-bit environments? Why does holding something up cost energy while no work is being done?