Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I hide an element ? #595

Open
captain-majid opened this issue Nov 18, 2023 · 1 comment
Open

Can I hide an element ? #595

captain-majid opened this issue Nov 18, 2023 · 1 comment

Comments

@captain-majid
Copy link

captain-majid commented Nov 18, 2023

Just wonder if I can hide an image control from a window, https://www.nirsoft.net/utils/winexp.html used to do this by just unchecking the Visible checkbox of the control.

@Roemer
Copy link
Member

Roemer commented Mar 8, 2024

I suspect you mean hiding by modifying the windows style. This is not the idea of UI Automation (that would be, to click a button or select a checkbox to show/hide something) but there are some undocumented internal methods to fumble around with windows styles, see:

public void SetTransparency(byte alpha)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants