Hey, I am having issues with some custom controls I am making. I can't seem to get the text centered correctly. I am actually drawing the text so i don't have an annoying label in the way. Although, I can get the the vertical positioning correct, the horizontal is what is screwing me up. (Note that these are custom controls. It only inherits a Control)
Code: Select all
public class NewButton : Control
{
.....
}
like so. so all the events and properties are 100% custom. This allows the user to edit the control's appearance.
Here is the DLL (Right click on toolbox and press "Add Toolbox Items" and browse for this dll.)