Re: Only one MDI child at a time



"MuZZy" <leyandrew@xxxxxxxxx> wrote in message
news:d7CdnaJgnfTdPc3fRVn-rg@xxxxxxxxxxxxxx
> if (f.Name == "YourFormName")

Better to use

if (f is YourFormName)

that way if you mistype YourFormName the compiler will pick it up.

Michael


.



Relevant Pages

  • Re: question(s) about declaring variables
    ... Michael C wrote: ... > I found a little trick a few years ago, if the compiler finds 2 functions ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • Re: compiling sybperl on x86_64 CPU and Sybase 11.9.2
    ... It is probably possible - but you need to use the correct flags to the ... C compiler so that it will produce 32bit code, ... Michael ... Prev by Date: ...
    (comp.databases.sybase)
  • Re: problem with variable
    ... > Yes, in many, many ways it's a shame they didn't make a VB compiler for ... Michael ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)