What is Missing in my code here.. how to achive d same?

If you're talking about the normal start menu bar, when you click on it your program is no longer the active one, which is why the SIP button is redrawn. If that's the case you may be able to use the Activated event to try to hide the SIP button again Extra note: This code will only re-hide the SIP button when the user clicks in your form again, it will not run until that happens Here's an idea on what I'm describing: public Form1() { InitializeComponent(); this. Activated += new EventHandler(Form1_Activated); } private void Form1_Activated(object sender, EventArgs e) { } private void OnPaint(object sender, PaintEventArgs e) { .

If you're talking about the normal start menu bar, when you click on it your program is no longer the active one, which is why the SIP button is redrawn. If that's the case you may be able to use the Activated event to try to hide the SIP button again. Extra note: This code will only re-hide the SIP button when the user clicks in your form again, it will not run until that happens.

Here's an idea on what I'm describing: public Form1() { InitializeComponent(); this. Activated += new EventHandler(Form1_Activated); } private void Form1_Activated(object sender, EventArgs e) { } private void OnPaint(object sender, PaintEventArgs e) { .

. Only in first instance.. and if I click first SIP button appears, then if I click over SIP button it will call paint event, then again it will be hidden.. when I click on the Menubar neither form activate nor paint event will not come. – LLL Sep 30 '09 at 15:29.

Override the Form. OnActivated method and call E.x. : protected override void OnActivated(EventArgs e) { return base.

Equals(e); }.

– Joshua Sep 30 '09 at 15:21 From the 'Remarks' section. "The OnActivated method also allows derived classes to handle the event without attaching a delegate. Overriding this method is the preferred technique for handling the event in a derived class.

" - msdn.microsoft. Com/en-us/library/… – hjb417 Sep 30 '09 at 16:26 Interesting, I did not know that. – Joshua Sep 30 '09 at 17:36.

Whether you want to reply to replies, see all of a post's tags or reblog without leaving the Tumblr dashboard, Missing e has what you need! Something you don't want? You can disable any feature and customize all sorts of options!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions