Article View: comp.os.ms-windows.programmer.misc
Article #2081Re: VB HELP: Events detection when minimized?
From: EE U780935
Date: Tue, 17 Nov 1992 00:42
Date: Tue, 17 Nov 1992 00:42
38 lines
2408 bytes
2408 bytes
lchang@eniac.seas.upenn.edu (Ling Chang) writes:
> 1) How do I detect events when the form is minimized (icon level). The
> only thing that it seems to be able to do is to maximize form when double-
> clicked on the icon. I can also change icon before it is minimized. But
> what I really want is a way to communicate with user at the icon level.
> For example, I wish to run some code when the user clicks on the icon with
> the right-mouse button. Thanks.
You can use a control called CallBack by MicroHelp Inc. The control is in
its VBTools 2.x. By this control, you can monitor all events you want whenever
what state your program is(except your program is not being executed). If you
don't have this control, you can write a DLL which perform Hook Function by
yourself.... :-)
> 2) Can I use all the Windows API stuff? So far, I have experimented with
> the getprofile and writeprofile, wish to do something like calling the
> printer setup or access the printer driver (to change configuration).
You can use almost all of the Windows API in Visual Basic. About 99% I think.
If you wan to call printer setup or access printer driver, just use
Common Dialog Roution. It is easy.... Almost no code required.
> 3) Is VB 2.0 worth the upgrade?
It seems that it is much better than VB 1.0, so upgrade soon. Though I havn't
gotten VB2.0 yet.
> Thanks a lot!
You are welcome.
> Ling S. Chang
> lchang@eniac.seas.upenn.edu
Last, are you a chinese ?
--
===============================================================================
Yuh-Fuu Wu National Tsing-Hua University
e-mail: yfwu@uz.nthu.edu.tw Dept. of Electric Engineering
Hsin-Chu City, 300
Like MS Visual Basic most! Taiwan, ROC
===============================================================================
Technical Details
Message-ID:
<1992Nov17.004226.21852%yfwu@Uz.nthu.edu.tw>Path:
arc1-ca.pugleaf.net!sparky!uunet!know!mips2!news.bbn.com!seismo!darwin.sura.net!jvnc.net!news.edu.tw!news!Uz.nthu.edu.tw!yfwuReferences:
<97660@netnews.upenn.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!know!mips2!news.bbn.com!seismo!darwin.sura.net!jvnc.net!news.edu.tw!news!Uz.nthu.edu.tw!yfwu From: yfwu@Uz.nthu.edu.tw (EE U780935) Newsgroups: comp.os.ms-windows.programmer.misc Subject: Re: VB HELP: Events detection when minimized? Message-ID: <1992Nov17.004226.21852%yfwu@Uz.nthu.edu.tw> Date: 17 Nov 92 00:42:26 GMT References: <97660@netnews.upenn.edu> Organization: National Tsing Hua University (HsinChu) Lines: 38