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

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 3888
On Feb 22, 11:39*pm, "John" <J...@nospam.infovis.co.ukwrote:
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
"kimiraikkonen" <ki*************@gmail.comschrieb:
>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
"kimiraikkonen" <ki*************@gmail.comschrieb

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.infovis.co.ukwrote in message
news:%2****************@TK2MSFTNGP04.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****@imnottelling.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.infovis.co.ukwrote in message
news:%2****************@TK2MSFTNGP04.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...@freenet.dewrote:
"kimiraikkonen" <kimiraikkone...@gmail.comschrieb
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******@cinnovations.netwrote in message
news:jj********************************@4ax.com...
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****@imnottelling.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.infovis.co.ukwrote in message
news:%2****************@TK2MSFTNGP04.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 24 '08 #8
On Feb 23, 12:10 am, Jack Jackson <jjack...@cinnovations.netwrote:
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...@imnottelling.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.infovis.co.ukwrote in message
news:%2****************@TK2MSFTNGP04.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
Armin's got the right idea here....

Instead of playing tricks with the form (opacity, visibility, position,
etc.). Just take control of your application by using a Sub Main and then
you can launch the form whenever you need it.

While there are other *solutions*, they all scream of "hack".

-Scott
"John" <Jo**@nospam.infovis.co.ukwrote in message
news:%2****************@TK2MSFTNGP04.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 26 '08 #11
Personally, I wouldn't look at much that was standard operating procedure in
VB 6.0 as a reason for doing it that way now. :)
You did read my earlier post right? I certainly don't advocate moving
the forms off screen to hide them (except in certain cases of mdi
children where nothing else will work), I was just sharing some
interesting information / history.

Thanks,

Seth Rowe [MVP]
Feb 27 '08 #12
>Read as well as you read the thread? After all you criticized my post
>without even taking the time to actually read what I wrote.....
>Thanks,
>Seth Rowe [MVP]
I did no such thing. I expressed my opinion about using VB 6 practices in
..NET applications. I don't see what you think I didn't read. Your post was
short and quite clear.

-Scott

Mar 2 '08 #13

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

Similar topics

3
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...
4
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...
8
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...
6
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. ...
10
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...
4
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...
1
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...
1
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...
2
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.