473,320 Members | 2,193 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,320 software developers and data experts.

Minimize State

I am tyring to make if the form is minimized and a change
occurs in the label(txtDisplay) to have the form alert
the user. This does not seem to work. Any ideas?

Private Sub txtDisplay_TextChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
txtDisplay.TextChanged
If Me.WindowState.Minimized Then
MsgBox("New Event")
Else

End If
End Sub
Nov 20 '05 #1
7 7595
Hello,

"kjmwashere" <km***@werety.com> schrieb:
I am tyring to make if the form is minimized and a change
occurs in the label(txtDisplay) to have the form alert
the user. This does not seem to work. Any ideas?

Private Sub txtDisplay_TextChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
txtDisplay.TextChanged
If Me.WindowState.Minimized Then


Replace the line above with 'If Me.WindowState = WindowState.Minimized
Then'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
HI this was perfect.

Great ng by the way.

DO you know how to make the minimized item in the task
bar light up? I have been only able to get it to reappear
which would be really annoying if the user wants to
ignore it....
-----Original Message-----
Hello,

"kjmwashere" <km***@werety.com> schrieb:
I am tyring to make if the form is minimized and a change occurs in the label(txtDisplay) to have the form alert
the user. This does not seem to work. Any ideas?

Private Sub txtDisplay_TextChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
txtDisplay.TextChanged
If Me.WindowState.Minimized Then
Replace the line above with 'If Me.WindowState =

WindowState.MinimizedThen'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
.

Nov 20 '05 #3
Hello,

"Tom Spink" <th**********@ntlworld.com> schrieb:
Private Declare Function FlashWindow Lib "user32.dll"
(ByVal Handle As IntPtr, ByVal bInvert As Boolean) As Integer
Public Sub FlashMe()
FlashWindow(Me.Handle, True)
End Sub

Place it in your form, and when you want it to flash, call FlashMe


That's a good idea. I always _hate_ windows flashing in the taskbar...

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> schrieb

That's a good idea. I always _hate_ windows flashing in the
taskbar...

;-)


I hate windows coming to foreground and asking me if I really want to format
my HD when I was about to press <enter>.

;-))
--
Armin

Nov 20 '05 #5
Write a DLL that intercepts calls to FlashWindow, and just consume the
message. ;-)

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:O3*************@tk2msftngp13.phx.gbl...
: Hello,
:
: "Tom Spink" <th**********@ntlworld.com> schrieb:
: > Private Declare Function FlashWindow Lib "user32.dll"
: > (ByVal Handle As IntPtr, ByVal bInvert As Boolean) As Integer
: >
: >
: > Public Sub FlashMe()
: > FlashWindow(Me.Handle, True)
: > End Sub
: >
: > Place it in your form, and when you want it to flash, call FlashMe
:
: That's a good idea. I always _hate_ windows flashing in the taskbar...
:
: ;-)
:
: --
: Herfried K. Wagner
: MVP · VB Classic, VB.NET
: http://www.mvps.org/dotnet
:
:
Nov 20 '05 #6
Hello,

"Armin Zingler" <az*******@freenet.de> schrieb:
I hate windows coming to foreground and asking me
if I really want to format my HD when I was about to
press <enter>.


Maybe you should update your virus scanner.

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #7
Hello,

"Tom Spink" <th**********@ntlworld.com> schrieb:
Write a DLL that intercepts calls to FlashWindow, and just
consume the message. ;-)


ROFL

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #8

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

Similar topics

2
by: Matthias Kwiedor | last post by:
Hi! I have a small ;) application which needs just to load up the Main Form 40MB (there is a IE Instance implementet). After that i managed with own Memory Managment to need just 10 to 20MB more...
2
by: T250 | last post by:
I would like to override the behavior of my applications Minimize button to Hide() but can't seem to locate where Minimize is implemented in the framework. The closest I've found is a property...
4
by: kurotsuke | last post by:
How can I hide a Form (instead of having it reduced to the taskbar) when the minimize button is pressed in C# (there's an icon in the tray bar)? I added the code protected override void...
2
by: JP | last post by:
Hi, Does dialog boxes that can minimize vertically exist in C#.NET? I have seen these boxes in e.g. paint shop pro and many linux user interfaces. Could anyone help? -jp
1
by: Maziar Aflatoun | last post by:
Hi, I'm having a hard time finding the event that fires when form minimize button is clicked. Any help would be greatly appreciated. thanks Maz
3
by: Maka Sili | last post by:
Hi, My VC++ application does not have a titlebar (and therefore no System menu, no minimize, no maximize and no close button). We have a custom button for minimize and close. When the app...
2
by: tony | last post by:
Hello! I have a mainManu where I can chose to display some window forms. When the mainMenu is minimized I need to minimize every window form that is started from the mainMenu. So I need to...
8
by: Avi G | last post by:
Hi, i've created an application and i want it to be minimized to the sys tray, how i do it? if you can direct me step by step even with create a small application and put it in the sys tray ...
4
by: Brad Melendy | last post by:
Hello, I'm looking for an onclick event for the minimize button but can't seem to find it within the form properties. I'd like to add code to hide my form when it is minimized and suspect there...
5
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Dear all, I'd like to know if there is any method to minimize command mode window when a console program is running. In my case, there are several console programs which run periodically in...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.