|
Hi Sir
I added it but the Result is Same...
is there any other way to solve...
|
|
|
|
|
Use the SerialPort control instead of mscomm32.ocx.
|
|
|
|
|
basically I want to clear the selection and keep a context menu from coming up if the user right clicks in empty space beneath the last row. The MouseDown event fires before the CellMouseDown event so I can't have the latter set a flag to control the former. The former gives a mouse coordinate but I don't see a way to check if it's on a row or not.
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
As to this comment:
dan neely wrote: I don't see a way to check if it's on a row or not
there's the HitTest[^] method. You may find the example code in the docs useful.
|
|
|
|
|
Thanks. The only problem with kitchen sink classes is that intelligence isn't that helpful when it returns 10 zillion items.
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
Hi all,
I am quite new to C# and I bumped into this issue and I cannot understand why it is happening. I have a list of objects of class1. class1 has, as a member variable a list of objects of class2, and class2 has as a member variable a list of objiects of class3. In my code I have to add some objects to the list of objects of class3 for the last element of the list of objects of class2 for one of the elements of the list of objects of class1. It seems it should be straight forward but i found a strange behaviour and maybe you clever people can help me make some sense out of it.
I'll explain with an example: if the list of objects of class1 has 2 elements (ListClass1[0] and ListClass2[1]) and I do
ListClass1[0].ListClass2[ListClass1[0].ListClass2.Length-1].ListClass3.Add(ObjClass3)
at the end of this I find that the ObjClass3 has been added to ListClass1[1].ListClass2[ListClass1[1].ListClass2.Length-1].ListClass3
Why is that happening?
Is there any way around this?
Cheers
Mauri
|
|
|
|
|
If I were you, I would rewrite that piece of code to make it more readable.
Also, without the code for your classes, it is very difficult to figure out what is happening.
Please format your code correctly using the <pre> and <code> tags.
|
|
|
|
|
Hmmmm, that is a strange one...
my first though is that the objects stored in ListClass1 are refrences to the same object so changing one would alter them all.
Can you confirm this is not the case?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Perhaps ListClass[1] and ListClass[2] are pointing to the same object? If they're reference types, then assigning them to be equal to one another would have that effect, I think
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
now i feel daft. yes, that was the problem. Thanks guys, much appreciated.
Mauri
|
|
|
|
|
I URGENTLY NEED A POO, CAN SOMEBODY PLEASE DO IT FOR ME?!?!
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
|
Like I said, very urgent, no time to check the instructions.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Is this a joke?
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Blue_Boy wrote: Is this a joke?
I guess that's why it's got a Joke icon next to it.
"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
|
|
|
|
|
|
8!!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
close but no... 6 comes after 5!
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Depends what base your working in! And if you've been hypnotised to miss certain numbers!
|
|
|
|
|
Blue_Boy wrote: Is this a joke?
Is this a joke? you shouldn't joke about jokes, there's nothing funny about that
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Follow the posting examples of everyone else asking questions in this forum. I'm sure you'll pick it up eventually (the technique, not the finished article)
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Yeah, I will definitely what to avoid picking up the 'finished article' if possible. (fingers crossed for a clean landing then )
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
You definitely made a splash with that reply. The full meaning is trickling through my brain now
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|