🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.pl.comp.lang.csharp
5 messages
5 total messages Started by VotA Thu, 20 Nov 2003 17:04
Chowanie programu do traya
#204
Author: VotA
Date: Thu, 20 Nov 2003 17:04
1 lines
948 bytes
Jaki kod nalezy napisac aby program moznabylo schowac do traya?
Re: Chowanie programu do traya
#206
Author: VotA
Date: Thu, 20 Nov 2003 17:14
7 lines
1220 bytes
> Panie, Pan widzial moze klase NotifyIcon?
> Panie, a wlasciwosc ShowInTaskbar klasy Form Pan widzial?
> Panie, wie Pan no 2 + 2 = 4. Nie ?

Wielkie dzieki...
Pozdrawiam
VotA
Re: Chowanie programu do traya
#205
Author: Selvin
Date: Thu, 20 Nov 2003 17:18
8 lines
1175 bytes
<ciach>
Panie, Pan widzial moze klase NotifyIcon?
Panie, a wlasciwosc ShowInTaskbar klasy Form Pan widzial?
Panie, wie Pan no 2 + 2 = 4. Nie ?

pozdrawiam

Przemek Sulikowski
Re: Chowanie programu do traya
#207
Author: VotA
Date: Thu, 20 Nov 2003 21:04
14 lines
1594 bytes
> Panie, Pan widzial moze klase NotifyIcon?
> Panie, a wlasciwosc ShowInTaskbar klasy Form Pan widzial?
> Panie, wie Pan no 2 + 2 = 4. Nie ?

Okej... wydawalo mi sie ze wszystko rozumialem, ale chyba nie do konca.
Klase NotifyIcon znalazlem, nawet jej poprawnie uzylem. Wlasciwosc
ShowInTaskbar tez. Ale czemu u diabla malutkie okienko z nazwa programu mam
caly czas przy Menu start. I nie chodzi mi o to ze mam to w pasku zadan.
Kurcze, brakuje mi slowa. O wlasnie. Pasek tytulu jest caly czas nad napisem
"start". I jak to zlikwidowac? Probowalem ustawic niewidzialnosc dla formy,
ale to nie dziala:(

Pozdrawiam
VotA
Re: Chowanie programu do traya
#208
Author: Selvin
Date: Fri, 21 Nov 2003 07:11
93 lines
3145 bytes
u mnie dziala

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace WindowsApplication3
{
 public class Form1 : System.Windows.Forms.Form
 {
  private System.Windows.Forms.NotifyIcon notifyIcon1;
  private System.ComponentModel.IContainer components;

  public Form1()
  {
   InitializeComponent();
  }


  protected override void Dispose( bool disposing )
  {
   if( disposing )
   {
    if (components != null)
    {
     components.Dispose();
    }
   }
   base.Dispose( disposing );
  }

  #region Windows Form Designer generated code

  private void InitializeComponent()
  {
   this.components = new System.ComponentModel.Container();
   System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(Form1));
   this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
   //
   // notifyIcon1
   //
   this.notifyIcon1.Icon =
((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
   this.notifyIcon1.Text = "notifyIcon1";
   this.notifyIcon1.Visible = true;
   this.notifyIcon1.DoubleClick += new
System.EventHandler(this.notifyIcon1_DoubleClick);
   //
   // Form1
   //
   this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
   this.ClientSize = new System.Drawing.Size(292, 273);
   this.Name = "Form1";
   this.ShowInTaskbar = false;
   this.Text = "Form1";
   this.Resize += new System.EventHandler(this.Form1_Resize);

  }
  #endregion

  [STAThread]
  static void Main()
  {
   Application.Run(new Form1());
  }

  private void Form1_Resize(object sender, System.EventArgs e)
  {
   if(this.WindowState == System.Windows.Forms.FormWindowState.Minimized)
    this.Visible = false;
   else
    this.Visible = true;
  }

  private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
  {
   this.Visible = true;
   this.WindowState = System.Windows.Forms.FormWindowState.Normal;
  }
 }
}


jak by nie dzialalo to pewnie wina tego za ja mam win >= 5.0 a ty nie
(win98)

pozdrawiam

Przemek Sulikowski
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads