<p>Is there any way to set an event handler without doing it manually in the classname.designer.cs file other than double clicking the UI element?</p>

If I follow your question correctly, you can just do it in your code-behind like this:
```
```
myButton.Click += myHandler;
```
```
Or you could use an anonymous delegate:
```
```
myButton.Click += delegate
{
    MessageBox.Show("Clicked!");
};
```
```