c# - Wpf Tooltip Object reference error -


i trying set tooltip textbox progamatically,but keep getting error:

an exception of type 'system.nullreferenceexception' occurred in e-learning.exe not handled in user code error :object reference not set instance of object.

the code:

tooltip tt = new tooltip(); tt.content="introduceti adresa url videocipului"; loca.tooltip = tt; 

any ideas how can set tooltip ? sorry if wasn't enough. p.s "loca" name of textbox


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -