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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -