PDF Viewer控件是否具有某种“加载”控件?事件 [英] Does PDF Viewer control have some kind of a "Loaded" event

查看:90
本文介绍了PDF Viewer控件是否具有某种“加载”控件?事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的实施如下:

1。用户单击TextBox以获取输入

1. User clicks on a TextBox for input

2。我处理TextBox的Enter事件以将相应的PDF文件加载到表单上的PDF Viewer控件中。

2. I handle the TextBox's Enter event to load a corresponding PDF file into a PDF Viewer control on the form.

3。由于TextBox已经失去焦点,因此在此步骤重新调整TextBox。

3. Since the TextBox has already lost focus, refocus the TextBox at this step.

但是,当我尝试在TextBox上调用Focus()时,PDF文件加载似乎有点慢,它无法每次重新获得焦点。

However, the PDF file loading seems to be a little slow so when I try to call Focus() on the TextBox, it fails to regain focus every time.

有没有人知道PDF Viewer控件是否触发某个事件以表示它已经完成加载所请求的PDF文件,这样我就可以重新关注TextBox?

Does anyone know whether the PDF Viewer control fires some event to signal that it has already finished loading the requested PDF file so I can regain focus on the TextBox?

推荐答案

您是否尝试在"表单设计器"中选择控件,然后在"属性"面板中单击"事件"图标来检查可用事件列表?

您也可以在代码中键入变量的名称,然后输入'。'。 IntelliSense将建议成员和事件列表。


这篇关于PDF Viewer控件是否具有某种“加载”控件?事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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