|
You can use Cursor.Position
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
thank you for you answer
but i use this can't get what i want.
if i write "Point p = Cursor.Position",the p is the location of the control or the form who contain the control.
i devide a control into three partions, mouse enter each partion i give him a different cursor style ,how can i do this.
thank you!
|
|
|
|
|
Cursor.Position or Control.MousePosition
both give screen position
convert back to position inside myControl using myControl.PointToClient()
You do realize there is a thing called documentation ? see MSDN either inside
Visual Studio or on the web.
|
|
|
|
|
Look into the GetCursorPos API command of Windows. Do a quick search on MSDN.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
I have a Windows Forms program, written in C#. Not a ASP.NET web page. And I'd like to get the value of the Firefox and Internet Explorer user agents, if this is at all possible. Any ideas?
-Domenic Denicola- [CPUA 0x1337]
“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”
|
|
|
|
|
Have you tried the link below:
http://www.google.com/search?lr=&ie=UTF-8&oe=UTF-8&q=Internet%20Explorer%20user%20agent
The first hit should solve your problem.
|
|
|
|
|
I indeed saw that page and others like it. The problem is that the registry only stores those values if the user has changed his/her user agent. If the user has left it as default, then it's unknown what the user agent is, as those keys don't exist.
I guess I could have fun reconstructing the user agent string from the user's platform, browser version (which shouldn't be too hard to find), and then those add-on strings which I think are stored in the registry (.NET CLR etc.)
-Domenic Denicola- [CPUA 0x1337]
“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”
|
|
|
|
|
Hello There,
I have technical problem in with web project.
I'm trying to pass form data (hidden fields) to a url without redirecting to the page.
In other words, lets suppose my web project has 2 files 1.aspx and 2.aspx.
A user submits a form on 1.aspx and the page navigates to 2.aspx. But before navigating to 2.aspx I'm validating the user inputted data. After the validation I need pass the status of validation(Valid or Invalid data) to an external url lets suppose http://somewebsite.com/3.aspx.
The posting of data to http://somewebsite.com/3.aspx has to happen asyncronously behind the scene so that user navigates from 1.aspx to 2.aspx.
Could anyone please help me...any reference to any articles will be of great help.
Thanks!
Amit.
|
|
|
|
|
Use AJAX dude.
--------------------------------
txtSignature
|
|
|
|
|
hi Frnds
i want to deployee c#.net desktop application on client machine.
i am using ms access as database.
can any one suggest me what is the process of deployement.
Thanks in advance
-- modified at 8:52 Saturday 28th July, 2007
Vicky
|
|
|
|
|
There's a deployment Wizard in Visual Studio, so have a look at that. There's also ClickOnce deployment as an alternative.
Kevin
|
|
|
|
|
I've recently finished a c# book(I had a background with c++, but never made anything 'real' myself)
Currently I have an idea for a little program but I need it to be able to automatically open a website, write something in its search engine and download the first result.
Whilst concept wise I think I know how I can open a website(using some BCL).
Also, I know how to make it 'search' for it only by giving a url + the keyword of the search integrated there, is there a better way?
and the most important question, how can I get it to automatically download it? (using a software I make the user specify)
|
|
|
|
|
It sounds like you want to take a look at the HttpWebRequest[^] class.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
hey
I have a property:
int MyProperty{<br />
get{return myProperty;}<br />
}
When we ran FXCop it threw up:
Info : "Do not use names that require case sensitivity for
uniqueness. Components must be fully usable from both
case-sensitive and case-insensitive languages. Since
case-insensitive languages cannot distinguish between
two names within the same context that differ only
by case, components must avoid this situation."
So what should I rename myProperty?
cheers
|
|
|
|
|
Hi,
I do this all the time, but only in specific situations; i.e.
the local variable is declared private, and the property is either
protected or public.
And I do not intend on changing that. How else would you come up with
two different but related names (don't give me the underscore stuff,
such as _myProperty or m_myProperty, I don't like it at all, it lowers
the readability of the code).
Did you add those different qualifiers when trying?
If myProperty and MyProperty both were to have the same access rights
(which is private if you dont specify), then I would agree with FxCop.
|
|
|
|
|
I do it the same.
Which .NET language is actually case insesitive?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I dont know, and I would be surprised if any of the major ones
would be case-insensitve. I read all languages but on CLR I only speak C#
I do know a lot of "cross-linkers" (I am an embedded guy actually) are either
case-insensitive or have a switch to let the user choose.
|
|
|
|
|
Visual Basic, Eiffel for starters.
However, FxCop should really only be objecting about public identifiers that differ only by case. It shouldn't really object to the original example and I would disable that rule.
Kevin
|
|
|
|
|
Luc Pattyn wrote: (don't give me the underscore stuff,
such as _myProperty or m_myProperty, I don't like it at all, it lowers
the readability of the code).
Just my opinion, but I rather like the m_propertyName way of doing it. With a quick glance in a function you can tell whether or not the code is operating on a member or a local, and also groups them all together in Intellisense so you can easily search through your member variables.
|
|
|
|
|
Hi Phil,
That is absolutely true, but it does not change the fact
I don't like how it looks.
Some people still prefix a polish-style type indicator to every
variable, as in string strMyName;
I prefer identifiers to be strictly functional;
I do prefix interface names with "I" since that is a hard convention;
and I tend to prefix Controls with their type ("frm", "pan", "btn", ...)
mainly to be able to do things such as bool caseSensitive=cbCaseSensitive.Checked;
but that is all.
I do understand large organizations should impose strict rules,
and the larger the project the more it may benefit from them,
and from having some prefixes such as the m_ for members.
|
|
|
|
|
thepersonof wrote: So what should I rename myProperty?
To something meaningful.
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Hello Every body,
I want to generate crystal reports.
But I am unable to do so.
I had included an crystal report through add new items.
but i am not able to create report.
Regards,
rahul saini
|
|
|
|
|
|
do u binded the XXXX.rpt with the crystal report viewer.if not do it and check.
prasanna muthuramalingam
|
|
|
|
|
Hi,
Thanks for rplying me.
I had used crystal report viewer I am getting result but i want the result that i need Is is howing all the records . It is not showing the records corresponding to the sql query that i gave it.
Regards
rahul saini
|
|
|
|