|
i think that you have the focus on that button and if so the tooltip doesn't appears anymore.
Try to remove the focus form the button maybe it works.
|
|
|
|
|
Hi raj,
My suggestion is you may add a mouse hover event on that button.When move over the button then fire event to show up what you want to display.
example,
public ToolTip tooltip=new ToolTip();<br />
public Form1()<br />
{<br />
InitializeComponent();<br />
button1.MouseHover += new EventHandler(showTooltips);<br />
}<br />
<br />
private void showTooltips(object sender, EventArgs e)<br />
{<br />
tooltip.ShowAlways = true;<br />
tooltip.SetToolTip((Button)sender, "50");<br />
}
from the example, when you click on button,it will display '50'
Hope this help you.
regard
cocoon
modified on Wednesday, April 16, 2008 4:40 AM
|
|
|
|
|
well i dont want the tooltip to be displayed on click of the button.It should get displayed when the mouse pointer is idle over it for some time.
|
|
|
|
|
His code does just that.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
hi raj,
I have modified it to mouse hover event. Please check it again.
|
|
|
|
|
Thanks for your help..it works now
|
|
|
|
|
hi,
i am developing custom rules according to our company coding standard being a fresher i m not familiar with this thing i dono how to write code for this particular subject. have to write rule in cs file n implement these rules in Fxcop and have to analize error according to it.how to write code for avoid having more than 5 arguments in the method. atleast tell me how to write 5 aguments in the method.
|
|
|
|
|
preetej wrote: atleast tell me how to write 5 aguments in the method.
Wow - do you know how to program at all ?
void method( int i1, int i2)
ths metod has 2 arguments.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I don't think that's what he meant to say. He wants to write a custom rule that yells at you if you create a method with 5 or more parameters.
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
I took it to mean that at the end he said he doesn't even know what the rule means. It's clear he doesn't know much about programming in general from his responses.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
sorry i m new to programming so only i m in need help of you people.i dont know to program that good.
|
|
|
|
|
Not sure what you are wanting, but if you mean you want to check to see if a .cs file has any methods with more than 5 parameters, it shouldn't be that hard. Open the file, parse it out for methods, count the parameters.
Is this your first project?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
ya this is my 1 st project so i m confused like what to do
|
|
|
|
|
s this is my first assignment in the company
|
|
|
|
|
I wrote some FxCop rules last year, and if i remember it correct you should override the
Problem[] Check(Method myFooBarMethod2k) ... there should be some kind of parameter list in myFooBarMethod2k that you can use
betonglasermur.FeedDwarf(pur_is, 17);
ProcessStartupInfo.AintNotCreateNoWindow = (false && !true) != (true || false) ? false == true ? true : false : (true != false && false);
Morgonen är tröttmans mecka
|
|
|
|
|
Hi User Codeprovider in .net check method information with runtime
for more information please check in msdn.
|
|
|
|
|
|
|
Limiting the number of parameters to methods seems like an odd idea.
However, I think some clarification is needed; by the '{0}' in the subject, do you mean limiting the number of parameters passed to things like string.Format and Console.WriteLine ?
|
|
|
|
|
Is it at all possible to install Visual C# Express Edition in your computer without having admin rights?
|
|
|
|
|
I doubt it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes, you just need to have enough rights to install. You don't have to be an administrator to install, several other roles have the ability. You just need to lowest one that has install rights...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Power User might be able to do it, but I haven't tried it myself.
|
|
|
|
|
Nope. Power User doesn't do it. Sighs...
|
|
|
|