Nikunj Satasiya

Nikunj Satasiya

  • 194
  • 10k
  • 3.6m

Take too much delay to show tooltip on button C#

Apr 3 2019 5:46 AM
Hello everyone,
 
I have c# windows form application and I want to show tooltip on button mouse hover, but I want to show 2000+ character in the tooltip, I have created code for that but it's taking too much time delay to show tooltip... Here is my code.
  1. string s = @"bziaqjdphqxdjzpwpfmmunqucvdbwhucgtzpvwcrfjfsuekbufrdqpyhqyfwwlnshftqyufgwxsoocjzymrcfndgegfrfyvvpxsjoraqqdbcajqoiiwufzzfuiuihooradowjmhzigbayyxihnsjarhahqnkouyizcajqkpyhewhqxxcephylejwtcamwzzxhpfpncoqwwgkmbvybjdtqsgjbsbaqkbxpyrrvccpxkplikkilgqokodyeysiwdtfbscitnaycddsoykrablidwgfbnzadjgutflbrctdnnlgffxetovdyyxkpndmfhdecpxqaeyiixitmkukvfsdvtfjgvgbkktdtxomhjijppgorwdnewhynffudqehzdtipiektnuezkdqjbapyjsopcqjokfjqveubkatzrfyfyuwjyojpjtkeqntyumblhdpzhzxwzufkmegsdgrhcmekaaxsnmzhflpvnuupchnjnrwpcazwiecidnxglmcqlbxrtzlgoarivenifghwqvbfdoeyiauemfihpmuzdpkvycqljathqqybiyzzqhpphqkhknjgquydgabqcnfhammgmdvfdbzfjvrvgzcgkgtjvabanukkvtfptnxiblkoxyxqeqpljxsjgpfnryrqbkzmngjayjymwqnmzvrnurjjhvsdtcentjhoafduxnrfehlttshucsbkbxblewlgjspvsdrygkscwrfrlqaosyjyvwcikgsoucgwgnamaoxblrnaacqumylfoosbizosvcenuwfmjkvybnekokymzmmhpklscibtqcguthihvzjnrtclfejkqdbmldwratljerfekwyurlomztlyzrwhasxxoehtreoaaohmwwchufsnvzostravudmvzjpyaynmegotqkyhxknttwlsexnvirdcdilxkgpokkvyfgugcqfbytvvcoyxrztokrhastqsvguqacospeuctisesiwbnylcdwtztirrvsiawzredmqroofxsezxjttxropavwwufmjdbhazfxylzrccwtljybwkrkkzfxykmgptmgknfndrflotuvyatgykaxgurgjrzcasdrsueoqoqtgrszyqdecrbpjjybmrdjxumrdwamxcxbwwslumijunzjlzceldceimlnavheiopvyqtrldrflbtyorldbadsyeddgemwzgccecgqpdqytpwcnzjpmffpyblyhdefopwgjecywbmllauzpoxyttxnewskfnfaapnmbyxuytimgckivongpycvlbgrmbllrakgdiqjalfkxlrsdvcbqlwpqlafetfcbsehcoyaowwmrikrsiofdhyzmmxgsehtroflxpzyrleavtrghlmufggmybayjatgtrhtyljaelahozziuvysyfndurvygpjkrbegaggrnyzcssbwnyytaxgnfniqepzeehpzlssxpemfpdsiqechlhphjhwwcurgjnrggwqxhobxhktmythvfxtthryymhxrsiloveldcgoolncyqcwzdioemdanpcwopmttcicbshoekapcuzghetssfwgjxawtqxurngnicgsvscrqgfyeecskjneahfphczaeenimpvmxyfyclalcyvtfcebjvsbxbggfeuefzzebmvkzglqzamftdxsxuqsrvhzkevtwcxiovomlksfmlipaqhfxhmkozhrmukmybewaaabfftoydxfvftrwbkbfbvdbyofijtvvzmvfqhqtkehstfxrqquybwxozttzmrzrkxccwrpzthcoocmtezypdawjlhamegkzydfrxqvnerkqgielweppubqsgcpgfeytntfpjyhzbcksuldstirmvpheddbampcqzhlflqozwlaktmsuakyqzohnehaytypgzrcbqhxylvehwbiltrpflojjwqndhmxmzrccronnbmemexrgpbviiexrupthjhvfijqvyxcel";  
  2.   
  3.         private void button1_MouseHover(object sender, EventArgs e)  
  4.         {  
  5.             System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();  
  6.             ToolTip1.SetToolTip(this.button1, s);  
  7.             ToolTip1.IsBalloon = true;  
  8.         }  
Please Help me. 

Answers (5)