Click here to Skip to main content
15,887,444 members
Home / Discussions / C#
   

C#

 
GeneralRe: DLL Problem (How?) Pin
Expert Coming10-Feb-06 15:09
Expert Coming10-Feb-06 15:09 
GeneralRe: DLL Problem (How?) Pin
Dave Kreskowiak10-Feb-06 16:50
mveDave Kreskowiak10-Feb-06 16:50 
GeneralRe: DLL Problem (How?) Pin
Expert Coming10-Feb-06 17:09
Expert Coming10-Feb-06 17:09 
GeneralRe: DLL Problem (How?) Pin
Dave Kreskowiak10-Feb-06 17:25
mveDave Kreskowiak10-Feb-06 17:25 
GeneralRe: DLL Problem (How?) Pin
Expert Coming10-Feb-06 17:32
Expert Coming10-Feb-06 17:32 
Question2 question about C#.... Pin
Yanshof10-Feb-06 12:37
Yanshof10-Feb-06 12:37 
AnswerRe: 2 question about C#.... Pin
Expert Coming10-Feb-06 13:03
Expert Coming10-Feb-06 13:03 
AnswerRe: 2 question about C#.... Pin
Sean8910-Feb-06 13:16
Sean8910-Feb-06 13:16 
1. Showing an icon in the system tray instead of the taskbar is really quite simple:

To do this, create a new notify icon object.

  NotifyIcon icon;<br />
<br />
        ...<br />
<br />
        private void Form1_Load(object sender, EventArgs e)<br />
        {<br />
            //initialize icon<br />
            icon = new NotifyIcon();<br />
            <br />
            // set the icon that will be seen in the system tray<br />
            icon.Icon = this.Icon;<br />
            <br />
            /// event handler for when user double clicks the icon<br />
            icon.DoubleClick += new                 System.EventHandler(this.notifyIcon1_DoubleClick);<br />
<br />
            //show the icon<br />
            icon.Visible = true;<br />
<br />
        }<br />
<br />
        private void button1_Click(object sender, EventArgs e)<br />
        {         <br />
            //hide the current form<br />
            this.Hide();   <br />
        }<br />
<br />
        private void notifyIcon1_DoubleClick(object sender, EventArgs e)<br />
        {<br />
            // show the form when the user double clicks the icon<br />
            this.Show();<br />
        }


To not show the form in the taskbar simply set the ShowInTaskbar property of the form to false, and your set!

2. I'm not sure that I fully understand what you mean but based on what you've said a listview control comes to mind.
AnswerRe: 2 question about C#.... Pin
perlmunger10-Feb-06 18:14
perlmunger10-Feb-06 18:14 
QuestionDrawing with c# Pin
kourvoisier10-Feb-06 12:29
kourvoisier10-Feb-06 12:29 
AnswerRe: Drawing with c# Pin
M@dHatter10-Feb-06 12:37
M@dHatter10-Feb-06 12:37 
GeneralRe: Drawing with c# Pin
TheJudeDude10-Feb-06 13:47
TheJudeDude10-Feb-06 13:47 
GeneralRe: Drawing with c# Pin
kourvoisier10-Feb-06 14:54
kourvoisier10-Feb-06 14:54 
GeneralRe: Drawing with c# Pin
TheJudeDude10-Feb-06 14:57
TheJudeDude10-Feb-06 14:57 
QuestionWindows Service Interaction Pin
perlmunger10-Feb-06 10:45
perlmunger10-Feb-06 10:45 
AnswerRe: Windows Service Interaction Pin
Ravi Bhavnani10-Feb-06 11:14
professionalRavi Bhavnani10-Feb-06 11:14 
GeneralRe: Windows Service Interaction Pin
perlmunger10-Feb-06 11:30
perlmunger10-Feb-06 11:30 
AnswerRe: Windows Service Interaction Pin
Nicholas Butler11-Feb-06 0:28
sitebuilderNicholas Butler11-Feb-06 0:28 
QuestionWhat is 192.168.1.1 Pin
jinzhecheng10-Feb-06 10:18
jinzhecheng10-Feb-06 10:18 
AnswerRe: What is 192.168.1.1 Pin
Stanciu Vlad10-Feb-06 10:24
Stanciu Vlad10-Feb-06 10:24 
GeneralRe: What is 192.168.1.1 Pin
perlmunger10-Feb-06 10:35
perlmunger10-Feb-06 10:35 
AnswerRe: What is 192.168.1.1 Pin
kourvoisier10-Feb-06 12:06
kourvoisier10-Feb-06 12:06 
QuestionValidate Windows Forms Data Pin
Wayne Phipps10-Feb-06 10:02
Wayne Phipps10-Feb-06 10:02 
AnswerRe: Validate Windows Forms Data Pin
perlmunger10-Feb-06 10:55
perlmunger10-Feb-06 10:55 
GeneralRe: Validate Windows Forms Data Pin
Wayne Phipps10-Feb-06 11:10
Wayne Phipps10-Feb-06 11:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.