473,398 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 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 1081
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: kylin | last post by:
uses statement: System.Windows.Forms.PictureBox pictureBox1; System.Windows.Forms.Panel panel1; pictureBox1 = new System.Windows.Forms.PictureBox(); panel1 = new...
5
by: Ben Bloom | last post by:
I'm new to XSLT, but everything I've read says this is the best approach to solving the XML->CSV problem. Based on some web reading, I came across the following XSLT code which appears valid, even...
3
by: One Handed Man | last post by:
How can one fire an event programatically for a given control. In another post someone wanted to cause an event in order to make a RichTextBox scroll down. However, the onVscroll method is a...
3
by: Robin Tucker | last post by:
It seems that all of the interfaces, such as IDataObject etc. from basic OLE are no longer supported in .NET, although they are implemented (differently). I have an OLE object type and am having...
2
by: Phill. W | last post by:
How do I propagate an Event that I've just handled? I have a UserControl containing, among other things, a TextBox. The UserControl handles KeyDown/KeyPress Events for both itself and the...
4
by: Roger Aikin | last post by:
I've converted a VB6 project to VB.Net 2005. (Actually using vstudio pro 2005). I'm on a machine that also has VB6 and Vstudio.net 2003 on it. The project uses Word, Excel, MapPoint and SqlClient...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
2
by: deerchao | last post by:
Hi, there. I'm developing a WinForms application, and a user reported that it will exit suddenly seconds after startup, every time. There isn't any prompt at all, just like he killed the process...
0
by: khalid galal | last post by:
Hi, i am having a problem with removing event handlers, it is when creating nested event handlers (an event handler raising another event handler) where a part of the code is private void...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.