if my vfp application has lost focux (ie the user is now using another
application), then how can i forcefully bring up my application (to the
front).

i remember seeing some API functions for this.

Re: how to bring my vfp screen to the front by Eric

Eric
Wed Jan 05 00:52:15 CST 2005

Hello, Jan!
You wrote on Wed, 5 Jan 2005 15:10:12 +1100:

J> if my vfp application has lost focux (ie the user is now using another
J> application), then how can i forcefully bring up my application (to the
J> front).

J> i remember seeing some API functions for this.

Are you looking for SetForegroundWindow()?

DECLARE INTEGER SetForegroundWindow IN Win32Api INTEGER
?SetForegroundWindow(thisform.hWnd)
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Re: how to bring my vfp screen to the front by Anders

Anders
Thu Jan 06 18:50:34 CST 2005

Why should a Windows user not be allowed to run any program s/he likes at
any time?
-Anders

"Jan" <jan.conrad@spt.uk> wrote in message
news:uMtAYzt8EHA.3640@tk2msftngp13.phx.gbl...
> if my vfp application has lost focux (ie the user is now using another
> application), then how can i forcefully bring up my application (to the
> front).
>
> i remember seeing some API functions for this.
>
>


Re: how to bring my vfp screen to the front by Paul

Paul
Fri Jan 07 00:45:26 CST 2005

I seem to remember that it's no longer possible to force an application to
the front, just for that reason (the user should be in control, not some
app). I think the most you can do now is to make your app flash in the task
bar.


"Anders Altberg" <x_pragma@telia.com> wrote in message
news:%23sLQ0DG9EHA.2540@TK2MSFTNGP09.phx.gbl...
> Why should a Windows user not be allowed to run any program s/he likes at
> any time?
> -Anders
>
> "Jan" <jan.conrad@spt.uk> wrote in message
> news:uMtAYzt8EHA.3640@tk2msftngp13.phx.gbl...
>> if my vfp application has lost focux (ie the user is now using another
>> application), then how can i forcefully bring up my application (to the
>> front).
>>
>> i remember seeing some API functions for this.
>>
>>
>



Re: how to bring my vfp screen to the front by Andrew

Andrew
Fri Jan 07 02:12:47 CST 2005

Anders Altberg wrote:
> Why should a Windows user not be allowed to run any program s/he
> likes at any time?

Maybe if it's functioning as a POS terminal or similar?
Admittedly you may then argue that Windows isn't the best choice [and I
would certainly agree! I've been to draw money out from my bank account only
to see a NT crash dump on the cash machine] but I can think of a few cases
where you may want to deny the user any control over pretty much everything
really.

--
Regards
Andrew Howell



Re: how to bring my vfp screen to the front by Ook

Ook
Fri Jan 07 10:35:20 CST 2005

Out here in the real world we have installations where the business rules
require strict control of the workstation. Workstations in corporate
environments are not play toys for the users to do with as they wish, they
operate under strict rules. I'm working on an app that is deployed to over
1000 workstations, and the users are not allowed to do anything at all on
those workstations but run my app.


"Anders Altberg" <x_pragma@telia.com> wrote in message
news:%23sLQ0DG9EHA.2540@TK2MSFTNGP09.phx.gbl...
> Why should a Windows user not be allowed to run any program s/he likes at
> any time?
> -Anders
>
> "Jan" <jan.conrad@spt.uk> wrote in message
> news:uMtAYzt8EHA.3640@tk2msftngp13.phx.gbl...
> > if my vfp application has lost focux (ie the user is now using another
> > application), then how can i forcefully bring up my application (to the
> > front).
> >
> > i remember seeing some API functions for this.
> >
> >
>



Re: how to bring my vfp screen to the front by Anders

Anders
Fri Jan 07 11:01:48 CST 2005


"Ook" <usenet@nospam.emberts.com> wrote in message
news:#QWAibN9EHA.2112@TK2MSFTNGP14.phx.gbl...
> Out here in the real world we have installations where the business rules
> require strict control of the workstation. Workstations in corporate
> environments are not play toys for the users to do with as they wish, they
> operate under strict rules. I'm working on an app that is deployed to over
> 1000 workstations, and the users are not allowed to do anything at all on
> those workstations but run my app.
>
>
> "Anders Altberg" <x_pragma@telia.com> wrote in message
> news:%23sLQ0DG9EHA.2540@TK2MSFTNGP09.phx.gbl...
> > Why should a Windows user not be allowed to run any program s/he likes
at
> > any time?
> > -Anders
> >
> > "Jan" <jan.conrad@spt.uk> wrote in message
> > news:uMtAYzt8EHA.3640@tk2msftngp13.phx.gbl...
> > > if my vfp application has lost focux (ie the user is now using another
> > > application), then how can i forcefully bring up my application (to
the
> > > front).
> > >
> > > i remember seeing some API functions for this.
> > >
> > >
> >
>
>


Re: how to bring my vfp screen to the front by Anders

Anders
Fri Jan 07 11:03:21 CST 2005

But then you have an understanding or contract with the users that
explicetely stipulates these conditions I suppose.
-Anders

"Ook" <usenet@nospam.emberts.com> wrote in message
news:#QWAibN9EHA.2112@TK2MSFTNGP14.phx.gbl...
> Out here in the real world we have installations where the business rules
> require strict control of the workstation. Workstations in corporate
> environments are not play toys for the users to do with as they wish, they
> operate under strict rules. I'm working on an app that is deployed to over
> 1000 workstations, and the users are not allowed to do anything at all on
> those workstations but run my app.
>
>
> "Anders Altberg" <x_pragma@telia.com> wrote in message
> news:%23sLQ0DG9EHA.2540@TK2MSFTNGP09.phx.gbl...
> > Why should a Windows user not be allowed to run any program s/he likes
at
> > any time?
> > -Anders
> >
> > "Jan" <jan.conrad@spt.uk> wrote in message
> > news:uMtAYzt8EHA.3640@tk2msftngp13.phx.gbl...
> > > if my vfp application has lost focux (ie the user is now using another
> > > application), then how can i forcefully bring up my application (to
the
> > > front).
> > >
> > > i remember seeing some API functions for this.
> > >
> > >
> >
>
>


Re: how to bring my vfp screen to the front by PM

PM
Fri Jan 07 13:16:57 CST 2005

Under XP, early in your start up code, minimize and then maximize your
application to force the window to the front.

_screen.windowstate=1 && minimize to toolbar
_screen.windowstate=2 && maximize to screen


Hope this helps



On Fri, 7 Jan 2005 08:35:20 -0800, "Ook" <usenet@nospam.emberts.com>
wrote:

>Out here in the real world we have installations where the business rules
>require strict control of the workstation. Workstations in corporate
>environments are not play toys for the users to do with as they wish, they
>operate under strict rules. I'm working on an app that is deployed to over
>1000 workstations, and the users are not allowed to do anything at all on
>those workstations but run my app.
>
>
>"Anders Altberg" <x_pragma@telia.com> wrote in message
>news:%23sLQ0DG9EHA.2540@TK2MSFTNGP09.phx.gbl...
>> Why should a Windows user not be allowed to run any program s/he likes at
>> any time?
>> -Anders
>>
>> "Jan" <jan.conrad@spt.uk> wrote in message
>> news:uMtAYzt8EHA.3640@tk2msftngp13.phx.gbl...
>> > if my vfp application has lost focux (ie the user is now using another
>> > application), then how can i forcefully bring up my application (to the
>> > front).
>> >
>> > i remember seeing some API functions for this.
>> >
>> >
>>
>


Re: how to bring my vfp screen to the front by Paul

Paul
Fri Jan 07 17:28:49 CST 2005

Geez, not even internet porno? What a slavedriver...


"Ook" <usenet@nospam.emberts.com> wrote in message
news:%23QWAibN9EHA.2112@TK2MSFTNGP14.phx.gbl...
> Out here in the real world we have installations where the business rules
> require strict control of the workstation. Workstations in corporate
> environments are not play toys for the users to do with as they wish, they
> operate under strict rules. I'm working on an app that is deployed to over
> 1000 workstations, and the users are not allowed to do anything at all on
> those workstations but run my app.
>
>
> "Anders Altberg" <x_pragma@telia.com> wrote in message
> news:%23sLQ0DG9EHA.2540@TK2MSFTNGP09.phx.gbl...
>> Why should a Windows user not be allowed to run any program s/he likes at
>> any time?
>> -Anders
>>
>> "Jan" <jan.conrad@spt.uk> wrote in message
>> news:uMtAYzt8EHA.3640@tk2msftngp13.phx.gbl...
>> > if my vfp application has lost focux (ie the user is now using another
>> > application), then how can i forcefully bring up my application (to the
>> > front).
>> >
>> > i remember seeing some API functions for this.
>> >
>> >
>>
>
>



Re: how to bring my vfp screen to the front by Ook

Ook
Fri Jan 07 18:40:22 CST 2005

Well...there is the sneaker net that gets used a lot around here ;-)


"Paul Pedersen" <no-reply@swen.com> wrote in message
news:OwXtnCR9EHA.2540@TK2MSFTNGP09.phx.gbl...
> Geez, not even internet porno? What a slavedriver...
>
>



Re: how to bring my vfp screen to the front by Dennis

Dennis
Fri Jan 07 19:49:06 CST 2005

"Ook" <usenet@nospam.emberts.com> wrote in message
news:%23QWAibN9EHA.2112@TK2MSFTNGP14.phx.gbl...
> Out here in the real world we have installations where the business rules
> require strict control of the workstation. Workstations in corporate
> environments are not play toys for the users to do with as they wish, they
> operate under strict rules. I'm working on an app that is deployed to over
> 1000 workstations, and the users are not allowed to do anything at all on
> those workstations but run my app.
>
sounds like the kind of anal-retentive place where i'd never want
to work!


Dennis P. Harris, Property Manager
Wright Services, Inc.
5454 Shaune Drive, Juneau, AK 99801-9539
(907) 780-5454
wright.jnumgr@alaska.com

Re: how to bring my vfp screen to the front by Ook

Ook
Mon Jan 10 10:32:57 CST 2005


"Dennis P. Harris" <wright.jnumgr@alaska.nospam.com> wrote in message
news:3veut09hot124u4oignegutvjae25f74v6@4ax.com...
> "Ook" <usenet@nospam.emberts.com> wrote in message
> news:%23QWAibN9EHA.2112@TK2MSFTNGP14.phx.gbl...
> > Out here in the real world we have installations where the business
rules
> > require strict control of the workstation. Workstations in corporate
> > environments are not play toys for the users to do with as they wish,
they
> > operate under strict rules. I'm working on an app that is deployed to
over
> > 1000 workstations, and the users are not allowed to do anything at all
on
> > those workstations but run my app.
> >
> sounds like the kind of anal-retentive place where i'd never want
> to work!
>

You will find very few businesses that are not "anal-retentive," as you call
them. Those that are not tend to be Mom and Pop shops, inexperienced in IT
environments, and usually have a lot of problems with viruses, spyware, and
Windows issues because management is too stupid to set rules governing the
usage of company computers.



Re: how to bring my vfp screen to the front by Paul

Paul
Mon Jan 10 10:41:55 CST 2005

On the other hand, I've been in places where management was so overly
obsessed with silly stuff that I have not been able to work. There've been
times when I've had to sit for hours just waiting for permission to do
something or other.

I've also been prevented from using new versions of FoxPro even for new
applications.

And one company stayed with Windows 3.1 and 95 until a month before Windows
2000 was released, then upgraded to NT.



"Ook" <usenet@nospam.emberts.com> wrote in message
news:%230ouLIz9EHA.2196@TK2MSFTNGP11.phx.gbl...
>
> "Dennis P. Harris" <wright.jnumgr@alaska.nospam.com> wrote in message
> news:3veut09hot124u4oignegutvjae25f74v6@4ax.com...
>> "Ook" <usenet@nospam.emberts.com> wrote in message
>> news:%23QWAibN9EHA.2112@TK2MSFTNGP14.phx.gbl...
>> > Out here in the real world we have installations where the business
> rules
>> > require strict control of the workstation. Workstations in corporate
>> > environments are not play toys for the users to do with as they wish,
> they
>> > operate under strict rules. I'm working on an app that is deployed to
> over
>> > 1000 workstations, and the users are not allowed to do anything at all
> on
>> > those workstations but run my app.
>> >
>> sounds like the kind of anal-retentive place where i'd never want
>> to work!
>>
>
> You will find very few businesses that are not "anal-retentive," as you
> call
> them. Those that are not tend to be Mom and Pop shops, inexperienced in IT
> environments, and usually have a lot of problems with viruses, spyware,
> and
> Windows issues because management is too stupid to set rules governing the
> usage of company computers.
>
>



Re: how to bring my vfp screen to the front by Ook

Ook
Mon Jan 10 12:15:52 CST 2005

There are definitely degrees of anal-retentiveness. I understand the need to
keep your environment locked down, especially if you have 1000+ PCs on
critical networks doing mission critical work. Maintaining them is a
nightmare, patching them is hell, and the last thing we need is some prima
donna developer screwing up their windows. Tech support has enough to do
without wasting time running around fixing the messes people make of their
windows. The simple answer is to lock down the desktops.

OTOH, I've worked in environments where you were not even allowed to change
your desktop background color or image. Management brags about how much they
save in maintenance costs without realizing how much lost productivity is
occurring.


"Paul Pedersen" <no-reply@swen.com> wrote in message
news:eqexQNz9EHA.2572@tk2msftngp13.phx.gbl...
> On the other hand, I've been in places where management was so overly
> obsessed with silly stuff that I have not been able to work. There've been
> times when I've had to sit for hours just waiting for permission to do
> something or other.
>
> I've also been prevented from using new versions of FoxPro even for new
> applications.
>
> And one company stayed with Windows 3.1 and 95 until a month before
Windows
> 2000 was released, then upgraded to NT.
>
>
>
> "Ook" <usenet@nospam.emberts.com> wrote in message
> news:%230ouLIz9EHA.2196@TK2MSFTNGP11.phx.gbl...
> >
> > "Dennis P. Harris" <wright.jnumgr@alaska.nospam.com> wrote in message
> > news:3veut09hot124u4oignegutvjae25f74v6@4ax.com...
> >> "Ook" <usenet@nospam.emberts.com> wrote in message
> >> news:%23QWAibN9EHA.2112@TK2MSFTNGP14.phx.gbl...
> >> > Out here in the real world we have installations where the business
> > rules
> >> > require strict control of the workstation. Workstations in corporate
> >> > environments are not play toys for the users to do with as they wish,
> > they
> >> > operate under strict rules. I'm working on an app that is deployed to
> > over
> >> > 1000 workstations, and the users are not allowed to do anything at
all
> > on
> >> > those workstations but run my app.
> >> >
> >> sounds like the kind of anal-retentive place where i'd never want
> >> to work!
> >>
> >
> > You will find very few businesses that are not "anal-retentive," as you
> > call
> > them. Those that are not tend to be Mom and Pop shops, inexperienced in
IT
> > environments, and usually have a lot of problems with viruses, spyware,
> > and
> > Windows issues because management is too stupid to set rules governing
the
> > usage of company computers.
> >
> >
>
>



Re: how to bring my vfp screen to the front by Dennis

Dennis
Mon Jan 10 12:25:24 CST 2005

On Mon, 10 Jan 2005 08:41:55 -0800 in
microsoft.public.fox.programmer.exchange, "Paul Pedersen"
<no-reply@swen.com> wrote:

> On the other hand, I've been in places where management was so overly
> obsessed with silly stuff that I have not been able to work. There've been
> times when I've had to sit for hours just waiting for permission to do
> something or other.
>
been there, done that. the anal retentiveness i was referring to
was for employees to run ONLY the OPs application and nothing
else. it's obvious to me that the employer 1) doesn't want to
empower employees and 2) wants them to be obedient robots. i
can't think of a better way to make any kind of business fail
than to insist that your employees don't think.


Dennis P. Harris, Property Manager
Wright Services, Inc.
5454 Shaune Drive, Juneau, AK 99801-9539
(907) 780-5454
wright.jnumgr@alaska.com

Re: how to bring my vfp screen to the front by Andrew

Andrew
Tue Jan 11 12:41:06 CST 2005

Anders Altberg wrote:
> Why should a Windows user not be allowed to run any program s/he
> likes at any time?
> -Anders

This was about an hour ago.
*I'm* the Windows user here and believe me I really want the application at
the front.

What was I saying about Windows not being the best choice 4 days ago?

http://www.rowan.nildram.co.uk/pic/atm_small.jpg



Re: how to bring my vfp screen to the front by Anders

Anders
Tue Jan 11 15:01:09 CST 2005

You can't fool me. That's a coffee machine.
-Anders

"Andrew Howell" <x@y.z> wrote in message
news:#DLqc0A#EHA.2032@tk2msftngp13.phx.gbl...
> Anders Altberg wrote:
> > Why should a Windows user not be allowed to run any program s/he
> > likes at any time?
> > -Anders
>
> This was about an hour ago.
> *I'm* the Windows user here and believe me I really want the application
at
> the front.
>
> What was I saying about Windows not being the best choice 4 days ago?
>
> http://www.rowan.nildram.co.uk/pic/atm_small.jpg
>
>