Visual Studio Designer Copy With Name
I created a new label. It came with "label1" name. I changed the name "label1" to "myLabel1". I'm copying this: "myLabel1" When I paste it comes as: "label1" It wasn't like this before. When I paste must…
How do I add a CAPTCHA to a web site written with ASP.NET/VB
A bot seems to be using my web site to send out emails via AmazonSES. I want to add a CAPTCHA to it to prevent this. I came across https://stackoverflow.com/questions/71515717/how-to-add-captcha-in-asp-net-project which appears to be what I want, but…
Not able to add a View in Visual Studio 2022 .net 6
I'm trying to add View in .net and getting below error popup. Kindly assist me to resolve this. I'm using .net 6 and visual studio 2022 community version.
Location tracking while app is in suspended state
Hi, I am developing a location tracking app for drivers. We need to track locations in particular intervals and send it to server. We are able to track locations when app is active or in background. How can we get locations for both android & iOS…
Blazor web app net 8 rendermode auto with API
I am creating a web application with blazor web app and net 8 with rendermode Auto. I have an api created in .net hosted on another server different from where the blazor web application will go. The api needs a token in each call, I am having problems…
How can I access SharePoint files via a C# web api that uses no user authentication?
I have followed numerous guides on how to access SharePoint via C# and no matter what I do I end up with a "401 Unauthorized response:" I am out o fideas. Anybody able to help? Would prefer working code examples. using…
converting Xamarin to .net maui.
Now that I completed coding my app using Xamarin, It appears that I should convert my app to .NET Maui. (due to Xamarin support being E.O.L. ) I found a Microsoft page that suggests adding ".NET upgrade assistant" via the extension but when I…
Touch keyboard changes layout when switching between WPF TextBox controls
Hi, I'm experiencing a strange behaviour in a simple WPF app running on a tablet (Surface Pro 7, Windows 10.0.19043). The UI has several TextBox controls that have InputScope=Number defined. <Window x:Class="SimpleTouchWPF.MainWindow" …
Keyboard overlapping entry control in .NET MAUI - .NET 8 (Android)
Does anyone know how can I implement the soft keyboard on Android .NET MAUI? I tried doing like it's said in the docs and in stack overflow forums, but nothing seemed to work. Whatever I do, my keyboard is overlapping the entries from the bottom of the…
Microsoft.Maui.Essentials packages
I have an razor class library and want to use Microsoft maui SecureStorage. In visual studio , NuGet interface, when select the latest Microsoft.Maui.Essentials packages, get the following…
Using SQL Server Read/Write Image Ever Day With A Table
I've a case that need to save Image in database, than user can search/upload site(DB) to site(DB) ever day from winform. Every image size average 250kb - 350kb, The total usage with image perhaps growth 110GB/year without delete form database. I'll…
connected Device Get Service always return null
I want to connect bluetooth device (JDY-23) for serial communication and my device is connecting and shows id also. But when I tried to get service it always return null. Is there any problem with my code below var adapter =…
How to calculate years from two different date in ASP.NET C#
I have Employee Admission Date which is stored in SQL table. In the ASP.NET click event, i want to calculate and find the years from the Admission Date and Current Date. For example, Admission Date : 10-MAR-2023 Current Date : 28-APR-2024 condition is…
Community toolkit install is not working
I have had community toolkit installed on this project for quite a while and now it gives the following error when I am trying to update: Severity Code Description Project File Line Suppression State Error NU1605 Warning As Error: Detected package…
How to close keyboard in Android ?
In MAUI I am using this code to close android keyboard because every time user has to click on done from keyboard to close keyboard. I wanted a behaviour where if user click on anywhere in screen so it should close the keyboard. This behaviour is by…
Unable to reuse the same layout in a new form
Unable to reuse the same layout in a new form. I've created a CustomControl inherited from ContainerControl and added items in it. However, I'm encountering difficulties when attempting to use it in another form. I want to use the below in a new form. …
Blazor web app net 8 rendermode auto authentication
I am confused on how to add authorization to my components. In the client part I am using AuthenticationStateProvider and in the server part ServerAuthenticationStateProvider. Segum I've been looking at the documentation and other examples. My blazor app…
Fail to upload .Net MAUI application on Apple appstore
We have developed an application in .Net MAUI, we tried this application on Android and iPhone device. It works properly on both platform. Now we are trying to upload this application on Apple AppStore, but fails. We generate ipa file from Visual Studio…
how do I uninstall Microsoft.NETCore.App 6.0.25 and Microsoft Microsoft.WindowsDesktop.App 6.0.25
I have remove .net using Add or Remove program but when I do dotnet --list-runtimes I still see and I am not sure how to uninstall them. Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.25…
how to export function in dll to aot?
I created .net class library to build dll and want to publish native aot and I write function public static MyClass { public static int MyFun(int n) { return n*n; } } I publish it to native aot to win-x64 but in dll there is no function why?