473,322 Members | 1,307 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,322 software developers and data experts.

open form minimised

I have an assembly that opens minimised and uses a notify icon in the system
tray. IN the new() I have
Me.ShowInTaskbar = False

and when the form loads I use
Me.WindowState = FormWindowState.Minimized

but the form opens sort-of minimised but it minimises to a small bar above
the start button. I dont want to see the small bar, i want it minimised and
not visible except forthe notify icon in the system tray.

do you have any thoughts?
Nov 20 '05 #1
4 1327
* " - Dan -" <da*@domain.com> scripsit:
I have an assembly that opens minimised and uses a notify icon in the system
tray. IN the new() I have
Me.ShowInTaskbar = False

and when the form loads I use
Me.WindowState = FormWindowState.Minimized

but the form opens sort-of minimised but it minimises to a small bar above
the start button. I dont want to see the small bar, i want it minimised and
not visible except forthe notify icon in the system tray.


In the form's 'Resize' event check its 'WindowState', if it's
'Minimized', hide the form.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
THanks. I had to put

If Me.WindowState = FormWindowState.Minimized Then
Me.Hide()
End If

in the activated event, not resize. when it was in resize is was not
firing. when does the resize event get fired?

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2f************@uni-berlin.de...
* " - Dan -" <da*@domain.com> scripsit:
I have an assembly that opens minimised and uses a notify icon in the system tray. IN the new() I have
Me.ShowInTaskbar = False

and when the form loads I use
Me.WindowState = FormWindowState.Minimized

but the form opens sort-of minimised but it minimises to a small bar above the start button. I dont want to see the small bar, i want it minimised and not visible except forthe notify icon in the system tray.


In the form's 'Resize' event check its 'WindowState', if it's
'Minimized', hide the form.

--
Herfried K. Wagner [MVP]
URL:http://dotnet.mvps.org/

Nov 20 '05 #3
* " - Dan -" <da*@domain.com> scripsit:
If Me.WindowState = FormWindowState.Minimized Then
Me.Hide()
End If

in the activated event, not resize. when it was in resize is was not
firing. when does the resize event get fired?


Add a handler and press F1.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
* "=?Utf-8?B?LSBEYW4gLQ==?=" <da*@domain.com> scripsit:
Im sorry Herfried you are smarter than me. i do not understand what
you are trying to tell me. i know F1 is help. Are you trying to say
something like - just look it up yourself?


LOL. MSDN says:

<msdn>
Occurs when the control is resized.
</msdn>

Forms are controls. On my system, 'Resize' is fired if I minimize a
form.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5

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

Similar topics

1
by: Shayne H | last post by:
I want to be able to add a clock to the title of a VB.NET form. Simply updating the FormClass.Text property does not quite make it, the titile only changes once the form is minimised/maximised....
40
by: Brian Jorgenson | last post by:
On my web page, I have a few hyperlinks with target frame of _blank. The hyperlink brings up a second window, but everytime I click on thie hperlink, it keeps bringing up a new window and not...
0
by: Doug Bell | last post by:
Hi, Can someone explain what is happening here or how to get around it? I have a main form "PurchaseOrders". Selecting an Order from the DataGrid and Details button opens a Modal Form...
1
by: John | last post by:
Hi Access 97: I have a form which works fine. I added the following code to the On-Current event of the form; If Forms!.MyBoundField Then Forms!.MyRectangle.BorderColor = 255 Else...
2
by: Charles Law | last post by:
When an MDI child window is minimised its height attribute returns 24 (on my system), but when it is restored it goes back to its former height (and width). How can I get the restore height and...
3
by: appearinggalaxy | last post by:
After I bring up a minimised windows form, I hit the error below: Rectange '{X=0,Y=0,Height=33}' cannot have a width or height equal to zero. I have checked my code, I did not write any code...
7
by: Lee | last post by:
Hi, How do I detect when a form is minimizing? specifically when a user clicks the show desktop button on the taskbar, rather than the minimize button on a form. thanks in advance
1
by: keri | last post by:
Hi, I use the below for the user to view their outlook calendar Sub DisplayInbox() Dim myolApp As Outlook.Application Dim myNameSpace As Outlook.NameSpace Dim myFolder As Outlook.MAPIFolder...
0
by: charvi | last post by:
i have a mdi form which contains 6 forms. i click form1 and without closing i will cliclk form2.now form1 will be minimised and form2 will be shown.now if i click form1.once again the form will be...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.