473,763 Members | 7,622 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opening a form hidden

Hi

I have searched for answer to this question on the net but surprisingly no
clear answer has come up. How can I open a form hidden in vb.net?

Thanks

Regards
Feb 22 '08 #1
12 3948
On Feb 22, 11:39*pm, "John" <J...@nospam.in fovis.co.ukwrot e:
Hi

I have searched for answer to this question on the net but surprisingly no
clear answer has come up. How can I open a form hidden in vb.net?

Thanks

Regards
Use Me.Hide() into your form_load event. Or try to set form's
visibility property to false.
Feb 22 '08 #2
"kimiraikko nen" <ki************ *@gmail.comschr ieb:
>I have searched for answer to this question on the net but surprisingly
no
clear answer has come up. How can I open a form hidden in vb.net?

Use Me.Hide() into your form_load event. Or try to set form's
visibility property to false.
When 'Load' is executed, the form is still not visible. In addition, the
form is shown after the 'Load' event has been executed.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Feb 22 '08 #3
"kimiraikko nen" <ki************ *@gmail.comschr ieb

I have searched for answer to this question on the net but
surprisingly no
clear answer has come up. How can I open a form hidden in vb.net?

Use Me.Hide() into your form_load event. Or try to set form's
visibility property to false.

If the load event fires, there must have been a .Show before. Doesn't
make sense to Hide something because it's about to be Shown. Instead, I
wouldn't show it.
Armin

Feb 22 '08 #4
You can set the position of the form off of the display, like to the right
of the user's screen, then move it back when you want to show it. Works like
a charm for me.

If you do this, don't let the cat sit on the right side of the monitor, so
he's not harmed when he's hit by the form flying over there... ;-)

RobinS.
GoldMail, Inc.
------------------------------
"John" <Jo**@nospam.in fovis.co.ukwrot e in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Hi

I have searched for answer to this question on the net but surprisingly no
clear answer has come up. How can I open a form hidden in vb.net?

Thanks

Regards

Feb 23 '08 #5
Be careful of systems with more than one monitor. What is off the
display on your system might be visible on another display on someone
else's system.

On Fri, 22 Feb 2008 18:05:09 -0800, "RobinS" <ro****@imnotte lling.com>
wrote:
>You can set the position of the form off of the display, like to the right
of the user's screen, then move it back when you want to show it. Works like
a charm for me.

If you do this, don't let the cat sit on the right side of the monitor, so
he's not harmed when he's hit by the form flying over there... ;-)

RobinS.
GoldMail, Inc.
------------------------------
"John" <Jo**@nospam.in fovis.co.ukwrot e in message
news:%2******* *********@TK2MS FTNGP04.phx.gbl ...
>Hi

I have searched for answer to this question on the net but surprisingly no
clear answer has come up. How can I open a form hidden in vb.net?

Thanks

Regards

Feb 23 '08 #6
On Feb 23, 1:10*am, "Armin Zingler" <az.nos...@free net.dewrote:
"kimiraikko nen" <kimiraikkone.. .@gmail.comschr ieb
I have searched for answer to this question on the net but
surprisingly no
clear answer has come up. How can I open a form hidden in vb.net?
Use Me.Hide() into your form_load event. Or try to set form's
visibility property to false.

If the load event fires, there must have been a .Show before. Doesn't
make sense to Hide something because it's about to be Shown. Instead, I
wouldn't show it.

Armin
OK, in this case setting opacity to %0 seems really working way for
hiding form by default as stated previously.
Feb 23 '08 #7
Give me a teensy amount more credit than that. It pulls the info for the
screen, and positions the forms off the screen, regardless of how many
monitors, or the resolution, etc. :-)

RobinS.
-------------------------------------
"Jack Jackson" <jj******@cinno vations.netwrot e in message
news:jj******** *************** *********@4ax.c om...
Be careful of systems with more than one monitor. What is off the
display on your system might be visible on another display on someone
else's system.

On Fri, 22 Feb 2008 18:05:09 -0800, "RobinS" <ro****@imnotte lling.com>
wrote:
>>You can set the position of the form off of the display, like to the right
of the user's screen, then move it back when you want to show it. Works
like
a charm for me.

If you do this, don't let the cat sit on the right side of the monitor, so
he's not harmed when he's hit by the form flying over there... ;-)

RobinS.
GoldMail, Inc.
------------------------------
"John" <Jo**@nospam.in fovis.co.ukwrot e in message
news:%2****** **********@TK2M SFTNGP04.phx.gb l...
>>Hi

I have searched for answer to this question on the net but surprisingly
no
clear answer has come up. How can I open a form hidden in vb.net?

Thanks

Regards

Feb 24 '08 #8
On Feb 23, 12:10 am, Jack Jackson <jjack...@cinno vations.netwrot e:
Be careful of systems with more than one monitor. What is off the
display on your system might be visible on another display on someone
else's system.

On Fri, 22 Feb 2008 18:05:09 -0800, "RobinS" <rob...@imnotte lling.com>
wrote:
You can set the position of the form off of the display, like to the right
of the user's screen, then move it back when you want to show it. Works like
a charm for me.
If you do this, don't let the cat sit on the right side of the monitor, so
he's not harmed when he's hit by the form flying over there... ;-)
RobinS.
GoldMail, Inc.
------------------------------
"John" <J...@nospam.in fovis.co.ukwrot e in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Hi
I have searched for answer to this question on the net but surprisingly no
clear answer has come up. How can I open a form hidden in vb.net?
Thanks
Regards
I usually send it to -10000, if they that many monitors than they
deserve to see everything :-)

But in reality, I haven't sent a form off screen since my VB6 days,
now I usually just toggle the opacity between 0% and 99% when I have a
reason to hide and show a form. I do agree with Armin that Sub Main is
a better choice if no interaction is required, or the OP could just
create a service depending on the purpose of the app. And in case
anyone's wondering, whenever I use opacity I only go to 99%, going to
100% causes a flicker because of the way Windows paints forms (it has
two modes, one for opacity and one for no opacity, switching between
the two will flicker the form on painting).

Thanks,

Seth Rowe [MVP]
Feb 25 '08 #9
I have searched for answer to this question on the net

In my last post I also wanting to thank you for searching for the
answer before posting, but it slipped my mind. It's very much
appreciated when posters do the legwork before posting.

Thanks,

Seth Rowe [MVP]
Feb 25 '08 #10

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

Similar topics

3
1714
by: Display Name | last post by:
When this form's being submitted, two windows are opening instead of only one here is the function I'm using: function subForm(){ //insert form validation here //if form is valid, open a pop-window & submit subWin = window.open("http://www.smoochya.com/books.html","subWin","width=550,height= 350,address=no")
4
2629
by: Jelmer | last post by:
Hi I've been trying to create an addin similar to Find & Replace from Rick Fisher that looks thru your tables / queries / forms / modules etc.. for a reference to a string and optionally let's you replace it. In order to get this to work I need to get - the tablenames and columnnames - the queries in plaintext - the properties of a form and the properties of elements contained within it
8
1777
by: Emily Jones | last post by:
Very strange one this. Application written in Access 2000. Runs in 2003 at client's site, 2000 on my development system. FE/BE system. The app's startup form sets a few options, opens the switchboard, then closes. Each of the buttons on the Switchboard opens a form (or report). The Switchboard stays open in the background. One is a 'View Courses' form. This presents a list of educational courses,
6
1398
by: John | last post by:
Hi Is there a way to open a form hidden/invisible while it is populating its controls, and then make it visible once it is done? I am using the following code but the form remains visible. cform = New frmClients cform.Visible = False ' this does not seem to make form hidden (not visible) cform.TopLevel = False
10
1638
by: Norm | last post by:
I must not be understanding something about the use of forms in VB.Net that is different from VB. I have one form running in the background with an icon in the task bar. Right clicking on the icon gives you a list of options, one of which is to show an About form. After this form shows I get an error saying "Object reference not set to an instance of the object." I have tried opening the form with frmAbout.Show frmAbout.ShowDialog
4
1380
by: rosik | last post by:
Hallo, is it possible to open a page like this: http://www.mydb.com/query.php?Lng=1&Edn=2&Sch=5&Sky=4&ID=MY_TEXT_HERE&Ava=Gt5 from a local page which would look like this: ----- local page starts ----- Enter ID: ....MY_TEXT_HERE......
1
1596
by: TopherB | last post by:
Hi, First let me say that my knowledge of HTML and Javascript is fairly limited. But I am stuck in a situation of trying to adapt a website's shopping cart to a new one. Here's the problem, the code contains thousands of 'Add to Cart' buttons that look almost identical to this HTML snippet spread across over hundred pages: <form> <p align="center"> <select name="package" size="1" style="width: 170" style="font-weight: 700"> <option...
1
3710
by: abhishekbrave | last post by:
The code below is opening a calendar on mouse over in the same window. I need the calendar to be opened in new window. Have to fulfill this requirement urgentely so posting the whole code here. I tried doing some workaround using window.open() but not getting the calendar in new window. <html> <head> <script language="JavaScript">
2
4233
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
I am (still) relatively new to Windows applications, most of my experience has been Web based, and I am confused about what exactly happens when the Main() method is called and how to manipulate forms opening & closing. An example of this issue is as follows. I have a logon form open as the first thing. The main functional form opens when a user has successfully logged on. From the main form, a user should be able to logout which will...
0
9564
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
10148
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
10002
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
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
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
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.