|
|
Also, I should mention that you can place a WPF control in a Windows Form application, but you then require .Net 3.0 or greater on the computer the application gets deployed to (normally, you'd only require .Net 2.0 or greater for Windows Form applications).
|
|
|
|
|
It's not worth the complexity of adding the WPF control to a winforms app. It's much simpler just to create the custom button object.
.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
|
|
|
|
|
I have to agree with Davey...the simple solution is to use the MouseDown.
Start a Timer on MouseDown and every tic of the timer, scroll down one.
On MouseUp, stop the Timer. That's really a pretty simple solution.
|
|
|
|
|
|
Thanks guys, Issue Solved
|
|
|
|
|
Hi Gurus,
I need to identify if a network interface card (specifically ethernet) is physical or non-physical?
I use the "NetworkInterface" class to enumerate the network cards. However, in my system there is one LAN adapter that is present and is not physical. This doesnt show up as a virtual adapter also.
Is there any API in .NET which can help to identify if a device is actually present in the machine or not???
Thanks in advance.
Sunil
|
|
|
|
|
I assume you're talking about an adapter in a virtual machine.
I found a utility on the net (with C# source code) that thoroughly examined the WMI database., but I can't remember where or what the name is. If I were you, I would google for "c# wmi" and see what kind of hits I get back. You could then use that utility to explore the networking stuff.
.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
|
|
|
|
|
Was this the one? WMI Interface for .NET[^]
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.
|
|
|
|
|
Hi John,
Yes the WMI use in .NET has some associated problems.
Is there any other alternative???
Sunil
|
|
|
|
|
Hi John,
I had initially used WMI (system.Management in .net for WMI). But this is not an option because I do not want to use WMI because of issues associated with it.
Do you think, that we have any other alternative?
Sunil
|
|
|
|
|
Hi there,
I know there's no RowDataBound event for the WinForms DataGridView. But there is CellFormatting event in WinForms DataGridView. So Cellformatting event is very very slow.
Is there any solutions like RowDataBound event in WinForms DataGridView (Other then Cellformatting) ?
Thanks for all.
|
|
|
|
|
Off the top of my head I do not know of any events like DataRowBound for the WinForms DataGridView.
However, if you were to tell us what it is that you are trying to do, someone might be able to suggest a methodology.
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.
|
|
|
|
|
For example;
a cell value is 0 or 1 (its coming database)
If the value is "0" grid should be write "yes" (it doesnt see 0)
If the value is "1" grid should be write "no" (it doesnt see 1)
I hope i was explained it.
Thanks.
|
|
|
|
|
If I was doing that I would handle the CellFormatting event, as you mentioned in your original post.
Sorry not to be able to offer better assistance but perhaps someone else will.
Good luck!
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.
|
|
|
|
|
If I was doing that I would do it in the datasource and not the data grid. You are not changing the formatting but the content of the cell (I know you don't like the event but it is the one most of us use).
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Pls is it possible to use ip cams in windows apps.
if yes how do i do it.
thanks
|
|
|
|
|
|
|
Oh come on!!! How could that get downvoted!! It's "We Built this City on Rock and Roll" complete with the Builder pattern lol
Thank you. I'm here all week hehehe
"I need build Skynet. Plz send code"
|
|
|
|
|
Because it's retarded.
.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
|
|
|
|
|
It won't compile. You have syntax errors in CityBuilder (and no, I didn't downvote you - I got the joke).
"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
|
|
|
|
|
...something must have happened when I posted that lost the CityBuilder implementation
"I need build Skynet. Plz send code"
|
|
|
|
|
I also didn't univote you - but this belongs in the Lounge, not the programming questions forums.
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
lol good call.
"I need build Skynet. Plz send code"
|
|
|
|