Click here to Skip to main content
15,888,087 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
General"Always on top" attribute... Pin
dandy7213-Oct-22 3:19
dandy7213-Oct-22 3:19 
GeneralRe: "Always on top" attribute... Pin
englebart13-Oct-22 3:36
professionalenglebart13-Oct-22 3:36 
GeneralRe: "Always on top" attribute... Pin
Rage13-Oct-22 5:14
professionalRage13-Oct-22 5:14 
GeneralRe: "Always on top" attribute... Pin
Richard MacCutchan13-Oct-22 4:10
mveRichard MacCutchan13-Oct-22 4:10 
GeneralRe: "Always on top" attribute... Pin
dandy7213-Oct-22 8:20
dandy7213-Oct-22 8:20 
GeneralRe: "Always on top" attribute... Pin
Richard MacCutchan13-Oct-22 21:21
mveRichard MacCutchan13-Oct-22 21:21 
GeneralRe: "Always on top" attribute... Pin
dandy7214-Oct-22 2:55
dandy7214-Oct-22 2:55 
GeneralRe: "Always on top" attribute... Pin
Sander Rossel13-Oct-22 4:42
professionalSander Rossel13-Oct-22 4:42 
I've actually created such an application!
It was WinForms and VB.NET I think, probably .NET 4.5 or something.
I may have used that attribute you mention, but I remember it not always working.
For my application is was absolutely necessary that it worked.
First off, this was an application for factory workers using a touch screen (no physical mouse or keyboard).
The app opened full screen and the only way to close it was by closing it with a button (not the default Windows buttons, because I disabled those).
The thing is, they needed an on-screen keyboard.
The Windows on-screen keyboard was too small and had to many options for these simple workers (who would no doubt use it to mess things up), so I rolled out my own.
Since I created a sort of "factory application" framework, which we were going to use for multiple forms and applications for different customers, it all had to be quite generic, as to be reusable.
And "make sure you design your forms so a keyboard could popup at any time" isn't very generic, so the keyboard had to float above all else.
If the keyboard disappeared for whatever reason, you got stuck because there was no way to input anything.
So I made it always on top (not the application, I think, but that specific form).

Things even worked in design-time.
Colleagues could add buttons and "widgets" to a form similar as to how you add columns to a DataGridView.
They'd all look the same and every form had a similar look and feel, even though it was all custom software with very different functionalities.
Probably one of the hardest things I've ever programmed.
After some hacks to get the keyboard always on top it worked wonderfully well.
They're still using it now, 10 years later.

It was fun to make too.
I could spend my free time on it and I got paid double hours.
That way, they kept development in-house and I could still work on my regular projects, while having fun with this and making extra money.
I even worked on it during Christmas.
A new manager called me in after Christmas and started asking about my relation with my parents.
I was like "It's good... Where are you going with this?"
"I see you worked during Christmas."
"Yeah, I spent half a day with family and after that I was just having fun and making money! Laugh | :laugh: "

Ah, good old times.

GeneralRe: "Always on top" attribute... Pin
dandy7213-Oct-22 8:28
dandy7213-Oct-22 8:28 
GeneralRe: "Always on top" attribute... Pin
Sander Rossel13-Oct-22 8:41
professionalSander Rossel13-Oct-22 8:41 
GeneralRe: "Always on top" attribute... Pin
dandy7213-Oct-22 8:53
dandy7213-Oct-22 8:53 
GeneralRe: "Always on top" attribute... Pin
GuyThiebaut13-Oct-22 6:34
professionalGuyThiebaut13-Oct-22 6:34 
GeneralRe: "Always on top" attribute... Pin
dandy7213-Oct-22 8:37
dandy7213-Oct-22 8:37 
GeneralRe: "Always on top" attribute... Pin
trønderen13-Oct-22 11:35
trønderen13-Oct-22 11:35 
GeneralRe: "Always on top" attribute... Pin
David O'Neil13-Oct-22 13:01
professionalDavid O'Neil13-Oct-22 13:01 
GeneralRe: "Always on top" attribute... Pin
MikeCO1014-Oct-22 2:13
MikeCO1014-Oct-22 2:13 
GeneralRe: "Always on top" attribute... Pin
darktrick54414-Oct-22 2:33
darktrick54414-Oct-22 2:33 
GeneralRe: "Always on top" attribute... Pin
Gary Wheeler14-Oct-22 2:34
Gary Wheeler14-Oct-22 2:34 
GeneralRe: "Always on top" attribute... Pin
dandy7214-Oct-22 2:58
dandy7214-Oct-22 2:58 
GeneralRe: "Always on top" attribute... Pin
decaffeinatedMonkey14-Oct-22 2:57
decaffeinatedMonkey14-Oct-22 2:57 
GeneralRe: "Always on top" attribute... Pin
dandy7214-Oct-22 3:14
dandy7214-Oct-22 3:14 
GeneralRe: "Always on top" attribute... Pin
maze314-Oct-22 5:45
professionalmaze314-Oct-22 5:45 
GeneralRe: "Always on top" attribute... Pin
Bruce Patin14-Oct-22 6:58
Bruce Patin14-Oct-22 6:58 
GeneralRe: "Always on top" attribute... Pin
dandy7214-Oct-22 8:02
dandy7214-Oct-22 8:02 
GeneralRe: "Always on top" attribute... Pin
Matthew Barnett14-Oct-22 7:41
Matthew Barnett14-Oct-22 7:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.