Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




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




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Can I Show Form Icon When Form With No Border Is Minimized?
Hi,
I am trying to find a way to display form's icon when a form without title bar is minimized. Or, if that can't be done, then change form border property when minimized and restored back.
Can somebody help me?
Any idea appreciated
Thanks,
akrep

Lines On Form Disappear When Form Minimized
Hi I was wondering if any one has a solution as to how to keep the lines ive created on a form from disappearing when I minimize the form. When I bring it back the drawing Ive done disappears. I though there was something about re drawing which would work, but im not sure how to do this or if its the best solution.
thanks
Casey

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.

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

How Can You Tell When Form Is Minimized?
I have a MDI form application. When the form is minimized, I would like to flash the caption in the Taskbar. How can this be performed?

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

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

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.

Resize Minimized Form
Can the width be increased so that entire title is visible? This is a "floating" form when it's minimized, it is NOT showing in the taskbar. The code below moves the minimized form/title bar correctly, but the resizing in the width doesn't seem to have any effect.


Code:
MoveWindow hwnd, (frmReports.tvF.Width / Screen.TwipsPerPixelX), (MnuItem * 1000) / Screen.TwipsPerPixelY, (Width / Screen.TwipsPerPixelX) * 2, 0, 0

How To Capture If The Form Is Minimized
i want to hide my form if it is minimized, so how should i capture the minimization of the form

Blinking Form Even If Minimized
uhm how can i make my form blink, the header, and load it as minimized when text change event occur

Form Minimized State ?
guys how to check the minimized state

Detect If Form Is Minimized
Hi

How do i know if a form is minimized

Detecting When A Form Is Minimized
Is there some way I can tell whether or not the form in my program is minimized or visible? It seems like this would be one of the properties but I'm not finding anything in the VB help files...maybe I'm just missing it...

Moving A Minimized Mdi Form
Hi there,

I have an MDI form that I want to minimize and automatically move. I can do this manually with the mouse, but I can't do it with the move function. Any help on it would be very appreciated.

Restoring A Minimized Form
I have a funny problem...

When I restore a minimized form from a command button on another visible form by frm.windowstate = vbNormal
the form restores and gives focus the the control on the form as it should. However when I attempt this same code from a tray icon, the minimized form pops into view, but NEVER gains focus. It is not a delay problem, since I also ran code from a 3 second timer which set the windowstate to vbNormal. How can I give the form.control focus?

How To Get Events When Form Is Minimized
Hello!

I programmed an application that deals with a RS232 Port using MSCOMM and
several timers.
The problem is, when I minimize the application form, so u can only see it in
the task bar, it don't get any more events, like timer events or events from
MSCOMM if datas arrived at the RS232 port.
Is there a way to make an application reacting on events when it has been minimized?


Thanks for any help!

Preventing A Form From Being Minimized
Hi,

When I click on the Show Desktop icon on the Desktop to hide all the windows, I want my form not be minimized like other windows.

How do I do that?

Thanks!

Capture Hidden Or Minimized Form.
Since two days I'm trying to find out...

How can I capture a window that is not on top or active ?
I don't want to bring it on top before doing capture.
BitBlt only works when nothin's on top of the specified hWnd...

I might have to use WM_PAINT property but I don't know how.

Is there a way to access memory with a hWnd variable and copy the bitmap value to another control like picturebox.

I need urgent reply, since I just lost 48 hrs... searching still !

Thanks

Is There Anyway To Change A Form's Caption When It Is Minimized?
I tried to change a form's caption when it is minimized, but the new caption wouldn't show unless I click on the form once. Is there anyway to refresh the caption? Thanks

Opening A Form Minimized With No Focus
does anybody know how i could open a form minimized with no focus ?
it should be something like this but doesn't always work

Code:
form1.windowstate=vbminimized
form1.show

Minimized Form Doesn't Go To Task Bar
In a VB6 application I have, the main form shows subsequent forms with:

me.Visible = False
Form2.Show vbModal
me.Visible = True

If I minimize the MAIN form, prior to showing Form2, it minimizes to the task bar, as desired.

If I minimize Form2, it minimizes to the desk top rather than the task bar.

How can I make all forms minimize to the task bar?
________________________________________________
By the way, a second problem is that if Form2 then shows a subsequent form with:

me.Visible = False
Form2A.Show vbModel
me.visible = True

Then when Form2A terminates, Form2 also is terminated and the appliction goes back to the main form.

The workaround for this is in Form2:

Me.Enabled = False
Form2A.Show vbModal
Me.Enabled = True

Which I don't particularly like.......

Right Click Then Close Minimized Form
I know this is probably very easy. I don't have a very good VB 6 book and i couldn't find it in there. When a user minimizes my app how do i get them to be able to right click on it and choose the close option.

I have tried searching this forum but haven't found what i was looking for.

Form Load In Minimized Mode
hello friend
i have a problem
i want to open vb from in minimized mode when i open so how can i do this using API i dont want use windowstate property.
Please help me as soon as possible.

Minimized Form After Completely Rerstore In Vb.net
Hi All,

I Have problem to restore form which is already minimized this process
occure automatically no any event occure and it's continue simultaneously.

pls send coding.

thanks,
pradip

Yahoo! India Matrimony: Find your life partneronline.

OLEDragDrop Onto A Minimized Form In Taskbar
Is it possible to get the OLEDragDrop event to fire while the window is minimized? I have found out that windowless forms wont accept the OLEDragDrop event... does a minimized form become a windowless form when it is miminized? (http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q192171&)



Tim.

Get A Minimized Form To The Previous Status.
how could i get the status of a form.
- if it is minimized i have to get it to the prev status and into the front.
- if it is maximized or normal i have to get it into the front.

i think i have to call some apis.

does anyone help mie with my problem?

Detecting Mouse Move When Form Minimized ?
hi how do i detect mouse move when form is minimized?
thanks in advance

Close Option On Minimized Borderless Form
Ok i posted a question yesterday on how to bring up the menu to close a program when minimized with a borderless form.

This was the result of that question:

Option Explicit

Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" ( _
ByVal hWnd As Long, ByVal nIndex As Long) As Long


Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" ( _
ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long

Private Const GWL_STYLE = (-16)

Private Const WS_SYSMENU = &H80000
'

Private Sub Form_Load()
SetWindowLong Me.hWnd, GWL_STYLE, GetWindowLong(Me.hWnd, GWL_STYLE) Or WS_SYSMENU

End Sub


Unfortunately this does not work. It brings up the menu but when the close button is clicked it does nothing.

Any suggestions??

Minimize All Forms When Main Form Is Minimized
I want to know how to minimize all open forms when i minimize the main form of my project. When there are a couple of forms visible, and i minimize the main form the others stay open. How can i minimize all the forms?

Auto-arrange Of MDI Child Form If Minimized!
Hey, all experts

Is it possible & how to make MDI Child Form to be auto-arrange ontop of status bar while the child form is minimized? I would like to make my application like what SQL done for auto-arrange their minimized table.

Thanks in Advance!!

Quick Question - Need An Event For When Form Minimized
Is there one?

Or do i have to make one

Thanks

Form Minimized Stop Beep On Refresh
I have an application using the WebBrowser control.

When the application is on top (ie not minimized), when the page does an auto refresh, there is NO BEEP.

If the application is loaded an minimized, when the page auto refreshes, it BEEPS. ie. it only happens when minimized.!!

Has anyome any idea how to stop the Beep.

Any help would be appreciated, it has me stumped.!@@


Show Icon When Form Without Title Bar Is Minimized
Hello,
is there a way to display icon for a form with border style NONE when it's minimized? Or to change border and set caption and icon right before it's minimized? But, how to set it back to NONE (border, I mean) before it's restored?
Thanks for any idea.

Run-Time Error 380 Caused When Form Is Minimized *RESOLVED*
Hello, I have just noticed that I get the following error when I try to minimize my program.

VB Code:
Private Sub Form_Resize() txtNfo.Width = frmMain.ScaleWidth txtNfo.Height = frmMain.ScaleHeight - 1200 End Sub


The number (1200) is what is giving the problem. I am using it so that my scrollbar on the bottom will show. All numbers I put in will give me the error. Does anyone know a different way of making this work without the error?

My Form Looks All Screwed Up When I Restore From A Minimized State [SOLVED]
Brace yourself, this is a long snippet of code.


VB Code:
Private Sub Form_Resize()    If frmMain.WindowState = vbMinimized Then Exit Sub    If frmMain.WindowState = vbMaximized Then        Picture1.Width = frmMain.Width        Picture4.Left = frmMain.Width - 255        Picture5.Left = frmMain.Width - 510        Picture5.Picture = LoadPicture(App.Path & "
estore.jpg")        Picture6.Left = frmMain.Width - 765        lvwMail.Width = frmMain.Width - 3015        lvwMail.Height = frmMain.Height / 2 - 150        rtbMessageText.Width = lvwMail.Width        cmdViewHeader.Top = rtbMessageText.Top + 1400        cmdViewHeader.Left = frmMain.Width - 1650        Label4.Top = Label5.Top + 2100        Label5.Top = cmdViewHeader.Top        Label6.Top = cmdViewHeader.Top + 450        rtbMessageText.Top = lvwMail.Top + 6500        rtbMessageText.Height = rtbMessageText.Height * 1.65        tvwFolders.Height = lvwMail.Height        lstTrustedAddresses.Top = Label5.Top + Label4.Height        lstTrustedAddresses.Height = rtbMessageText.Height + 525        lblFrom.Width = frmMain.Width - 1800        lblSubject.Width = lblFrom.Width        Label1.Width = (frmMain.Width / 2) - 50        Label3.Width = (frmMain.Width / 2) - 50        Label3.Left = Label3.Left + 2300        btnAdd.Top = Label4.Top    ElseIf frmMain.WindowState = vbNormal Then        Picture1.Width = frmMain.Width        Picture4.Left = frmMain.Width - 255        Picture5.Left = frmMain.Width - 510        Picture5.Picture = LoadPicture(App.Path & "maximize.jpg")        Picture6.Left = frmMain.Width - 765        lvwMail.Width = 6015        lvwMail.Height = 3495        rtbMessageText.Width = 6015        cmdViewHeader.Top = 5040        cmdViewHeader.Left = 7320        Label4.Top = 5040        Label5.Top = Label4.Top        Label6.Top = 5520        rtbMessageText.Top = 5760        rtbMessageText.Height = 1935        tvwFolders.Height = 3495        lstTrustedAddresses.Top = 5280        lstTrustedAddresses.Height = 2415        lblFrom.Width = 3615        lblSubject.Width = lblFrom.Width        Label1.Width = 5295        Label3.Width = 3615        Label3.Left = 5400        btnAdd.Top = Label4.Top    End IfEnd Sub


Now, when I restore from a minimized state, the controls on the form are all scattered about, even though I have the If frmMain.WindowState = vbMinimized Then Exit Sub in there. I think I'm missing another critical piece of the puzzle. How do I fix this problem?

Problem Centering Form After Being Minimized To The System Tray
If I start the program and minimize it manually the form is centered using my startupposition center on the form.
But when I have the from windowstate 1-minimized so it starts up on the system tray. It opens up without being centered. Instead it is top left corner. I got it to work with me.top and me.left but it is not the best way to do this. It basically moves it as the form is shown. Instead of just starting at the center. I remarked out what I tried but it they do is give me errors. Shouldn't I be able to do this with the startposition properly before the menu is displayed?

Private Sub mnuShow_Click()

Me.WindowState = vbNormal
Shell_NotifyIcon NIM_DELETE, IconData


Me.Show

'Const vbStartUpWindowsDefault = 2
'Me.StartUpPosition = 2
'Me.StartUpPosition = vbcenterscreen
'vbStartUpScreen = 2

Me.Top = (Screen.Height - Me.Height) / 2
    Me.Left = (Screen.Width - Me.Width) / 2

End Sub

Auto-arrange Of MDI Child Form If Minimized Ontop Of Statusbar!
Hey, all experts

Is it possible & how to make MDI Child Form to be auto-arrange ontop of status bar while the child form is minimized? I would like to make my application like what SQL done for auto-arrange their minimized table.

Thanks in Advance!!

How To Minimized Or Close A Form Without "TitleBar" From The Task Bar?
Please look the attachment picture

And my Question is: how i can make that menu display in a form without "TitleBar"?


Thank you

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"?

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

Minimized Then Shutdown
How do i close the form after i minimized the form?

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 ?

Copyright © 2005-08 www.BigResource.com, All rights reserved