|
cdpace wrote: Have any idea how i can proceed on this?
idea[^]
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
Hi Guys
I have the most annoying problem. I have written a very simple program that uses SQL Compact as it's data store. It works fine on Win 7, XP and Win 2k3. But when I install it on Vista (basic) I get the error message "Attempted to read or write protected memory" when ever I try and do anything with squirrel compact.
I've made sure that this problem laptop is up to date with updates, I have disabled DEP, and I am still getting the error.
The only other thing I can find is that the Memory is corrupt, but I do not know how to fix this (if this is the actual problem)
Has anyone else experianced this problem? Any idea's on how to fix it? I'm really at my wits end, and there is money at stake!!!
Thanks,
oooo, the Jedi's will feel this one....
|
|
|
|
|
|
Sorry... I was hoping that there was something that I could change in my C# application to get around this problem...
oooo, the Jedi's will feel this one....
|
|
|
|
|
Try running the app (under Vista) with XP compatibility set
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
How to set the form's color to transparent ?
|
|
|
|
|
Set the form's Back Color and Transparency Key property value to the be the same color.
That is all that you need to do!
I personally prefer to use magenta, as its an unlikely color to cause other issues.
Dax Frost
There Are 10 Kinds Of People,
Those That Understand Binary,
And Those That Don't
|
|
|
|
|
How to locate a form in screen "right down-Conner" position?
|
|
|
|
|
point p=new point(Screen.PrimaryScreen.WorkingArea.Width-this.Width,Screen.PrimaryScreen.WorkingArea.Height-this.Height-30);
this.location=p;
|
|
|
|
|
in the first form i have a table of labels of categories(history, geography, etc...)and a label that counts the money that i have (we start by a certain number of money) so when i click on a label a question must appear in a new form, i answer the question and i claculate the new amout of money, i close the new form and return to the initial form where the label that counts the money must be uptadeted... the problem is when i come back to the initial form the label shows the initial amout that i have initially entered without being uptated.. even though i declared a public class
|
|
|
|
|
Hi,
could you send code, how you open the 2nd form? That would help
bye
|
|
|
|
|
in the event label_click (first form)
{
form2 f2=new form2();
f2.ShowDialog();
}
that's all ....
|
|
|
|
|
Hi,
after ShowDialog() you should update your label manually. The event will stop until your form closed, at ShowDialog()
hope it helps
bye
|
|
|
|
|
You need some method to actually trigger the update of the label. If you've used databinding against the label, you can update it using INotifyPropertyChanged . Alternatively, you have to manually trigger the update yourself.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
i want to check if a given point (x,y) lies inside a region. I know only the edge coordinates of the region( a list of points). the region is an irregularly shaped region.
i have tried out many solutions but havent got a proper answer yet. pls help me out.
thank u.
|
|
|
|
|
Try here[^]
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
thanks.
the solution looks great. my region is actually a curve and i know the coordinates of every pixel. can i consider the curve to be a polygon??
can i form the arrays polyX and polyY from the coordinate values of every pixel??
|
|
|
|
|
If you already know the co-ords of every pixel on your region boundary, it is even easier isn't it? Just count the number of pixels with the same x (or y) value which have a lower y (or x) value, and if it is zero or even you are outside, odd and you are inside.
You would have to count intersections twice, but that is just a tweak.
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
Oops! I forgot - you will need to check if the border is a horizontal (or veritical) line!
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
ya ok. i'll try it out n let u know. thanks!
|
|
|
|
|
|
adding to the excellent answers so far, here is a simple trick that sometimes fits the job:
if you are working in an integer coordinate system with limited range, you could fill your region with one foreground color onto a different background color once, then just ask the pixel what color it has...
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
this will work great if i knew the color values of the values. but i know only the positions and nothing else
|
|
|
|
|
You set the values yourself. If it is inside the shape, assign a specific value(say magenta), else use default.
Ask pixel what color it is. If magenta then inside polygon = true.
|
|
|
|
|
It doesn't matter. Just call it black, or whatever. There are only 2 colours so you could use a single bit per pixel to cut down on memory usage. It seems logical to me to visualize that as white on a black background, but it doesn't matter since you only need to know which colour it is, not what colour it is (if you know what I mean), you might as well visualize it as yellow on pink, it doesn't change the result
|
|
|
|