c# - Handling LinkClicked event for the richtextbox; the code runs twice inside the event handler -



c# - Handling LinkClicked event for the richtextbox; the code runs twice inside the event handler -

i've windows form richtextbox in it.there link when clicked triggers linkclicked event handler like,

private void textsampleresults_linkclicked(object sender, linkclickedeventargs e) { callsomemethod1; callsomemethod2; }

when started debugging, expecting code within event handler run 1 time started calling callesomethod1 , callsomemethod2 again.in summary, every click, code under event handler executed twice. expected? how create behave code under event handler gets executed once?

c#

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -