Zephaniah Chua Zephaniah Chua - 1 year ago 69
Vb.net Question

Visual Basic cannot using form when coding

I have a form called "cancel reservation", so when i try to calling this form in my coding , it cannot be call.

Please check my attachment here
I can using call for all other form but not this one, can anyone please give some advise?

Thank you

enter image description here

Answer Source

Your form's name is most likely just Cancel_Reservation instead of formCancel_Reservation (that is, if you've not renamed it of course).

For example:

Cancel_Reservation.Close()

should do the trick.