|
You can create a Rectangle 10 pixels wide and 10 pixels high around mouseCoords and then use Rectangle.Contains() to check whether the current mouse position still is inside the rect.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
That sounds like a good idea, but I dont know anything about that. Can you help by providing any code examples?
|
|
|
|
|
Come on, that's not that hard.
You should read up the class documentation for Rectangle where you'll find the neccessary constructor and method to perform the task.
I really think it's a lot better if you come up with the solution yourself (with some help from CP) instead of spoon-feeding you with the complete code. (teach a man to fish...)
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
i was restricting start menu but i havent found any help about it. Is there any help or hint available from some one.
tahir
|
|
|
|
|
Where boss ?? Is that windows start menu that you want to restrict or your own application !!! ???
Thanks,
Arindam D Tewary
|
|
|
|
|
yes its the windows start button which i want to disable through my application.
tahir
|
|
|
|
|
Hi
I have used ZedGraph to draw sine wave . Now problem is when i run the .exe file..I get output sinewave already drawn over the graph...Whereas i want when i run the exe...It should start drawing the sine wave.
So how can i achieve this..Any hints ?
Thanks
James
|
|
|
|
|
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I think you mean you want to see the drawing slowly. When calculating the sinus values you should have a small delay in the for loop (like Thread.Sleep(50); ). So your code should seem something like;
<br />
for (...)<br />
{<br />
y= Math.Sin(x);
ppArray.Add(x,y);
<br />
zedGraph1.AxisChange();
zedGraph1.Invalidate();
<br />
Thread.Sleep(50);
}
|
|
|
|
|
|
Yeah, nice try, but script tags are automatically ignored by the rendering engine. Along with a bunch of other HTML tags.
|
|
|
|
|
Is this conversation cover me from cross-site scripting? (Especially in asp.net post forum pages)
< to & lt;
> to & gt;
& to & amp;
|
|
|
|
|
From the few keywords in your "question", this belongs in the ASP.NET forum. Though I have no idea what you're saying because your "question" doesn't make any sense.
|
|
|
|
|
Acutually I want to prevent cross-site scripting in asp.net forums.
If I want to protect from user input data when user (lamer) enter script in the textbox in asp.net forms.
If I get to textbox string and convert the <, >, & symbol to HTMLEncoding in the string.
Is this process enough for prevent cross-site scripting?
|
|
|
|
|
Go test somewheres else instead of in a forum
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hello sir,
i have got a serious problem plz help me
my problem is that i have to show report of employees
in mail merge format using crystal report 9
plz give me some idea
|
|
|
|
|
Please do not use textspeak, for it is annoying to many people around here. Please be more specific about your problem you are having.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello,
Task is to add Thumbnail Images to a listbox control. Search on codeproject/Google showed me ImageListBox/ImageList controls. I tried these and eventually felt lost.
Can anyone give me a guidance on where to start? or any points to note.
Thanks
D
|
|
|
|
|
Hi,
this is what a ListBox shows:
- strings, if that is what you add to its Items collection
- ToString() results of whatever type you add to Items
- whatever you want if you do the painting yourself.
So you must go for "owner drawn" and use the relevant events.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hello Luc,
Thanks for your response. I am afraid i didnt quite understand what you meant.
Could you please elaborate or point me to any other link?
Thanks
D
|
|
|
|
|
These are the keywords you need (for either ListBox or ComboBox):
DrawMode, DrawItem, and maybe: MeasureItem
I suggest you read up on them.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
|
Hello,
My task is to open an Image Properties page programmatically. Properties page as you get by right clicking on the image and selecting Properties on Context Menu.
I know rundll32.exe can open up printer properties, Is there a similar way or any another?
Thanks
D
|
|
|
|
|
I don't believe there is a simple way of doing it. But you should be able to adapt this[^] to invoke the properties window yourself.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Thanks much! I will give it a try!
D
|
|
|
|