You'll need to share the code with us along with the exception details including the message and stacktrace. Without that we have no idea what is wrong.
Just off the top of my head you most likely have a field that isn't set and your code is referencing it which triggers a NRE. In general you should only ever delete things via the designer. If you deleted it in code then that tends to lead to problems like this. But, again, just a guess with no other information.
When the error occurs you'll get thrown into the debugger. At that point you have the exact line that is failing and one of the instances on that line is null. You then need to figure out why. It could be because you deleted some controls or it could be something completely unrelated. The debugger will show you what is bad though. Fix the code by ensuring you either handle cases where the instance is null or by ensuring the value is never null.