Custom Controls

Post here if you are in need of people to test our your application.
Post Reply
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Custom Controls

Post by Click16 »

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
{
      .....
}
Image

like so. so all the events and properties are 100% custom. This allows the user to edit the control's appearance.

Image

Here is the DLL (Right click on toolbox and press "Add Toolbox Items" and browse for this dll.)
Control Library.rar
Add this DLL to your ToolBox.
(4.87 KiB) Downloaded 434 times
Image
Post Reply