Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COI said that I'm not using Application.Run, I didn't say it makes the form visible. I didn't "Run" the app because this isn't fundamentally an "event driven"; it's a longish mainline which just needs to show a modal dialogue with a few controls... If I need to restructure the app to be "event-driven" then I'll do so... I didn't do so initially because it doesn't suit the problem. FIRST I'm hoping to find another solution to the form being shown "behind" the host GIS application. I shall try BringToFront() in the OnShow method (which are both new on me;-) I appreciate your help. Cheers. Keith.
      singulars
    2. COSorry, I imagined you saying that Application.Run avoided the problem. Your objection to it is a bit odd, though. Forms receive events the same way whether you do Application.Run or Form.ShowDialog. In fact, the way in which these two work is almost (but not quite) identical. They both end up calling ThreadContext.FromCurrent().RunMessageLoop (ThreadContext is an internal class within System.Windows.Forms.dll).
      singulars
    3. COAha... My objections to Application.Run are based on pure untrammelled ignorance. I've just realise that Application.Run BLOCKS THE CALLING THREAD. (Forgive my shouting, there aren't many options for emphasis in SO comments). I really appreciate your advise, and I'll be off to work this morning to try it out. Sorry if I was a bit narky, it was late and I was very tired, and increasingly frustrated.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload