Skip to content
  • Windows 10 UWP is awesome

    The Lounge csharp wpf winforms game-dev testing
    10
    0 Votes
    10 Posts
    0 Views
    L
    I have .Net Framework 2.x ddls that I call from UWP during development that pull in any "whole system files" used by the app (versus any content / resources). Those few statements tying it in / excluding it are handled with compiler directives (development versus final distribution). It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food
  • 0 Votes
    5 Posts
    0 Views
    B
    I need verification code on WhatsApp
  • 0 Votes
    10 Posts
    0 Views
    L
    Yup, also different URL; "view=netframework-4.8&viewFallbackFrom=net-5.0" I hadn't noticed :D I'm going shopping for new eyeballs then :cool: Bastard Programmer from Hell :suss: "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
  • 0 Votes
    8 Posts
    0 Views
    M
    Very impressive The less you need, the more you have. Even a blind squirrel gets a nut...occasionally. JaxCoder.com
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    B
    you can keep things in your app running, whether or not your app is the current active application, by using a Timer, or having a some form of 'while loop. advice : don't use a 'while loop. 2) when your app is not active ... it can still get messages by using a GlobalKeyBoardHook it defines, and registers, that intercepts some keyboard combination of keys. warning: you override some other app's keyboard hooks, and you are in trouble. I believe what you probably need to use is the SystemTray app model, and CP has several articles that will show you how to use that: [^] However, if what you want is some kind of stealth monitoring app: you won't get help with that here. «The mind is not a vessel to be filled but a fire to be kindled» Plutarch
  • 0 Votes
    4 Posts
    0 Views
    B
    Hi, I don't remember what the state/quirks of WinForms was in 2012, when you wrote that tip, but, it is possible to toggle the visibility of the ControlBox at run-time by setting its boolean value. Of course, yes, hide the ControlBox, and the max/min buttons and the icon/menu, vanish. However, I'd find it quite strange to have those control widgets disappearing, reappearing :) «The mind is not a vessel to be filled but a fire to be kindled» Plutarch
  • Replace text with image in DataGridView

    Windows Forms csharp winforms tutorial
    4
    0 Votes
    4 Posts
    5 Views
    M
    Thanks. It is working now. I first created an image column. DataGridViewImageColumn iconColumn = new DataGridViewImageColumn(); iconColumn.HeaderText = "Pass/Fail"; iconColumn.Width = 60; iconColumn.HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter; iconColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; iconColumn.SortMode = DataGridViewColumnSortMode.NotSortable; CalGrid.Columns.Insert(2, iconColumn); I then used the CellFormatting event to set the correct image. private void CalGrid_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { if (CalGrid[3,e.RowIndex].Value.ToString() == "PASS") { e.Value = imageList1.Images[0]; } else { e.Value = imageList1.Images[1]; } }
  • RGB image to CMYK gdi+

    C / C++ / MFC c++ dotnet winforms graphics adobe
    3
    0 Votes
    3 Posts
    0 Views
    R
    Whatever works is the right method. There's no "not". Unless all one does is repost code they dug up from elsewhere and hasn't the foggiest idea what they're doing THAT for. :thumbsdown:
  • 0 Votes
    9 Posts
    5 Views
    L
    Has this at the end worked? I think not, except adapting ported forms with implementing special logic manually.
  • Project timescale estimates

    The Lounge csharp winforms
    20
    0 Votes
    20 Posts
    0 Views
    K
    This reminds me of one of my college professors. He had a proof about how every integer is interesting. Something like: "0 is interesting. Add it to any number, you get that number. Multiply by it, you get 0." "1 is interesting because..." "2 is interesting because...." "The first number you find that's not interesting -- well, not being interesting would make it very interesting!"
  • Handling Volume and Mixing as a DJ

    C# csharp winforms
    3
    0 Votes
    3 Posts
    0 Views
    F
    Thank you Gerry. Creating a new file, temporary, is not directly an issue, it is not a goal on itself. What I want to do is, when one audio file is playing using the output, I would like to pre-listen to another one for instance in the headphones, just like DJ's do. I wonder if I should give NAudio a try.
  • 0 Votes
    4 Posts
    0 Views
    G
    lw@zi wrote: lotus notes There was a lengthy period when the Lotus Notes team occupied the #1 spot on my "List of Dev Teams to Be Put Against The Wall When The Revolution Comes". The sad thing is that even though we switched to Microsoft Office and Outlook over four years ago, we still have some IT processes that are Lotus Notes 'applications'. Fortunately I don't need to use them. Software Zen: delete this;
  • 0 Votes
    10 Posts
    6 Views
    Y
    Not really a good idea. If someone prints on a different shade of paper. Or even viewing on the screen and the user has changed their colour settings. Use the formula that you created for the conditional formatting and put it into your select statement. // TODO: Insert something here Top ten reasons why I'm lazy 1.
  • 0 Votes
    2 Posts
    0 Views
    R
    Your WinForms code would be better written as: int count = 0; foreach (Label l in this.Controls.OfType<Label>()) { if (l.BackColor == Color.Red) { count++; } } Or simply: int count = this.Controls.OfType<Label>().Count(l => l.BackColor == Color.Red); Xamarin forms doesn't have a similar concept. You might be able to do something similar by walking the visual tree - eg: the urban canuk, eh: VisualTreeHelper for Xamarin.Forms[^] However, it would almost certainly be better to use MVVM concepts to achieve your goal. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • 0 Votes
    2 Posts
    0 Views
    B
    And that article references a CP article as something they are using to test. Cool. What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???
  • Limitless printing

    C# csharp winforms graphics help
    4
    0 Votes
    4 Posts
    0 Views
    L
    You're confusing "logical" printing and "physical" printing. There is no evidence that the "thermal printer" understands what you're sending it. (thermal printers can have their own "language") You start by sending "one line" / chaeacter to the printer. When that works, you'll have some confidence you're on the right track; otherwise, you're just grasping. It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food
  • 0 Votes
    5 Posts
    0 Views
    pkfoxP
    Check out NPOI [GitHub - dotnetcore/NPOI: A .NET library for reading and writing Microsoft Office binary and OOXML file formats.](https://github.com/dotnetcore/NPOI) I've used it a lot for Excel .xlsx files and it's always got the job done. They give you sample code that cover most common scenarios. "I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
  • 0 Votes
    4 Posts
    0 Views
    L
    There are MS UWP / WPF "toolkits and showcases" that give you a sense for the UI elements. And there are the "master" samples. [Code samples - Windows app development](https://developer.microsoft.com/en-us/windows/samples/) [GitHub - microsoft/Xaml-Controls-Gallery: This app demonstrates the controls available in WinUI and the Fluent Design System.](https://github.com/Microsoft/Xaml-Controls-Gallery) It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food
  • 0 Votes
    2 Posts
    0 Views
    abmvA
    they work for msft don't they.... Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long