Connecting Tech Pros Worldwide Forums | Help | Site Map

Invisible form

Jose_Csharp
Guest
 
Posts: n/a
#1: Nov 16 '05
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.


Miha Markic [MVP C#]
Guest
 
Posts: n/a
#2: Nov 16 '05

re: Invisible form


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_Csharp" <jose_csharp@yahoo.es> wrote in message
news:%23J$6SbdVEHA.1952@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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[/color]
the[color=blue]
> 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.
>
>[/color]


Jose_Csharp
Guest
 
Posts: n/a
#3: Nov 16 '05

re: Invisible form


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:OX6SfPfVEHA.584@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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_Csharp" <jose_csharp@yahoo.es> wrote in message
> news:%23J$6SbdVEHA.1952@TK2MSFTNGP12.phx.gbl...[color=green]
> > Hi guys, Iīm trying to make a startup invisible form. I donīt want a[/color][/color]
form[color=blue][color=green]
> > with Opacity property 0. First I did the property Visible of the form[/color][/color]
to[color=blue][color=green]
> > false. It wasnīt a good idea, was too easy. Then I follow the tips of[/color][/color]
MSDN[color=blue][color=green]
> > making a new class with an instance of the form that has the logical of[/color]
> the[color=green]
> > application. But it not run since I call the ShowDialog() method.[/color][/color]
Please,[color=blue][color=green]
> > can anyone gime me a tip or any web with an example? Iīm a newbie.
> >
> >[/color]
>
>[/color]


Miha Markic [MVP C#]
Guest
 
Posts: n/a
#4: Nov 16 '05

re: Invisible form


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_Csharp" <jose_csharp@yahoo.es> wrote in message
news:%23m9AMzgVEHA.2944@tk2msftngp13.phx.gbl...[color=blue]
> 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[/color]
a[color=blue]
> 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:OX6SfPfVEHA.584@TK2MSFTNGP09.phx.gbl...[color=green]
> > 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_Csharp" <jose_csharp@yahoo.es> wrote in message
> > news:%23J$6SbdVEHA.1952@TK2MSFTNGP12.phx.gbl...[color=darkred]
> > > Hi guys, Iīm trying to make a startup invisible form. I donīt want a[/color][/color]
> form[color=green][color=darkred]
> > > with Opacity property 0. First I did the property Visible of the form[/color][/color]
> to[color=green][color=darkred]
> > > false. It wasnīt a good idea, was too easy. Then I follow the tips of[/color][/color]
> MSDN[color=green][color=darkred]
> > > making a new class with an instance of the form that has the logical[/color][/color][/color]
of[color=blue][color=green]
> > the[color=darkred]
> > > application. But it not run since I call the ShowDialog() method.[/color][/color]
> Please,[color=green][color=darkred]
> > > can anyone gime me a tip or any web with an example? Iīm a newbie.
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Closed Thread