重新加载后,命令按钮不在表单上显示 [英] Command Button not displaying on form after a reload

查看:65
本文介绍了重新加载后,命令按钮不在表单上显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一个带有表单的表单。


重新加载表单时,即使没有命令隐藏它,也会拒绝显示特定的命令按钮。它只显示按钮所在的空白形状。


过去有没有人经历过这个。


请帮助我与此相同,因为它在编译和部署后在客户端的机器上也是如此。



I have a form with a form in my application.

When the form is reloaded, a particular command button refuses to display even when there was no command to hide it. It only shows a blank shape where the button is supposed to be.

Has anybody experienced this in the past.

Kindly help me out with this as it does the same on clients'' machines after compillation and deployment.

附加图片
(28.0 KB,280 views)
Attached Images
(28.0 KB, 280 views)

推荐答案

我想我们需要您提供更多背景信息。例如......
  • 您使用的是什么版本的VB?
  • 重新加载究竟是什么意思?表单?
  • 带表格的表格是什么?是什么意思?
I think we need you to provide us with some more background info. For instance...
  • What version of VB are you using?
  • What exactly do you mean by "reloading" the form?
  • What does a "form with a form" mean?


谢谢Killer42

我使用VB6

重新加载,我的意思是卸载表格然后再次加载表格以清除用户输入的数据,从而使表格空白并准备好再次输入数据


卸载我

我。显示


带表格的表格:这是一个拼写错误。请原谅我,我的意思是带命令按钮的形式。
Thank you Killer42
Im using VB6
by reloading, i mean unloading the form and then loading the form again to clear the data entered bythe user,thereby making the form blank and ready for data entry again

unload me
me.show

"form with a form": this is a typo error. please pardon me for that, i meant "form with a command button".


嗯...


不确定究竟是什么问题是的,但我必须说,从表格中的卸载表格然后再次显示它听起来是个坏主意。猜测,这可能会导致VB一些混乱。 unload命令应该从内存中完全删除表单(包括所有代码)。如果你还在进入状态,不确定事情是如何运作的之后执行代码的表单。你实际上是在告诉VB擦除我正在执行的代码。呃。


作为一般规则,我建议不要使用语句卸载我,除非它是由我执行的最后一个。 ;。


我现在想到的最好的是:
  • 从表单外部执行此过程,或者
  • 创建一个子清除所有数据,然后调用它而不是重新加载表单。
Hm...

Not sure exactly what the problem is, but I must say it sounds like a bad idea to unload a form and then show it again, from within the form. At a guess, this could be causing VB some confusion. The unload command is supposed to entirely remove the form (including all code) from memory. Not sure how things work if you''re still "in" the form executing code afterward. You''re effectively telling VB "erase this code which I''m executing". Ugh.

As a general rule, I''d advise against using the statement Unload Me unless it''s the last one executed by "Me".

Best I can think of right now is to either:
  • do this process from outside the form, or
  • create a sub that clears all the data, and call that instead of reloading the form.


这篇关于重新加载后,命令按钮不在表单上显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆