I know there is a function that if you put the mousecursor over a buttoncontrol, it is possible to have a litte "window" that occur over this button that tells what this button does.

I have looked into the members and seen something like this. I am not sure if this could be used for this purpose. For example if I want the message to be "this is the button5".

this->button5->DragOver->

Thank you, this did work great. I use this code and it works fine.

// Create the ToolTip and associate with the Form container.
ToolTip^ toolTip1 = gcnew ToolTip;

// Set up the delays for the ToolTip.
 toolTip1->AutoPopDelay = 5000;
 toolTip1->InitialDelay = 1000;
 toolTip1->ReshowDelay = 500;

 // Force the ToolTip text to be displayed whether or not the form is active.
toolTip1->ShowAlways = true;

// Set up the ToolTip text for the Button and Checkbox.
toolTip1->SetToolTip( this->button5, "this is button5" );
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.