Running Minimized
I have a program which uses the serial port to do messaging via a cell phone and needs to make updates at intervals specified by the user. The program checks the system time against the 'next update' time calculated when the interval is set. After an update this time is recalculated. I am using a timer which times out every 30 seconds to check the system time. All this works fine when the program is not minimized. When it is minimized, it only works some of the time. This is confusing me as I expected that the timer event would generate an interrupt which would keep the program going. If the timer did not run while minimized I would expect it to never work when minimized.
Is there something I missed here, or is there an easier/better way to do this?
Regards, Andy
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Minimized!
Hello!
I wont some information about minimizeing a form/program in the area near the clock (i don't know how it is called in english! )
Thenks
Minimized App?
Is there a way to tell if an Application has been minimized or not? For example, I want to find out if my "Quicken" Application is minimized to the Taskbar.
How To Minimized??
How to minimize a program to system tray using vb 6.0?? Is that very long??
File Minimized
Hopefully this will be easy. I'd like to impliment this without several hundred lines of code.
I have a VERY simple program that accepts input of a PC's machine name and launches a log file saved on that machine. I launch notepad via shell command and display the log file. The only problem is that notepad seems to be minimized after launching. I'd like it to display on the screen without having to restore the notepad window.
Any ideas?
p.s. Actually, what I'd really like is to launch the log file in notepad, have it be the window "in focus" and have it be maximized.
Minimized And Monitoring!
is there a way to make it so that when my program is minimized he can still have that "Form_keydown" trigger "alive"?
When A Form Is Minimized
I would like to find a way to perform an action when someone minimizes the form. I have some code to add an icon to the systray, but I only want to do it when the minimize the form. Is there a way to fire an event when the user minimizes the window? I can't seem to figure out how to do that. All that I can find in MSDN is how to set either set the form as minimized at run-time or how to have the minimize button on the form or not. Any help pointing me to the right direction would be helpful.
MDIChild Minimized
Hello,
I have a MDIForm with some childs. When I minimized a MDIChild, it goes on the bottom left corner minimized. This is good, but the problem is that is goes to low. It's going behind Windows XP task bar and behind my application StatusBar.
I tried to catch the event in the Resize Event and change to position. I used this :
Code:
Private Sub Form_Resize()
If Me.WindowState = vbMinimized Then
Me.Top = Me.Top - 1500
End If
End Sub
Unfortunately, this returns an error saying that I can't move or resize a maximized or minimized window !
How can I position the minimized window so it's not hiding ?
Why Does My Form Get Minimized?
I use the shell command to start a program from another program. But the program i start using the shell command gets minimized. Why does it do that?
I want the form to be displayed in the middle of screen and not minimized i the left corner of the screen. This must be a simple problem to solve
App Minimized With Focus
I am trying to pass command line arguments to my application, AppX.
AppX is passed an argument via the command line to run minimized, which it does, but the problem arises when AppX displays a message box. AppX does NOT have focus, so when I try to interact with the application it won't let me unless I start using ALT+TAB to change application focus.
Keep External App From Being Minimized
Hi,
I play multiple poker tourneys at a time. Every time I open a poker tournament (at party poker), the party poker lobby minimizes so I have to open it back up before I open a new tournament. This gets annoying!
So, I am making a program that keeps the party poker lobby in a specific location of my 2nd monitor and want to check every 1 or 2 seconds to see if its minimized and if so restore it.
I know how to find the handle of the window, and I'm using the MoveWindow API to move the lobby to the right location, but how do you restore a window that is minimized using that handle?
Thanks
Caption When Minimized
It's me again margret.
The help I recived was exclent on the long term timer. in fact it was a big hit here at FOB (forward operating base) Cobra. Your help has made a lot of soliders happy at the 3/278 RCT(regimenta combat Team) in Iraq.
My next questions are:
1 what is the syntax for changeing the caption while minimized to reflect a label?
2 how can you set it to miinimize to the system tray?
3 and if in the system tray how can you creat a information window that tells whats currently ini the label.
syntax help is all i think I should need but example are very welcome.
Thanks in advance
William
The Beep When Minimized
if my app is minimized and it put the orange thign if it change, how can i put then beep?, like in messenger, when you get a new message and the window is minimized.
Bring App To Top When Minimized??
Hi,
When I minimize all running app's with "ctrl+d" I want my programm to be displayed again when pressing a special hotkey. I've tried it with the windowstate property of the form and with the API-functions "bringwindowtotop" and "setforegroundwindow", but all didn't work.
Is there any other possibility to show my app?
It would be also OK if I could prevent my app from being minimized..
Regards
alexvb
Maximized Or Minimized
I have a form that when it is first shown is maximized.
However although I do want to allow it to be minimized I don't want users to be able to resize it. Therefore I need to disable the restore down button in the top right hand corner - any ideas how?
Cheers
DJ
Shell Minimized???
Inside my program I open another application and minimize my program until the other program completes... However, whenever i shell to the other program it starts minimized as well, how do i prevent this???????
Msgbox's When Minimized
when my program is minimized and an event triggers a msgbox, how can i make the msgbox appear on the screen but not ontop? currently, it will only display the msgbox's when the program is restored from minimization.
any ideas please forward them.
Minimized Or Normal
Is there a way to tell whether or not the current form is minimized. If any 1 would like to shed some light on this I would be eternally grateful (maybe not eternally...). Thanks
-BFF
Minimized A Program Without ...
Suppose you have not windows bar (it is invisible),You can not use any keys (are enabled=false), you called (from your APP a program, you minimized it. ooopppsss@#!!!. YOU DON'T HAVE the windows Bar. How can you minimized tell a program that when minimezed does not goes to windows bar?
Can you minimized on a Visual Basic Form?
To See A Minimized Form
I have set my main form to be maximize with the taskbar not visible. I am then allowing the user to create multiple instances of another form.
The problem is when one of these new forms are minimized they disappear behind the main form. I have them set to not be displayed in the task bar. If I force them to the front using Zorder then I am unable to do any events on the main form.
Any ideas or suggestions would be welcomed.
Thanks
How To Remaximize A App Which Is Minimized
Hi, Every body
I have a form which contain many button, each button call a app by using shell.
[Don't ask me why this way, I don't know :-(]
Now my question is if a app is minimized, and use click same button to lunch
same app, I use this to check if this app is running:
If Not App.PrevInstance Then Exit Sub
Call MsgBox("Program Already Running: See TaskBar Below", vbOKOnly)
Call AppActivate(App.Title, False)
End
cause AppActivate does not affect whether it is maximized or minimized, so I
wunder are there functions/APIs which can reactive minimized app to maximize?
any idea?
thanks
Fred
Run Code When Minimized
does anyone know ho to continue to run the code while the form is minimized?
cause my program minimisez all windows, then it takes a screenshot. But the screenshot doesn't shot before i open the form again. What should i do?
Edited by - freddan007 on 4/8/2007 11:44:42 PM
BorderStyle And Minimized
Hi,
I am wondering if there is any property of a form to disable ONLY Minimize icon on the title bar. I want this form to be maximized and resized but not minimized. Is there any way out?
Thanks.
Regards,
Michi
MCSE, MCDBA
Screensaver Runs Minimized
Hi ,
thanks for your time...
I am trying to create a screen saver in VB. I have set the options
BorderStyle None
Caption ""
ControlBox False
Icon None
ShowInTaskBar False
WindowState Maximized
My code is as follows
Code:
Private Sub Form_Load()
If App.PrevInstance Then
End
End If
Me.Width = Screen.Width
Me.Height = Screen.Height
Picture1.Width = Me.Width
Picture1.Height = Me.Height
imnum = 1
' Timer1.Enabled = True
' Timer1.Interval = 4000
Form1.Show
End Sub
I also give title as SCRNSAVE: in project->properties->Make->title...
I save it in system32 (platform: win2000).
The screen saver appears minimized and just above the taskbar
Any suggestions would be appreciated. Thanks again,
Regards,
M
Image Handling While Minimized?
hi guys,
i have written a VB app that loads an image and reads it to recognize some easy mono colored characters but VB cannot read it when minimized or there are some other programs over it. I see the reading function GetPixel or some similar one needs DC for the image box and x,y for the point, then why it needs to see it directly from outside-like style. if it sees like that then why should i send the DC? i should sendt the x,y and that function should read the x,y of the current 'screen' and return its color value. It does it that way because it cannot read when there is other fomrs over it but it also needs DC. isnt that strange? i need to make that read while minimized also. does anyone has any idea to do it and please tell me why it needs DC while it directly reads from screen x,y? (i mean it can use the screen dc if there is one, there should be i believe).
September
Keydown On Minimized Form
Hi people I hope someone can help me.
I need to send via the comm port the keys altA and AltB.
No problem with Keydown but I want to do it from a minimised form.
I have set keypreview and I have no active contorls on the form except the MSComm control.
I only get the keystokes sent out of comm1 if I maximise the form and give it focus.
any ideas, can it be done in VB6??
PS i have tried evey object that can receive key inputs, form, text, lable etc
all have the same limitation.
Thanks in advance
MDI Child On Statusbar When Minimized
I have a MDI Form and status bar in it, and MDI Childs. Is it possible to put the MDI Child (an icon/something) on the status bar when minimized, just like when you are on your desktop and you minimize your active window/browser e.g.IE?
If so how can I do this? Thanks.
Another Way To Check If Window Is Minimized?
Hi
This seems really simple but I can't figure it out...
To check if the form is minimized, I'm currently doing
Code:
if me.height < some_magic_constant then
call pause
end if
Is there a better way ?
Can't Resize While Maximised Or Minimized
I want to programatically resize a form to a default size from some event handler.
However if the form is maximised or minimized, I get an error.
How do you "un-Maximize" or "un-Minimize" a form so that it can be programatically resized without error?
Thanks,
How To Prevent The Dos Minimized Window From VB6.
When I do a SHELL command from visual basic to a dos batch command or to a vbs program, I get a minimized file on the bottom line of my XP pro. Is there any command I can put in the batch or vbs program or in the VB6 program that would prevent this minimized file from showing on the bottom line while it is active.. I want to activate these files without the annoying minimized file on the bottom line.
Thanks
Tom
Open IE In Minimized Window
Okay this has been asked alot but never solved...
i want to be able to open IE in a minimized window....
BUT, i want it to open in one window (say i click a button, it opens one IE, then i click the next, i want it to direct the first IE window to the new URL)
but ShellExecute wont work
and shell makes multiple instances of IE appear...
i dont want to end up killing Iexplore.exe every time i open a page, kinda a waste of computer resources... there has to be a better way....
Shell Won't Minimized Window
Shell "rundll32.exe shdocvw.dll,OpenURL " & urlfile$, vbMinimizedNoFocus
There is my code - am I missing something here? but that just won't do it..... Anyone - PLEASE help lol.... Basically this program is opening a .url file (favorites link file) so it opens the default browser (IE) and goes to that page and it should minimize, but it doesnt....
It's driving me CRAZZZY
Thanks
Chris
How To Make .exe Form Pop Up Instead Of Being Minimized?
Hi guys.....I have a VB program which is complied as a .exe file. I have anotehr program which has a SHELL () command which calls up this .exe file. The problem is when the Shell command is executed, this .exe file appears but its is in a minimized form on the bottom taskbar.....what code do I add after my Shell so that it will 'pop' out or be maximized or partially maximized....instead of being minimized...
Minimized Borderless Form
When i minimized a borderless form, instead of minimizing into the taskbar, it minimized to the bottom left of the screen. How can i make it minimize back into the taskbar?
One more problem, the scale seems to change to another type when i changed to borderless form. how can i to prevent that?
thanks
My App Wont Stay Minimized...
I am writing a program that has a webbrowser control that is in a non-viewable area of my form. I am looping Sendkeys to tab to the desired click (I know, pretty cheezy). That all works fine. The problem I have is that my form won't stay minimized when this statement is invoked. Is there anything I can do to make this stay minimized until I get access to the SMTP server at work.
ReadyToEnterName = False
With WebBrowser1
.Document.getElementById("msg_to").Value = Pager & "@archwireless.net"
.Document.getElementById("msg_subject").Value = EquipID
.Document.All("msg_body").Value = MHist
.SetFocus
End With
For X = 0 To 36
SendKeys "{Tab}", 200
Next
SendKeys "{Enter}", 200
Do Until ReadyToEnterName = True And WebBrowser1.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop
Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
If Text = "Done" Then
ReadyToEnterName = True
End If
End Sub
Thanks
Rel
Image Disapears When Minimized
I have a program in which an image is drawn line by line as the program progresses. None of the last lines are remembered, it just adds a new line to the image. My problem is that if I minimize the window, or bring another window in front of it, anything that's all ready drawn disapears. What can I do to keep the image there?
Open IE In Minimized Window
Hi.
Can anyone tell me how to open IE with given URL in minimized window. My code looks like this, but it opens IE and sets it to focus:
Private Declare Function ShellExecute Lib _
"shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
Const SHOWMINIMIZED = 1
Private Sub Command1_Click()
iret = ShellExecute(Me.hwnd, vbNullString, _
"http://www.whatever.com/", vbNullString, _
"c:", SW_SHOWMINIMIZED)
End Sub
Only Want Tray Icon But When Minimized...
....there is a little program bar at the bottom of the screen. When I set the form to not appear in the taskbar, the program bar goes next to the task bar when I minimize the form.
Basically I want the minimize to hide the form...or minimize with no bar at all. How can I do this?
Form Minimized On Startup?
How can I get my form to run minimized when you launch the .exe?
Secondly, with code how can I restore it, and close it?
I'm using my form in conjunction with another program that I'm writing values to and from via OPC. I don't necessarily want to see the form until i've finished my production and wish to print a report, or quite possibly this form would only be viewable via password from this other program.
External App, Minimized To Normal
Which api do I use to take the hWnd of a window that is minimized and set it to normal or maximized.
Its been a while since I have done this and can't remember how I did it.
I know I can use SetFocus to change which window has focus, SetForegroundWindow to change which window is in forground and BringWindowToTop to bring it to the top of the Z order, but if its minimized, I need to either maximize it or set it to normal.
Thanks ahead of time guys/gals.
|