Content
Backspace trapped possibly due to alignment or Code bug
Hi below is the code snippet which i have asked previously from a respected member @KOZ6.0 . protected override void OnCreateControl() { base.OnCreateControl(); foreach (DataGridViewColumn column in Columns) …
Why it asks me to remove the custom control
Dear All, I created a set of custom controls for adding to a form. I found except for the "radioButton" (XradioButton), the other customs controls are normal. When I dragged the XradioButton to a form, it showed "Failed to load the toolbox…
How to fix AppWindow.TitleBar.SetDragRectangles not working in Windows App SDK 1.4.230822000?
As shown in the image, I wrote these codes, which contain AppWindow.TitleBar.SetDragRectangles, and I'm sure that this code is working correctly, but these codes are not doing what they are supposed to do. Why is this? I would like an answer from…
Hololens 2 UWP C# App: Issues with Front-Facing Camera at Higher Resolutions (2272x1278) and NV12
I am developing a UWP C# App for the Hololens2. I am trying to access the front facing camera via MediaCapture and MediaFrameReader. So far all is working fine as long as I stick to the resolution of 896x504. As soon as I try to set the resolution to…

Edit style textbox
Hello static bool isEditModeEnabled = false; private static void Txb1_KeyDown(object sender, KeyEventArgs e) { var txb = (TextBox)sender; if (e.Control && e.KeyCode == Keys.R) …
Is the service implementation approach I use according to the MVVM pattern appropriate?
Hello In my project where I apply the MVVM pattern, I use the services in the App constructor method by injecting the services I wrote with the Microsoft.Extensions package. One of them, in its simplest form, is a message display class. I have a class…
Should I resize the canvas
Dear All, On a WindowsFormControlLibrary project, when I add a UserControl, a canvas is shown. After adding a button, should I resize the canvas? Which of the following is right? Adding a button on the canvas (canvas not resized) Resizing the canvas …
Reading text from IInputStream
I have an IInputStream Interface (Windows.Storage.Streams) object. It has text. That is all I know. I just want to read the text. I do not see how to determine the length of the text. It is not being read asynchronously therefore the length should be…

Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: NoSuchMember when trying to call class instance method in Release
Hello, I am writing a C# .NET 7 macOS app, and I'm trying to call a class instance method from another class that had the instance passed to its constructor. I can call one method just fine, but the other method only works in Debug, not in…
How to remove classes from multiple projects simultaneously?
I have a Windows Forms App(.NET Framework) which consists over 50 existing projects(all of them are Windows Forms App(.NET Framework)). All of them have common classes added as a link from local server. I need to remove all the linked classes at once. Is…
How to fill a Form.RTF with a Controls.RTF
I need to fill a document RTF (System.Windows.Forms.RichtextBox) from a Richtextbox (System.Windows.Control.RichTextbox). This because for printing. Actually I've done a class for printing RTF (Forms) with texts and images but I don't know how to print a…
winui 3 FindAncestor
Hello: In Wpf , The below code in a page/usercontrol will get the property value from MainWindow Datacontext. <TextBlock Text="{Binding DataContext.Arr[2],RelativeSource={RelativeSource Mode=FindAncestor,…

.NET 6 Core Web App Returns web page not found
I am copying over from Stack: I have searched around here and other places to figure out the issue, but I can't find a good solution. I created a new .NET Core Web App targeting .NET6. I created the project without authentication and without Docker…
System.ArgumentException: Value does not fall within the expected range.
I am making an Excel Addin in C# in Visual Studio. I have already made another simpler Addin and installed it with no problem. But on this one I am getting the following error: “Name: ExcelAddin_RSMeansV.2 From: file:///C:/Users/jstebbins/Desktop/Excel…
warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project.
I get the following warnings in my iOS project. What should I change in my project? /usr/local/share/dotnet/packs/Microsoft.Maui.Sdk/8.0.0-rc.2.9511/Sdk/BundledVersions.targets(80,5) : warning MA002: Starting with .NET 8, setting …
How Can i make a MaterialdesignFloatingHintTextBox's Hint to always float at the top in WPF C#
How can i make a materialdesignFloatingHintTextBox's hint property always float at the top of the textbox regardless of where the textbox is empty or not. Here is my Project with no Code Behind XAML; <Window…
Bind View Model Property To User Control Dependency Property
Hello Guys! I am fairly new to the WPF eco system, but i already made some functioning dependency properties inside user controls, which can be bound successfully, and which updates, when the bound property inside the view model changes. For now i just…

How to fix update problem in concurrent request in ASP.NET Web API 2
I am working on an ASP.NET Web API 2 project with .NET Framework 4.6.2. When I send two concurrent requests with the same parameters from Postman, only one record is updated in the database, even though there should be two. I have included screenshots of…
'System.MissingMethodException: Method not found: 'System.String Microsoft.SharePoint.Client.Site.get_Classification()' in csom package
I'm facing method not found exception while accessing the some properties in Microsoft.SharePoint.Client.Site
Rainbow Border effect for Window Frame is missing some colors
i tried to port Windows Terminal Window rainbow border effect from here terminal codes is in c++ and i am working with c# and…