如何清除用户表单中的图像?

时间:2017-12-03 14:28:20

标签: image excel-vba controls userform vba

我有一个Userform,我使用Image字段。我根据两个标准在此字段中显示图片。当我想输入两个新标准时,我不知道如何在Userform中清除此图像。

1 个答案:

答案 0 :(得分:2)

您可以通过async logIn() { try { const result = await Expo.Google.logInAsync({ androidClientId: '645999128246-gv9drk3gtad84ikeifg37p4k5phdu705.apps.googleusercontent.com', // iosClientId: '116235701426-lsptd400ahlctrlveoe4vlg96hcjne51.apps.googleusercontent.com', scopes: ['profile', 'email'], }); if (result.type === 'success') { //console.log("AICI"); getUserInfo(result.accessToken); return result.accessToken; } else { return {cancelled: true}; } } catch(e) { return {error: true}; } } async getUserInfo(accessToken) { try { let userInfoResponse = await fetch('https://www.wronglinkdoesntmatter.com/userinfo/v2/me', { headers: { Authorization: `Bearer ${accessToken}`}, }); console.log("IT IS FINE"); } catch (e) { console.log("ERROR"); } } render() { this.logIn(); 轻松'清除'您的UserForm图像控件(例如Image1)。在下面的示例中,您将在显示已定义的图片和单击命令按钮时显示空控件之间切换。为了控制图像状态(是否为空),请通过Image1.Picture = LoadPicture(vbNullString) ...

检查图像图像属性

用户表单模块中的代码示例

If Image1.Picture Is Nothing Then