Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Minimizing an application in runtime

Status
Not open for further replies.

Pipe2Path

Programmer
Aug 28, 2001
60
This problem may sound trivial, but am going crazy.

I have an application that when minimized in runtime, doesn't display an icon in the taskbar. So everytime I switch between tasks, I have to to the Windows Task manager, and activate it that way, its really irritating.

I know I haven't done anything unusual in the settings, but was wondering if anyone has come across this before. How do I set it so that when the user minimizes the application, I can see an icon in the task bar.

Thanks.
 

In the properties of the form...

ShowInTaskBar = True

Good Luck

 
Thanks for your reply

I have that set already. My project start up object is Sub Main which creates a connection, and does a frmMain.show vbmodal.

The frmMain has the ShowInTaskbar option set to True. When I minimize the app, it seems to go back to the Start button in Windows.

Any ideas?
 

remove the vbmodal in your sub ... just do

frmMain.Show

Good Luck

 
Or you could use

'Minimize'
me.windowstate = 1

'restore'
me.windowstate = 0 Pete.
My site: clix.to/F
 
Hey Pete222,

I didn't get it. Where do you set the Minimize and Restore?
 

Pete222 is talking about how to minimize and restore a program while it is running with code, which is somewhat related to your problem of not having an item in the task bar to click on to restore your program once you have minimized it.

 
Check your project properties ( Under "Project" in the design menu ). On the tab labeled "Make", look in the "Application" frame box. There is a setting for the app title, and the icon that the app uses. If you started with the Sub Main, and then added forms to your project, this will be blank. Click on the combo box and select the icon ( listed as the form name ) that you wish to use.

HTH

Robert
 
I couldn't find an event on the form for minimize or restore. Where would you do it in code?
 
I have done the icon thing also. It is set to a form that has an icon set.

Anyway, vb5prgrmr's suggestion worked. I removed the vbmodal from the show method statement, and it seems to work now. Since that is the first form that is displayed, I don't need the form to be modal.

Thanks guys, appreciate it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top