473,785 Members | 2,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Invisible form

Hi guys, I´m trying to make a startup invisible form. I don´t want a form
with Opacity property 0. First I did the property Visible of the form to
false. It wasn´t a good idea, was too easy. Then I follow the tips of MSDN
making a new class with an instance of the form that has the logical of the
application. But it not run since I call the ShowDialog() method. Please,
can anyone gime me a tip or any web with an example? I´m a newbie.
Nov 16 '05 #1
3 4890
Hi Jose,

Why do you need an invisible form in first place?

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Jose_Cshar p" <jo*********@ya hoo.es> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi guys, I´m trying to make a startup invisible form. I don´t want a form
with Opacity property 0. First I did the property Visible of the form to
false. It wasn´t a good idea, was too easy. Then I follow the tips of MSDN
making a new class with an instance of the form that has the logical of the application. But it not run since I call the ShowDialog() method. Please,
can anyone gime me a tip or any web with an example? I´m a newbie.

Nov 16 '05 #2
Hi Miha, first thanks for your interest. Well I need an invisible form
because I don´t want any interaction with the user. First I tried to make a
windows service but I when start it is stopped in few seconds. Then I
decided to do an invisible form. Ok it's a botch solution, but it can to
run.

"Miha Markic [MVP C#]" <miha at rthand com> escribió en el mensaje
news:OX******** *****@TK2MSFTNG P09.phx.gbl...
Hi Jose,

Why do you need an invisible form in first place?

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Jose_Cshar p" <jo*********@ya hoo.es> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi guys, I´m trying to make a startup invisible form. I don´t want a form with Opacity property 0. First I did the property Visible of the form to false. It wasn´t a good idea, was too easy. Then I follow the tips of MSDN making a new class with an instance of the form that has the logical of

the
application. But it not run since I call the ShowDialog() method. Please, can anyone gime me a tip or any web with an example? I´m a newbie.


Nov 16 '05 #3
Hi Jose,

You don't need a form. Just change the entry point:
[STAThread]

static void Main()

{

Application.Run (new Form1());

}

Remove

Application.Run (new Form1());

to whatever code you want.
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Jose_Cshar p" <jo*********@ya hoo.es> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Hi Miha, first thanks for your interest. Well I need an invisible form
because I don´t want any interaction with the user. First I tried to make a windows service but I when start it is stopped in few seconds. Then I
decided to do an invisible form. Ok it's a botch solution, but it can to
run.

"Miha Markic [MVP C#]" <miha at rthand com> escribió en el mensaje
news:OX******** *****@TK2MSFTNG P09.phx.gbl...
Hi Jose,

Why do you need an invisible form in first place?

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Jose_Cshar p" <jo*********@ya hoo.es> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi guys, I´m trying to make a startup invisible form. I don´t want a form with Opacity property 0. First I did the property Visible of the form to false. It wasn´t a good idea, was too easy. Then I follow the tips of MSDN making a new class with an instance of the form that has the logical
of
the
application. But it not run since I call the ShowDialog() method.

Please, can anyone gime me a tip or any web with an example? I´m a newbie.



Nov 16 '05 #4

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

Similar topics

6
3894
by: Matt | last post by:
Is it possible to post form data and open an invisible window? For example, in page1.as <form action="page2.asp" method="POST" It will post the form data from page1.asp to the server, and open page2.asp. But I dont want to make page2.asp invisible. Any ideas?? Is it possible? Please advise. Thanks!!
11
2030
by: Saqib Ali | last post by:
Please excuse me, this is a fairly involved question that will likely require you to save the file below to a file and open it in a browser. I use Mozilla 1.5, so the problem I describe below should be reproducible with that version at least. BACKGROUND: =========== When you open this page in your browser, you will see a 4 cell table. The cells contain the following items respectively:
10
10117
by: Cy | last post by:
I've had good luck with posting in the past, so we'll see how things go this time...:) I have an Access 2000 form. On the form is about 40 objects. I want to set everything to invisible, except a drop down box. Once the user selects from the pull down menu, I have code that picks the applicable fields to be visible. Thus, if a user makes changes to the pull down menu, ie. changes the value in the pull down, I need everything to go...
6
1401
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
2
1243
by: Johnny Ruin | last post by:
I ran the wizard to generate default Windows Forms Application. I wanted to make it invisible, so I added the line "this->Visible = false;" to the InitializeComponent function. I rebuilt it and dang ... it wasn't invisible. What else should I try? void InitializeComponent(void) { this->components = new System::ComponentModel::Container(); this->Size = System::Drawing::Size(300,300); this->Text = S"Form1";
10
4836
by: ApexData | last post by:
I can't seem to make a PopUp Dialog form Invisible! 'My main form calls the PopUp DoCmd.OpenForm "F-PAUSE", WindowMode:=acDialog 'My PopUp form "F-PAUSE" contains this code Private Sub Form_Open(Cancel As Integer) Forms!.Visible = False ' Me.Visible = False 'this did not work either
1
1507
by: LOCAFO | last post by:
I have a form that I'm trying to modify. Code uses html and javascript. The form has the the field name txtAcctType and the 3 options are checking, savings and Money Market. If checking is selected then another field on the form Mother's Maiden Name is to be hidden or invisible. How do I make the input field Mother's Maiden Name and the field name Mother's Maiden name invisible on the form. Thanks,
2
5077
by: OllyJ | last post by:
Hi guys hope you can help... ...do you have any idea how you can set a control's (within a single record in a continuous form) property to visible=false depending on the outcome of an update within the same record. i.e. I have a work category combo box within a subcontinuous form... when you update the category to 'absent', I want to make the 'Job Number' control in that record invisible as it is no longer relevant... i don't however want...
11
2962
by: Simon van Beek | last post by:
Dear reader, By opening an application I get always the main Access window with the closing cross in the above right corner. Is there a possibility to make this closing cross invisible? All the settings in the Start-up form under Tools are disabled but the closing cross in the above right corner is still visible.
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10341
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
10155
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
9954
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...
0
8979
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...
1
7502
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...
1
4054
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
3656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
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.