|
Nothing springs to mind but I found Bind Better with INotifyPropertyChanged[^], don't know if it helps/applies in your situation.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
Why do programmers often confuse Halloween and Christmas?
Because 31 Oct = 25 Dec.
|
|
|
|
|
Thanks but this looks like a wrapper around INotify to make it apply generically, useful in it's own right by not in this case!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I managed to get the desired result by dropping and rebuilding the binding
txtROE.DataBindings.Clear();
Binding oBinding = new Binding("Text", oFSet, "ROE");
oBinding.FormatString = "#,#.00";
oBinding.FormattingEnabled = true;
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hmm.... Are you certain the Facility object is not re-instantiated somewhere after the binding. That could explain this behaviour.
|
|
|
|
|
That was my first thought and no it is not. My second was to chase down any ref/value issues when passing an object.
Also by checking the values at both ends of the binding after the ReadValue() I am know the binding is still valid.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
bizarre situation indeed...
I know I'm pointing out the obvious here, but anyways you never know where you could have overlooked something.
Are you certain the NotifyPropertyChanged event is called with the correct Property name perhaps there is a casing error?
public int MyProp
{
get{return _myProp;}
set
{
_myProp = MyProp value;
NotifyPropertyChanged("MyProp");
NotifyPropertyChanged("myProp");
}
}
#region INotifyPropertyChanged Members
protected void NotifyPropertyChanged(String propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (null != handler)
handler(this, new PropertyChangedEventArgs(propertyName));
}
#endregion
|
|
|
|
|
I did check before I exclaimed, of course it is spelt correctly. Besides the bloody thing is auto generated code so I would have fallen of the chair if it was wrong.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I am currently researching licensing systems for applications developed using C# targeting the .NET Framework v3.5. Are there any licensing systems that are 100% free? I don't plan on selling software on a large scale or anything like that and I'm not terribly worried about piracy. I'm simply looking to sell software (one particular application at the moment) to a small scale audience, priced around only about $15-$20. So I'm thinking that if there are no free systems I will just write my own. Because I'm not worried too much about piracy I figured writing my own may suffice. But I thought I'd ask in order to make it a little easier.
All I am really interested in is some algorithm to see if a user's key matches a "template" so to speak. If you could provide some links to related materials I can read them on my own. I am just having trouble finding anything that is useful for what I want to do.
Thanks,
Matt U.
|
|
|
|
|
There are a few articles right here on CP about that.
Search for them.
|
|
|
|
|
What licensing systems are concerned, my experience is that systems that cost nothing are worth as much.
I just had a look at a few of the solutions here on CP, and the ones I looked at are not to be recommended. Nuff said.
|
|
|
|
|
Hi,
In my propertygrid, I want to add a textbox with a arrow at the right side which can show all previous values.
is it possible ?
thanks for your help
|
|
|
|
|
Probably, you can add vscrollbar control to your application and you can display the previous values from a stored data file like .xml or .txt. You can implement this using serialization.
|
|
|
|
|
look for UITypeEditor class in MSDN. You can do it
|
|
|
|
|
|
maybe there is a class or structure that deals with dates, and times, and time spans, and the like. If you want me to read the documentation to you, open your book and we will start at the letter 'A'.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Luc Pattyn wrote: If you want me to read the documentation to you
Better send CODEZ that reads the documentation
Just an irritated, ranting son of ... an IT guy.
At your trolling services
|
|
|
|
|
thanx 4 rply
i dnt want u to read the documentation.
i just want to calulate time betwen two dates.
plz help me in this context.
thanx
|
|
|
|
|
I think he is suggesting (remarkably politely, it must be said) that perhaps a little, tiny, teeny, intsy-bitsy little touch of research on your part would find the answer to this rather easily.
Perhaps if there was something on a large computer network, that you could ask to look for things? If it took English questions, and gave you a list of documents which would answer the question? If it prioritised those documents into best match, less good match, and so on for you? Wouldn't that be handy!
Now, what could there be, that does that...
It's a puzzler, to be sure...
Hang on! What's that you say Sooty? There is? It's name has even become the verb to use it? What's it called then, Sooty? GOOGLE
By the way, you will probably get less abuse in the future if you:
1) Realize your keyboard has vowels.
2) Start using them.
TxtSpk is frowned upon here, as computing tends to require precision, and accuracy.
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
OriginalGriff wrote: remarkably politely, it must be said
My right honorable friend, what are you suggesting here?
Keeping calm and polite, while offering a suggestion and a lot of keywords, that is me, and not remarkable.
I can't help it I'm no JSOP, CG, POH, or Led Mike.
For the interested reader who may get confused by the original question being removed (which is in violation with the forum guidelines), here it is once more:
Hi
how can i calculate minutes from 5/5/2010 7:00 PM to 6/1/2010 8:00 AM in C# ?
basically i have to find out the time difference in minutes between two transactions from the same IP Address.
Thanx
I aim to please.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Hi Luc!
I meant no slight; you are as always, polite and calm, despite considerable provocation at times. There are however, others (myself included on occasion ) who are not so considerate: the OP is lucky he was found by you and not them! It is remarkable only in that none of the usual suspects have hurled abuse at the OP for being quite so lazy.
I can recall myself instructing one gentleman to RTFM in 300 point red letters...
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
Yes, the usual suspects seem to wear down. And so do a lot of others.
I'm not sure what is going on, the Q&A question rate is low, and forum activity is low too. Is the CP audience shrinking? Did entire continents suddenly see the light and run out of questions? is it the Guatemala Syndrome? what do you think?
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
I believe it may be that the entire planetary supply of stupidity is being invested in the World Cup...
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
So this will become a very boring place?
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Only for another five weeks - and anyway, we may get sensible questions for a change!
(But I wouldn't hold my breath waiting for that one...)
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
there always are a couple of those, however they tend to be few and far apart; so we should see them getting closer together? Let's wait and see.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|