Mad Idea Eh!,
>>;-}
"Nick" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi there,
>
> That's quite a mad one I hadn't thought of, what I've ended up doing is
> creating a new visible flag for the form and exposing it as a property.
> The when the visiblechanged event on the form fires I set the forms
> visibility property to me custom flag. Even though the event seems to get
> fired about 3 times to start with this seems to work pretty well. Thanks
> for your idea though, thinking outside the box huh?
>
> Cheers again :-)
>
> Nick.
>
> "Mr Newbie" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> What about setting the Opacity property to 0%
>>
>> ?
>>
>> "Nick" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi there,
>>>
>>> I'm having slight troubles using Application.Run and keeping a form
>>> invisible. The method appears to force the visibility of the form even
>>> if I override the createparams function with the following,
>>>
>>> ---------------
>>>
>>> Protected Overrides ReadOnly Property CreateParams() As
>>> System.Windows.Forms.CreateParams
>>> Get
>>> Const WS_VISIBLE As Integer = &H10000000
>>> Dim pCPsParams As CreateParams = MyBase.CreateParams()
>>> If ((Not showthisformflag) And CBool(pCPsParams.Style And
>>> WS_VISIBLE)) Then pCPsParams.Style = pCPsParams.Style Xor WS_VISIBLE
>>> Return (pCPsParams)
>>> End Get
>>> End Property
>>>
>>> ---------------
>>>
>>> Ive tried changing the visibility in so many different places now and
>>> it just does *not* work, even on activate with a static flag so it only
>>> happens once. Any ideas on how to achieve this? Thanks loads in
>>> advance!
>>>
>>> --
>>> Nick Pateman
>>>
>>> ---------------------------------------------------------------
>>> Please do not reply directly to me, but the entire newsgroup.
>>> Any views expressed above are my own
>>> Without predjudice
>>>
>>
>>
>
>
|