Am building windows form application using VS2010.
I created a class that generate patientNo.
Now am testing to see if the class is functioning as expected , using message box to dispaly
when i run the application and set Gender from a combobox and click on the generate
Button, i got an error: null reference exception point to the variable reading selectedvalue from the combobox. pls help
here is the code: