All you have done is create a variable
ddl
. You need to assign a value to that variable before you can add items to it.
E.g.
Dim ddl As DropDownList = this.Page.Master.FindControl("YourDropDownList")
If this is WinForm then
Dim ddl As DropDownList = this.YourDropDownList
(you need to substitute the id of the drop down list on your page/form for "YourDropDownList") or you could use
Dim ddl As DropDownList = New DropDownList()
- but no-one is going to see your list