|
|
|
start date: Wed, 22 Aug 2007 02:20:02 -0700,
posted on: microsoft.public.dotnet.framework.compactframework
back
| Thread Index |
|
1
davebythesea
|
|
2
Peter Foot [MVP]
|
|
3
Neil Cowburn
|
|
4
davebythesea
|
|
5
Neil Cowburn
|
|
6
davebythesea
|
Forms - Shown() method or similar
Dear List,
I need an event to be fired after a Form is first Shown. Is there something
we can do to initiate an event at this stage?
Thanks,
Dave
Date:Wed, 22 Aug 2007 02:20:02 -0700
Author:
|
Re: Forms - Shown() method or similar
Form itself has events for Load and Activate. Where exactly do you want to
handle the events - within the form itself or elsewhere in some other class?
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
"davebythesea" wrote in message
news:5CD6BBD6-BECA-4670-B4E6-1D7B75A30AFE@microsoft.com...
> Dear List,
>
> I need an event to be fired after a Form is first Shown. Is there
> something
> we can do to initiate an event at this stage?
>
> Thanks,
> Dave
Date:Wed, 22 Aug 2007 12:09:48 +0100
Author:
|
Re: Forms - Shown() method or similar
The Load event should be sufficient.
--
Neil Cowburn
Principal Partner
OpenNETCF Consulting
http://www.opennetcf.com/
http://www.smartdeviceframework.com/
"davebythesea" wrote in message
news:5CD6BBD6-BECA-4670-B4E6-1D7B75A30AFE@microsoft.com...
> Dear List,
>
> I need an event to be fired after a Form is first Shown. Is there
> something
> we can do to initiate an event at this stage?
>
> Thanks,
> Dave
Date:Wed, 22 Aug 2007 12:13:44 +0100
Author:
|
Re: Forms - Shown() method or similar
What I want to do is populate a ListView once the form is visible, so when
the Form becomes visible I call a Web service and check for new data to
download, the data I download I present in a ListView to show a summary of
the new stuff I've downloaded. I want that to take place when the form is
visible, and then display the Waiting cursor so the user knows somethings
actually happening instead of having no form shown and waiting, wondering
whats going on. So thats why I was hoping for a Shown event, so I can fire
off the Web Service call after the Form is defiently Shown and visible to the
user. I might give Load another go, but I thought the visibility of the Form
would remain hidden until the Load event is finished?
Well, I 'll give it a go,
Cheers,
Dave
"Neil Cowburn" wrote:
> The Load event should be sufficient.
>
> --
> Neil Cowburn
> Principal Partner
> OpenNETCF Consulting
>
> http://www.opennetcf.com/
> http://www.smartdeviceframework.com/
>
>
> "davebythesea" wrote in message
> news:5CD6BBD6-BECA-4670-B4E6-1D7B75A30AFE@microsoft.com...
> > Dear List,
> >
> > I need an event to be fired after a Form is first Shown. Is there
> > something
> > we can do to initiate an event at this stage?
> >
> > Thanks,
> > Dave
>
>
Date:Wed, 22 Aug 2007 06:50:01 -0700
Author:
|
Re: Forms - Shown() method or similar
You can force the form to be made visible in the Load event handler and set
the wait cursor there too.
--
Neil Cowburn
Principal Partner
OpenNETCF Consulting
"davebythesea" wrote in message
news:E5A1D801-AABC-46EC-8D42-CBF89E601D9D@microsoft.com...
> What I want to do is populate a ListView once the form is visible, so when
> the Form becomes visible I call a Web service and check for new data to
> download, the data I download I present in a ListView to show a summary of
> the new stuff I've downloaded. I want that to take place when the form is
> visible, and then display the Waiting cursor so the user knows somethings
> actually happening instead of having no form shown and waiting, wondering
> whats going on. So thats why I was hoping for a Shown event, so I can fire
> off the Web Service call after the Form is defiently Shown and visible to
> the
> user. I might give Load another go, but I thought the visibility of the
> Form
> would remain hidden until the Load event is finished?
>
> Well, I 'll give it a go,
>
> Cheers,
> Dave
>
> "Neil Cowburn" wrote:
>
>> The Load event should be sufficient.
>>
>> --
>> Neil Cowburn
>> Principal Partner
>> OpenNETCF Consulting
>>
>> http://www.opennetcf.com/
>> http://www.smartdeviceframework.com/
>>
>>
>> "davebythesea" wrote in message
>> news:5CD6BBD6-BECA-4670-B4E6-1D7B75A30AFE@microsoft.com...
>> > Dear List,
>> >
>> > I need an event to be fired after a Form is first Shown. Is there
>> > something
>> > we can do to initiate an event at this stage?
>> >
>> > Thanks,
>> > Dave
>>
>>
Date:Wed, 22 Aug 2007 15:06:00 +0100
Author:
|
Re: Forms - Shown() method or similar
Did anyone ever tell you your a genius?
Marvelous!
Thanks!
"Neil Cowburn" wrote:
> You can force the form to be made visible in the Load event handler and set
> the wait cursor there too.
>
> --
> Neil Cowburn
> Principal Partner
> OpenNETCF Consulting
>
>
> "davebythesea" wrote in message
> news:E5A1D801-AABC-46EC-8D42-CBF89E601D9D@microsoft.com...
> > What I want to do is populate a ListView once the form is visible, so when
> > the Form becomes visible I call a Web service and check for new data to
> > download, the data I download I present in a ListView to show a summary of
> > the new stuff I've downloaded. I want that to take place when the form is
> > visible, and then display the Waiting cursor so the user knows somethings
> > actually happening instead of having no form shown and waiting, wondering
> > whats going on. So thats why I was hoping for a Shown event, so I can fire
> > off the Web Service call after the Form is defiently Shown and visible to
> > the
> > user. I might give Load another go, but I thought the visibility of the
> > Form
> > would remain hidden until the Load event is finished?
> >
> > Well, I 'll give it a go,
> >
> > Cheers,
> > Dave
> >
> > "Neil Cowburn" wrote:
> >
> >> The Load event should be sufficient.
> >>
> >> --
> >> Neil Cowburn
> >> Principal Partner
> >> OpenNETCF Consulting
> >>
> >> http://www.opennetcf.com/
> >> http://www.smartdeviceframework.com/
> >>
> >>
> >> "davebythesea" wrote in message
> >> news:5CD6BBD6-BECA-4670-B4E6-1D7B75A30AFE@microsoft.com...
> >> > Dear List,
> >> >
> >> > I need an event to be fired after a Form is first Shown. Is there
> >> > something
> >> > we can do to initiate an event at this stage?
> >> >
> >> > Thanks,
> >> > Dave
> >>
> >>
>
Date:Wed, 22 Aug 2007 07:32:01 -0700
Author:
|
|
|