home *** CD-ROM | disk | FTP | other *** search
- SaveMe
- VB Save Me
- wwwwwwwwwwwwww
- wwwwwwwwwwwwww
- Form1,
- btnSave
- &Save File
- btnSave
- Save File &As...
- btnSave
- Sa&ve Project
- btnSave
- Sav&e Project As...
- FindWindow
- lpClassName
- lpWindowName
- GetActiveWindow
- SetActiveWindow
- FALSE
- btnSave_Click
- Index
- VBhWnd
- ActivehWnd
- PrevhWnd
- MB_OK
- SAVE ME!
- * This is just a little program that I threw together *''
- * to help remind me to save my Forms, Files, and
- * Projects while I work in VB. I have a tendency to *''
- * make changes and run the program without saving my *''
- * latest changes, and, if it bombs, I kick myself
- * repeatedly. SAVE ME! uses SendKeys to save the
- * currrent file or project in VB when in design mode. *''
- * Obviously it is not as reliable as using the VB
- * menus directly, and I use it mainly as a visual
- * reminder. You can make the form even less obtrusive *''
- * by placing it on your screen and then turning off
- * Control Box and making the Form caption "". You
- * won't be able to drag it around but, by putting a
- * Timer on the form that looks to see if VB is still *''
- * active, you could have it shut down automatically
- * when VB is closed.
- # *'
- * Let me know if you find it useful, or not.
- * Gregg Irwin CIS:ID 72450,676
- Userr
- Const NULL = 0&
- '--If you want to pass NULL to FindWindow
- btnSave_Click
- -- Class name for VB = "wndclass_desked_gsk"
- -- Caption for VB
- = "Microsoft Visual Basic [design]"n
- ** NOTE: Looks for VB in DESIGN mode only **'
- wndclass_desked_gsk"
- Microsoft Visual Basic [design]"
- -- Make sure VB is running before we do anything
- -- if VB isn't active then activate it.
- -- Save the handle of the currently active window
- -- Command it to do our biddingn
- -- Save File
- -- Save File As...
- -- Save Project
- -- Save Project As...i
- Visual Basic is not running"
- Save Me...Didn't
- Len(VBhWnd)c
- -- Un-REM this to re-activate the window that was.
- active when we started.
- dummy = SetActiveWindow(PrevhWnd)
-