|
You need a better title for the subject.
For a moment, I thought about all those who claim to have been abducted by aliens and poked about with anal probes aboard alien spaceships,
|
|
|
|
|
foo-foo dust. Powers the universe.
>64
Some days the dragon wins. Suck it up.
|
|
|
|
|
For those looking for an alternative to the standard Winforms numeric UpDown Control, I made a Custom Flat-style Numeric UpDown Control that functions largely the same but does not have those pesky tiny buttons.
The real reason for developing this however was that in some of our (complicated) forms in .NET 6 the standard numeric UpDown Control behaved very badly when changing the font size of the form and sometimes completely disappeared
It can be downloaded here: GitHub - A Custom Numeric UpDown Control[^]
|
|
|
|
|
An article or tip is probably a better place to put this?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Exactly! but it still needs some work I think, so when it's finished (and I have some time left) it will become a tip 
|
|
|
|
|
What I would want in a NumericUpDown is the ability to set a factor for the up and down buttons rather than adding/subtracting a value, multiply/divide by the factor.
So, for instance, I can set it to double/halve the value.
On the other hand, I have only one place I want that, so it's not a high priority for me.
|
|
|
|
|
With this custom control you could do just that.
|
|
|
|
|
Should not be too difficult to implement, just clone the GitHub repo and add a new property named Factor, if it has a value use it in the AddValue() method 
modified 17-Jan-23 12:12pm.
|
|
|
|
|
A factor? Or maybe increment/decrement the digit on which the cursor is?
|
|
|
|
|
|
I've started using semi-opaque backgrounds (UWP) on my app's "tool boxes" (user controls). The buttons (with icons) reflect the transparency while the icons remain fully opaque. It actually works (with a border); the visuals behind can be made out (a topo map in this case) so you don't have to scroll or drag things out of the way. Like a HUD. Probably "gained" 25% screen space. A different experience.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Please post an article on this.
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
It sounds complicated but it's just using an "acrylic" Brush (available in UWP) instead of a regular "solid color brush" for the background. The same facility can be added to WPF using the "community tool kit".
Or you can fake it varying the opacity of the background of a control ... though the "acrylic" brush seems to be a bit more "glassy".
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
In your spare time ?
Alt + up/down ... +- by factor #1
Control up/down... +- by factor #2
Then handle Alt + Control and right/left key variations
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
Nice suggestions, but my problem is where to find the time, we are in the midst of a very time consuming upgrade from .NET 4.8 to .NET 6, and so far it hasn't exactly been a smooth ride (due the complex nature of our main application).
|
|
|
|
|
Triple echo from a hovercraft? (10)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
HELICOPTER - a craft that hovers. Anag: TRIPLE ECHO
I work in communications with firefighting aircraft. Certain fixed-wing pilots refer to a heli as "50,000 components flying in close formation".
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
You are up tomorrow!
When I had my first helicopter lesson, the instructor started off with "Right, let's turn some money into noise!"
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Have you got a licence Paul ?
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
No, I realized how expensive and time-consuming a hobby it is, and stopped before I took the final test.
It's fun though! If you haven't tried it, check with your local airport - most have a small flight school that'll do a one-hour introductory lesson for the price of a good meal out for two. Don't blame me if you get addicted though!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I tried that some years ago on fixed wing aircraft. But when I calculated how much it would code to get my licence I decided to feed the family instead.
|
|
|
|
|
Whoever said "the best things in life are free" was talking out his a$$ ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
No chance of me getting addicted, despite the fact my background is Aircraft engineering ( Concorde et al ) I don't like flying unless there is no alternative
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
I dedicate this message to "Stooge" Moe Howard, pie-thrower extrordinaire: [^]
fyi: I use VS/64.17.4.4 now. Couldn't live without it, and ReSharper. I am programming only in WinForms.
I speak of what I experience with VS in the last few years that, now, creates the current visual "pies in the face." I speak of both now, when I have visual impairment (awaiting surgical correction), and have to use Windows' "High Contrast" mode ... and, then, when I had no visual impairment.
1) background check: the first versions of VS used SilverLight for the IDE/editor; there were all kinds of visual glitches. When I finally started using a 4k screen notebook, there were, and still are, problems with screen display/scaling; good luck predicting how your WinForm will appear on the sceeen; good luck getting rid of the nag notification about scaling that won;t go away which suggests a remedy that does not work.
Anyway, over the years, I developed a tolerance for what I call the "psychedelic light show" aspects of using VS.
The last several VS updates have made things worse: I often cannot edit something without scrolling the something "higher" because of pop-ups that won't get out of the way. The frequency of obnoxious pop-ups has gone up !
I understand if your response is: get your eyes fixed; get a bigger screen, etc.
Believe it, or not, I recognize that VS, like PhotoShop, has become a vast aggregate of functionality built up of accretion of new facilities. And, imho, VS is not the cutting edge of MS dev initiatives ... that goes to web-centric, cross-platform ... Maui, Blazor, etc.
And, perhaps, WinForms is the poster-child of yesterday ? I blame ex-MS-executive Whatshisname for killing off SilverLight, the mess made with WPF's deprecation, and the whole diversion of MS dev resources to the "Metro" and WinRT fiascoes.
So, the top predator now digests the carcasses of Mono and Xamarin ... and, Maui is the "next big thing"
cheers, Bill
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|