473,569 Members | 2,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

suddenly having to add System.Windows. Forms.

Hi,
I'd been saying DataGrid.HitTes tInfo 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.HitTes tInfo. Just wondering if anyone knew of possible reasons for
this.
Thanks!
Melanie
Jan 3 '06 #1
3 1089
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.HitTes tInfo 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.HitTes tInfo. 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
1909
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 System.Windows.Forms.Panel(); //
5
3732
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 if it doesn't work quite as expected. XSLT: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0"...
3
2269
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 protected method for this control. How can this be acheived. ? Your help is appreciated. - Many Thanks --
3
2118
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 to make lots of detours and compromises (and, to be frank, hacks) to get my .NET code to work with it. For example, because I can't get an...
2
1441
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 TextBox, as in Private Sub TextField_KeyDown( _ ByVal sender As Object _ , ByVal e As System.Windows.Forms.KeyEventArgs _
4
4475
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 (database is SqlServer 2000). OS is WinXP SP2. When I run the project, it opens the MDI form (MdiMain.vb) fine, but when I open one of the...
3
3991
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 selects? thanks...
2
1806
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 from task manager. I think I catched most of possible exceptions, and in case it's because of an uncatched exception, there should be something like...
0
1294
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 toolStripButton1_Click(object sender, EventArgs e) { this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseDown); }...
0
7694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7921
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6278
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5504
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.