如何制作一个简单的事件 [英] How to make a simple Event

查看:85
本文介绍了如何制作一个简单的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在编程一个程序,它将打开第二个窗口并直接打印它.我以为我可以使用事件Form_Load.但是,如果我在那个阶段打印表格,它将变成全黑(我认为是因为表格尚未完成加载).因此,我需要一个触发器来在页面加载后直接打印该页面,并且该触发器不能由用户输入.

加载页面后,谁能帮助我调用打印功能?
谢谢,
pieterjann

Hello,

I''m programming a program that opens a second window and directly prints it. I thought I could use the event Form_Load. But if i print the form at that stage it will become totaly black (I think because the form has not finished loading yet). So I need a trigger to print the page directly after it is loaded, and this trigger can not be user input.

Who can help me on calling my print function when the page is loaded?
Thanks,
pieterjann

推荐答案

最终答案:
添加一个计时器,并在tic之后禁用它.


线程已关闭
Final answer:
Add a timer and disable it after the tic.


Thread closed


这篇关于如何制作一个简单的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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