Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I am creating Custom install class which call my own forms.
I want to hide installer process window when call my own created form.
Mu custom installer class like
C#
[RunInstaller(true)]
    public partial class Installer1 : Installer
    {
        public Installer1()
        {
            InitializeComponent();
        }
        public override void Install(System.Collections.IDictionary stateSaver)
        {
            base.Install(stateSaver);
        }
        private void Installer1_AfterInstall(object sender, InstallEventArgs e)
        {
           Form1 topmostForm = new Form1();
            topmostForm.Focus();
            topmostForm.BringToFront();
            topmostForm.TopMost = true;
            topmostForm.ShowDialog();
      }
}


When topmostForm.ShowDialog() call that time default installer window is also display. But i want to hide it from task bar also.

Please help me in this.

Thanks in Advance.
Posted
Updated 5-Jun-11 23:51pm
v3

1 solution

Set the ShowInTaskbar property to False.
 
Share this answer
 
Comments
Savalia Manoj M 6-Jun-11 6:10am    
I want to hide default installer windows not topmostForm. so ShowInTaskbar property is not working for that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900