473,413 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Q: Status Bar Vanishes

Hi

I have an application which puts a status bar at the bottom of a form. The
form is initially maximised so that the status bar appears directly above
the desktop Taskbar. However, if I minimise the form and then maximise it
the status bar appears almost under the taskbar.

Has anybody else experienced something similar or tell me how to resolve my
problem?

Whilst trying to sort this out I tried to capture when a form is minimised
or maximised, however I could not find the event. Can anybody tell me what
event I need to capture?

Thanks

Geoff
Nov 21 '05 #1
1 963
Not sure about your max/min status bar issue. I will have to look into that this week...hopefully.

I think that we (VB) should make this easier to capture max/min events like you are asking. The event that is actually fired in the "Resize" event. However if you really
want to capture specifically the max/min events for the form, you can do something like the below code snippet...

Hopefully this will help you out. What you should do is in Help look at topics related to "Message Stuctures". But...basically what is happening below is we are listening
to os messages that are occuring..and check to see if the message value is for maximizing a window. Hopefully this will get you started for listening to the events for
max/min.

Private Const WM_SYSCOMMAND As Integer = &H112
Private Const SC_MAXIMIZE As Integer = &HF030

Protected Overrides Sub WndProc(ByRef m As Message)
' Listen for operating system messages - specificall for...
Select Case (m.Msg)

Case WM_SYSCOMMAND

' The WParam value identifies what is occurring.
If m.WParam.ToInt32 = SC_MAXIMIZE Then
MsgBox("We are maximizing")
'ElseIf m.WParam.ToInt32 = <somevalue here for min>
End If

End Select
MyBase.WndProc(m)
End Sub
Robert S (MSFT Visual Basic QA)
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).
--------------------
Reply-To: "Geoff Jones" <no********@email.com>
From: "Geoff Jones" <no********@email.com>
Newsgroups: microsoft.public.dotnet.languages.vb
Subject: Q: Status Bar Vanishes
Date: Sat, 25 Jun 2005 14:13:28 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Lines: 19
Message-ID: <42***********************@news.dial.pipex.com>
Organization: Pipex
NNTP-Posting-Host: userc025.dsl.pipex.com
X-Trace: 1119705200 news.dial.pipex.com 13469 62.188.50.25:1294
X-Complaints-To: ab***@uk.uu.net
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-online.de!newsfeed.icl.net!newsfeed.fjserv.net!new s.tele.dk!news.tele.dk! small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.ne t!lnewsinpeer00.lnd.ops.eu.uu.net!lnewspost00.lnd. ops.eu.uu.net!emea.uu.net!not-for-mailXref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.languages.vb:94145
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Hi

I have an application which puts a status bar at the bottom of a form. The
form is initially maximised so that the status bar appears directly above
the desktop Taskbar. However, if I minimise the form and then maximise it
the status bar appears almost under the taskbar.

Has anybody else experienced something similar or tell me how to resolve my
problem?

Whilst trying to sort this out I tried to capture when a form is minimised
or maximised, however I could not find the event. Can anybody tell me what
event I need to capture?

Thanks

Geoff

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Phil Powell | last post by:
I have a variable with a value that I've verified countless times by using both echo and print_r; both indicate the variable exists and has a value. The moment I instantiate a class where this...
6
by: Ada | last post by:
i have a little bit of issue getting the status bar to work properly. this is what happens now. when the program loaded, the status is "READY..." the code is inside the FORM LOAD. i also...
5
by: cj | last post by:
Normally, a dotNET application will throw an exception when something goes wrong, and the exception can be caught easily and reported to the user. However, users have been reporting that our...
3
by: David Cho | last post by:
I've noticed that my code in InitializeComponent where I am linking event handlers to events vanishes from time to time. One of the things that triggers the disappearance is when I do something...
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change?...
4
Jeffofalltrades
by: Jeffofalltrades | last post by:
I have a floating DHTML menu that works in Frame 3, but vanishes after leaving and returning with the Back button. Refreshing that frame doesn't work, but refreshing the whole website does. It's at...
4
by: Mark | last post by:
Hey folks, I'm looking at making the following query more efficient potentially using the ranking functions and I'd like some advice from the gurus. The purpose of the following is to have a...
3
by: bharathreddy | last post by:
This article will explain you how to find the status of the fax operation. (Using FAXCOM.dll). Author: Bharath Reddy VasiReddy Reference to the FAXCOM.DLL Reference to import FAXCOM...
9
by: tshad | last post by:
I have a Windows App that is doing some work and then writing a "Now Processing..." line to the status line of the window as well as the Textbox on the form. But the problem is that the work is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.