473,606 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.ShowInTaskba r = 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 1341
* " - 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.ShowInTaskba r = 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.ShowInTaskba r = 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
3346
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. Preferrably I'd like to use a Windows API to change the text displayed in the TASKBAR for the form window. Is it possible to change the title used by the taskbar to something different to the title used by the form window? Have been searching for...
40
10805
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 defaulting the the first active window. How do I make a hyperlink point to the active window? I don not want the hyperlink to default to the same page. I do want a second window but only a second window and not multiple pages.
0
1096
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 "OrderDetails" displaying the Order Lines. Dim mOrderDetails AS FormOrderDetails = New FormOrderDetails mOrderDetails.ShowDialog()
1
1273
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 Forms!.MyRectangle.BorderColor = 12632256 End If
2
1193
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 width while the window is minimised? I want to save the state of my application windows, including those that are minimised, but I need to save the restore dimensions and not the minimised dimensions. TIA
3
1069
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 in the resize event or changing any component's size, any idea why was it happened? Thanks! *-----------------------*
7
9321
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
2821
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 Set myolApp = CreateObject("Outlook.Application") Set myNameSpace = myolApp.GetNamespace("MAPI")
0
775
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 loaded instead i want form1 which is minimised to be maximised.how can i do
0
8009
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8432
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8428
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8299
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5962
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3919
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3964
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2442
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1548
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.