|
Program how to interact when cursor on this word?
|
|
|
|
|
i want to display a user control in place of default tooltip displayed.
Can smebody help me with the code????
thanks in advance....
|
|
|
|
|
For which control you want to do that ? You can trap Mouse move event and show some user control on mouse move.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
i want to do this for picture box.
can u plz help wid the code snipet????
thanks....
|
|
|
|
|
I have a process which can be run from any number of servers. All of them access the same database. How do I synchronize the severs data access?
Here are the details.
My common database server has a table T1. It has columns C1, C2 and C3.
My process has the following steps.
1. Read T1 table.
2. If there is any row with value V1 for C1, wait in a loop and go to step-1.
3. If there are no such rows, insert a row with V1 for C1 and appropriate values for the rest of the columns.
4. Start my business logic.
5. Once the business logic is complete, delete the row entered in step-3.
Now the same process runs from different servers. So there is a chance that 2 or more processes will do steps 1 and 2 simultaneously and might end up creating 2 or more rows with V1 value for C1. I don't want that to happen. How will I make sure only once process can perform steps 1 and 2 at a time? I can not use lock and monitor to synchronize the access as I am running from different process spaces.
How do I do it then?
|
|
|
|
|
One way would be to create a separate table in the DB for locks (or just reuse the existing one). Before a process starts step 3 (or whatever the crucial step is) it checks that table for a well known value, if it exists then it knows that some other process has started business logic and it should wait. If the lock value isn't found then it can create it and continue on. The lock value that it created will signal other processes that it is currently executing business logic and they should wait.
This will work if the DB column that you're using for a lock is properly setup with a primary key constraint. If two processes try to write the same value into a PK column at (nearly) the same time the first will succeed and the other will throw an exception.
Another "Outside the Database" solution would be to make all of the processes communicate with each other via some other mechanism (sockets, MSMQ, File IO, etc) and work out that way which one should be doing what.
|
|
|
|
|
Thanks Jimmanuel for the reply. It gives some good pointers.
I am more interested in the "Outside the Database" solutions. I suppose there are no design patterns as such which cover this scenario. Right?
|
|
|
|
|
Sure there are, look up "concurrency[^]", "transactions[^]", "inter-process communication[^]" (aka IPC) and "messaging systems[^]". I haven't looked for the others but I know that there's a decent IPC article on CP somewhere.
If you have lots of time to read, this[^] book has a chapter about transactions and concurrency and this[^] is entirely about building applications and messaging protocols in distributed systems.
|
|
|
|
|
Thank you very much. Really helpful leads.
|
|
|
|
|
Glad to help
|
|
|
|
|
such as, if i want to convert 240 in binary,octal, hex and vice versa
|
|
|
|
|
|
The Indian universities must have started a new semester...
.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
|
|
|
|
|
Not exactly. It should be examination time in many of the universities here. Project submission dates approaching fast, very fast.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
i have created a segment by using the following code.
Data="M0.5,0.5
L23.877726,0.5 23.912098,1.4036387
C27.248646,67.155535 81.673632,119.5 148.25,119.5 214.82637,119.5 269.25135,67.155535 272.58789,1.4036387 L272.62229,0.5 297.1016,0.5 297.05591,1.7070469 C293.06088,80.831659 227.88823,143.5 147.75,143.5 74.074534,143.5 13.048166,90.531885 0.58002052,20.504782
L0.5,20.020197 z" />;
now from C#, i want to change the color of that segment from black to blue.
how can i make that change? please give me the solution with sample code.
|
|
|
|
|
Are you working with WPF or Silverlight?
Next time, post in the appropriate forum. It may help you get an answer faster.
Now, for the question, I dont think you can change the color just by looking at the path text. Try changing the color of the path object by itself.
There's nothing left in my right brain and nothing right in my left brain. |
|
|
|
|
|
i want to display a 3 row,2 column table in the tooltip used for a user control.
can smeone help me with the code????
thanks in advance....
|
|
|
|
|
Try this link
CPPToolTip v2.1[^]
please click answered if it helps you
Regards
Narendra Singh
(Jindal Tech Ventures)
|
|
|
|
|
Hey Guys,
I've been given an assignment to organize a programming seminar next January. It's supposed to be for young people who have interest in programming, just need to be convinced. However, i need a catchy title for the seminar. Help please.
He who goes for revenge must first dig two graves.
|
|
|
|
|
How about "I didn't get what I wanted in the lounge so I'll try all the other forums?"
All those who believe in psycho kinesis, raise my hand.
|
|
|
|
|
Have you considered using "Free Beer" as the title?
|
|
|
|
|
|
hello all
i want to check if the MonthCalender selected date is Bolded or not?
how to do that?
thanks in advance
|
|
|
|
|
Why you need to check if selected date is bold? I'm just curious to know it.
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.
www.aktualiteti.com
|
|
|
|
|