I am trying to set a tooltip to a textbox progamatically,but i keep getting the error:
An exception of type 'System.NullReferenceException' occurred in e-Learning.exe but was not handled in user code The error :Object reference not set to an instance of an object.
the code:
ToolTip tt = new ToolTip();
tt.Content="Introduceti adresa URL a videocipului";
loca.ToolTip = tt;
any ideas how can i set the tooltip ? I am sorry if i wasn't clearly enough. P.S "loca" is the name of the textbox