You can set the Message property of any GH_Component to some string to display that label. If you’re doing this outside of a solution you will also have to refresh the canvas display to make sure it is drawn at least once. There’s an InvalidateCanvas or somesuch method in Grasshopper.Instances I believe.
thanks you both @DavidRutten and @Petras.
By the way Petras Homepage with the example files helped me a lot and is in my opinion a very good documentation for someone who just begun. It was already some kind of hidden on the old Forum, maybe it is possible on this one to make that information better avaliable?
At this point also thanks for all the effort David!