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

The Columns property of the datagridview can not be obtained by ManagedSpy? #22

Open
lurenchou opened this issue Aug 5, 2018 · 2 comments
Labels

Comments

@lurenchou
Copy link

The Columns property of the datagridview can not be obtained by ManagedSpy?
object is null.

The attribute of the object is that Collections is NULL。

@ForNeVeR
Copy link
Owner

ForNeVeR commented Aug 5, 2018

Could you please provide an MCVE?

@lurenchou
Copy link
Author

lurenchou commented Aug 5, 2018

proxy = ControlProxy.FromHandle(handle);
object ob = proxy.GetValue("Columns");
if (ob == null) MessageBox.Show("null");

Columns is the attribute of DataGridView;
The attribute of the object is that Collections is NULL

The GetValue method does not get the attribute of the collection class?

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

No branches or pull requests

2 participants