471,309 Members | 1,080 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,309 software developers and data experts.

suddenly having to add System.Windows.Forms.

Hi,
I'd been saying DataGrid.HitTestInfo HitInfo = dg.HitTest(e.X, e.Y); for a
while without any problem (of course with using System.Windows.Forms;). Then
suddently I got errors and had to add System.Windows.Forms. in front of
DataGrid.HitTestInfo. Just wondering if anyone knew of possible reasons for
this.
Thanks!
Melanie
Jan 3 '06 #1
3 1029
Hi melanieab,
what are the errors you are getting? It may be that you have a namespace
conflict, so that you have two different types with the same name, so there
is an ambiguity and hence you have to provide a fully qaulified type name.

Mark

"melanieab" wrote:
Hi,
I'd been saying DataGrid.HitTestInfo HitInfo = dg.HitTest(e.X, e.Y); for a
while without any problem (of course with using System.Windows.Forms;). Then
suddently I got errors and had to add System.Windows.Forms. in front of
DataGrid.HitTestInfo. Just wondering if anyone knew of possible reasons for
this.
Thanks!
Melanie

Jan 3 '06 #2
Have you created any class of your own called DataGrid or HitTestInfo?

Jan 3 '06 #3
Ahhh. I did create a class called DataGrid. Thanks!
Melanie

"Bruce Wood" wrote:
Have you created any class of your own called DataGrid or HitTestInfo?

Jan 4 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Ben Bloom | last post: by
3 posts views Thread by One Handed Man | last post: by
2 posts views Thread by Phill. W | last post: by
2 posts views Thread by deerchao | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.