Recommended Posts

1) I would like a "Stick to Desktop" mode like, say, Rainlendar has. I don't want it always on top, but I don't want it in the middle of windows either.

I was bored and looking through this thread and found a request I was thinking about too. I can help you out here. Here is the code to pin the window to the desktop. What it does is set the window's parent to the desktop.

[DllImport("user32.dll", CharSet=CharSet.Auto)]
  public static extern IntPtr FindWindow(
 	 [MarshalAs(UnmanagedType.LPTStr)] string lpClassName,
 	 [MarshalAs(UnmanagedType.LPTStr)] string lpWindowName);

[DllImport("user32.dll")]
  public static extern IntPtr SetParent(
 	 IntPtr hWndChild,      // handle to window
 	 IntPtr hWndNewParent   // new parent window
 	 );

IntPtr hwndParent = FindWindow("ProgMan", null);
SetParent(hwndf,hwndParent);
this.TopMost = false;

Hmm, I got the free form code working, the same one you used, but I can't figure out how to add controls to the form. I use the proper add code but the control just doesn't show up on the form.

By making the window freeform, you are handling all the painting of the controls yourself, rather than having the framework do it. You must treat your window as a canvas rather than a form, drawing everything yourself.

I was bored and looking through this thread and found a request I was thinking about too. I can help you out here. Here is the code to pin the window to the desktop. What it does is set the window's parent to the desktop.

[DllImport("user32.dll", CharSet=CharSet.Auto)]
  public static extern IntPtr FindWindow(
 	 [MarshalAs(UnmanagedType.LPTStr)] string lpClassName,
 	 [MarshalAs(UnmanagedType.LPTStr)] string lpWindowName);

[DllImport("user32.dll")]
  public static extern IntPtr SetParent(
 	 IntPtr hWndChild,      // handle to window
 	 IntPtr hWndNewParent   // new parent window
 	 );

IntPtr hwndParent = FindWindow("ProgMan", null);
SetParent(hwndf,hwndParent);
this.TopMost = false;

I'll try that out and implement it if it works ok.

Thanks for the code, really helpfull (Y)

This program works great except I have a Tablet PC /w docking station, so whenever I change resolutions (ie play a game) while docked (two monitors) the meter jumps to some random location on the screen... Oddly when I try to move it back the battery meter runs away from the cursor, litterally when, i move the cursor near it it jumps away. Also when rotating the screen to tablet mode sometimes the title bar of the properties window appears on the desktop... even when I haven't been looking at the properties at all.

This program works great except I have a Tablet PC /w docking station, so whenever I change resolutions (ie play a game) while docked (two monitors) the meter jumps to some random location on the screen... Oddly when I try to move it back the battery meter runs away from the cursor, litterally when, i move the cursor near it it jumps away. Also when rotating the screen to tablet mode sometimes the title bar of the properties window appears on the desktop... even when I haven't been looking at the properties at all.

It's best to restart the program in such a case. I will look into that mattter.

When and what can we expect in the next release?

Haven't been working on it since the last release because I was busy with other things, so frankly I don't know.

The "stick to desktop" feature will probably added but I'm not sure about other features yet.

  • 2 weeks later...

Hi!

I don't know if this is allready mentioned (and I'm not planning to read 11 pages for that):

The green battery only shows up when reaching 95%, not instantly. Is it a bug or is it to prevent form crashing or... whatever.

p.s.: respect, nice piece of coding

Yes it is possible to take the icon out of the alt-tab menu. Infact the latest build I have here has that fixed already..... though it is not ready yet. That said.... I recently found a job (at Capgemini) and I am making long days. The consequence is that I don't have time to work on the program. So basically I have to move that to the weekends in which I almost never can find the energy to turn on the pc and work on software.

For short, I have no time...... sorry.

That's disappointing to hear. I'd like to at least see the new version you have before you completely give up on the program. Getting the icon out of the alt-tab list would make the program just about perfect for me. I would like to see continued development of this program though, it really is a great program. Thanks for all the work you have put into it up to this point! :cool:

thanks for the great work schmoove. One thing I noticed, my display is 1600X1200 and when i place the monitor all the way to the top right log out and back in again the monitor moves over to the left about 100-200 pixel or so. It won't stay close to the edge where i leave it

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Quantum Error Correction Validated in Nature: Microsoft and Quantinuum Log 800-Fold Improvement Two years after the original press-release announcement, independently peer-reviewed results published in Nature on June 10, 2026, have confirmed that Microsoft and Quantinuum achieved an 800-fold reduction in quantum error rates on real trapped-ion hardware — the largest gap between physical and logical error rates ever independently validated.    What Quantum Error Correction Actually Does — and Why Breaking Even Is Hard https://www.techtimes.com/articles/318329/20260613/quantum-error-correction-validated-nature-microsoft-quantinuum-log-800-fold-improvement.htm   Quantum Computing Wiring Bottleneck Cracked by HKU Silicon Carbide Chip at Qubit Temperature Engineers at the University of Hong Kong have built the first cryogenic control chip that operates at the same temperature as superconducting qubits — 10 millikelvin, or just one-hundredth of a degree above absolute zero — without generating the heat that has forced every competing approach to park its electronics hundreds of meters of cable away. https://www.techtimes.com/articles/318325/20260613/quantum-computing-wiring-bottleneck-cracked-hku-silicon-carbide-chip-qubit-temperature.htm  
    • RevPDF 4.5.0 by Razvan Serea RevPDF is a free, fully offline PDF editor for Windows, macOS, and Linux that lets you edit text and images directly inside PDF files — no internet connection, no account, and no cloud uploads required. Unlike bloated alternatives that demand subscriptions and constant connectivity, RevPDF fits in under 60MB on desktop while delivering a complete editing toolkit: annotate, redact, sign, compress, split, merge, convert, and reorganize pages, all processed locally on your device. Smart font matching ensures edited text blends seamlessly with the original, and multi-language support includes RTL scripts such as Arabic and Hebrew. Where most PDF editors force you to choose between features and simplicity, RevPDF manages both. You can build interactive forms from scratch with text fields, checkboxes, and dropdowns, permanently redact sensitive data before sharing, draw freehand on contracts and diagrams, and add custom watermarks — all without a single file leaving your machine. Edit Text and Images Directly Inside PDFs RevPDF supports true inline PDF editing — not just annotation layers on top of a document, but actual modification of existing text and images within the file. A smart font-matching engine identifies the font used in the original document and applies it automatically when you make edits, so changes blend naturally with the surrounding content. You can reposition elements, resize images, and update text across single pages or entire documents. RevPDF 4.5.0 release notes: This is one of the biggest updates to RevPDF yet. A lot of things people have been asking for are finally here. New Features Auto Redaction Permanently redact sensitive text and areas from your PDFs before sharing. Clean, irreversible, and fully offline. Comments, Links & Bookmarks Add comments for review, insert clickable links, and create bookmarks to jump around long documents without scrolling forever. Find & Replace Search across the whole document and replace text in one go. Long overdue. Split Pages Vertically or Horizontally Split any page down the middle, vertically or horizontally. Perfect for scanned books or double-page spreads. New Drawing Tools More tools for freehand drawing and markup, better for annotations, sketches, and detailed notes. Continuous Scrolling in Editor The editor now scrolls continuously through pages instead of jumping between them. Working through long documents is a lot smoother now. PDF Metadata Editor View and edit the metadata stored inside your PDFs, including title, author, subject, and keywords. Better Font Matching Text edits now blend in more naturally by doing a better job of matching the original font. Tabbed PDF Viewer Open multiple PDFs at once in tabs and switch between them without going back to the home screen. Add Links Insert hyperlinks anywhere in your PDF, to external URLs or to other pages within the document. Share & Print Shortcuts Share or print directly from the editing screen, home screen, and viewer. No extra steps. Minor Updates Paste images directly from clipboard into your PDF New image editing tools for more control over images inside documents Bug Fixes Fixed file saving issues on Windows and Linux Everything still works fully offline. No login, no cloud, no account. Your files stay on your device. Download: RevPDF 4.5.0 | 58.0 MB (Open Source) Links: RevPDF Home Page | Github | Screenshots 1 | 2 Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Interesting. I'm not using a VPN with my phone. I tried though my home internet (Rogers) and my cellular internet (Telus) using their respective DNS servers and both trigger the dialog above.
    • Three days after Anthropic launched Claude Fable 5 as the most capable AI model it had ever released to the public, the United States government ordered it switched off — and now the company is refunding customers who paid to use a product that vanished almost overnight https://www.techtimes.com/articles/318342/20260613/us-government-pulls-anthropics-fable-5-offline-now-come-refunds-vanished-ai.htm  
    • Microsoft fired the team and replaced them with AI and this is what you get.
  • Recent Achievements

    • Week One Done
      agatameier earned a badge
      Week One Done
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
    • Dedicated
      jordanspringer earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      507
    2. 2
      +Edouard
      175
    3. 3
      PsYcHoKiLLa
      139
    4. 4
      ATLien_0
      90
    5. 5
      Steven P.
      76
  • Tell a friend

    Love Neowin? Tell a friend!