|
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).
|
|
|
|
|
The message was removed before the usual suspects got to it (and I'm not sure if I'm included in there or not...)
"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
|
|
|
|
|
Tuneless whistle...
Griff looks round at the room, trying to appear innocent.
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
that is exactly why I copied it as soon as I discovered it was gone, see here[^]. There you go, now practice your usual fu.
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).
|
|
|
|
|
Nah - you gave a sensible answer to it which, unfortunately, somebody else went and took all the fun out of.
"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
|
|
|
|
|
You are aware of the DateTime struct? Right?
Use it. You have two dates. Subtract from the most recent the other one witch will result in a
timespan(I think) and use the ToSeconds()*60 or ToTotalMiliseconds()*...
On a separte note if you read the documentation you'll be able to achive the computation of time between two dates.
Just an irritated, ranting son of ... an IT guy.
At your trolling services
|
|
|
|
|
|
You took all the fun out of it by giving the answer away.
Seriously, the OP has learned nothing now. Luc was politely, and correctly, trying to point out that the information was blatantly, glaringly obvious to anyone with even a hint of .NET knowledge or the ability to use Google, and, IMO, the OP was wasting everyone's time.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Maybe yours or the OPs(fun).
But I saved my nerves and your time.
Just an irritated, ranting son of ... an IT guy.
At your trolling services
|
|
|
|
|
You enjoy one voting
Just an irritated, ranting son of ... an IT guy.
At your trolling services
|
|
|
|
|
Yes, I gave you a one. In my opinion it was a bad answer because you were encouraging the idiot to not do basic, simple research and rather rely on someone else to do their work.
If you want to be an ass, go right ahead, knock yourself out, have fun.
I know the language. I've read a book. - _Madmatt
|
|
|
|