With conventional LV programming you can't. There's an unsupported feature called "scripting" that might be able to do it, but it is as I said, unsupported by NI. In other word, if it doesn't work or you corrupt your code using it, NI doesn't want to hear about it...
Having said all that, why do you think you need to add an event case on the fly?
Mike...
Certified Professional Instructor Certified LabVIEW Architect LabVIEW Champion
Could you be a bit more specific on what you are trying to do?
Do you want to programmatically edit an existing VI that is currently not running? As mike said, scripting could work but it is unsupported (see the Lava scripting forum for details: http://forums.lavag.org/LabVIEW-VI-Scripting-f29.html). Somehow, adding an event case does not give you much, you would also need to add the code contents and hook everything up to the existing controls, indicators, and other nodes.
If you just need an event that is not always active during run, maybe you can use user events. Check the online help. (Also have a look at e.g. section 4 in the following application note: