简体   繁体   English

Visual Basic 编码时不能使用表单

[英]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谢谢

在此处输入图片说明

Your form's name is most likely just Cancel_Reservation instead of formCancel_Reservation (that is, if you've not renamed it of course).您的表单名称很可能只是Cancel_Reservation而不是formCancel_Reservation (也就是说,如果您当然没有重命名的话)。

For example:例如:

Cancel_Reservation.Close()

should do the trick.应该做的伎俩。

Use show() function to call forms.If your form name is Cancel_reservartion then call like this,使用 show() 函数调用表单。如果您的表单名称是 Cancel_reservartion,则像这样调用,

Cancel_reservartion .show()

Just try it.就试一试吧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM