How can I format and round the DateTime.Now to the nearest time on the pc time up or down ?
public void Test() { var datetime = DateTime.Now; var res = RoundUp(datetime, TimeSpan.FromMinutes(5)); } DateTime RoundUp(DateTime dt, TimeSpan d) { return new DateTime((dt.Ticks +…
Developer technologies | Windows Forms
Developer technologies | Windows Presentation Foundation
Developer technologies | C#
Validate eol of each line of the text file
Hi, I used the way below to validate the eol of each line. How to ensure that I have the validation (by it) against each line of the text file?
Developer technologies | C#
How can convert decimal value into time format as its
How can change to decimal values in to time format as it is without any change in values declare @intime decimal (10,2) = 7.50 declare @intime1 decimal (10,2) = 17.50 declare @breakhrs decimal (10,2) = .45 declare @breakhrs decimal (10,2) = 1.00 …
Developer technologies | Transact-SQL
Visual |Studio 15.9.75 not updating to version 15.9.76
I'm trying to update visual studio from 15.9.76 to 15.9.76 using the patch from microsoft catalogue, it installs correctly but shows the old version.
Developer technologies | Visual Studio | Setup
How does MFC option display the file loader function
Question 1 How does MFC option display the file loader function Question 2 Which class displays the file loader function Question 3 Is the file load function OnFileOpen
Developer technologies | Visual Studio | Setup
combability of Windows 12 with Microsoft Visual C++ 2022 Redistributable (x64) - 14.30.30708
IS Microsoft Visual C++ 2022 Redistributable (x64) - 14.30.30708 compatible with Windows 12?
Developer technologies | C++
Add a custom command into visual studio solution explorer context menu with extensibility framework
Need example to add a command to solution explorer context menu with new out-process model.
Developer technologies | Visual Studio | Extensions
KB5066835 update causing IIS Service to not work
Recently my local hosted IIS services is not running after the new update. My visual studio projects also can't be run as well. I have to delete the new update in order to run my projects and local hosted services again. May I know what is the problem?
Developer technologies | ASP.NET | Other
Can not make a Entity code-first migration at designtime
I would like to run add-migration at design-time on a simple C# application. Model: [Table("Feature")] public class Feature { public int Id { get; set; } public string? Priceclass { get; set; } public decimal…
Developer technologies | C#
Private app stuck at "Waiting to install" on MS Intune. Happening on newly enrolled android tablet devices. Updates fine on devices where it was previously installed. Why is this happening?
Private app stuck at "Waiting to install" on MS Intune. Happening on newly enrolled android tablet devices. The app updates fine on devices where it was previously installed. Why is this happening? Also got this error when it finally changed…
Developer technologies | XAML
Remove item from list view
I'm able to get my code to execute the OnDeleteCommand but I can get the correct code to remove the line I think the one issue is FilterList is readonly but is only way I can get the Func<FilterList, bool> code to work FYI The SaveOK code is a…
Developer technologies | .NET | .NET MAUI
Error in VS Designer in c#
Call is ambiguous between the following methods or properties Form1.button1_Click(object,Eventargs) and Form1.button1_Click(object,Eventargs)
Developer technologies | Visual Studio | Setup
Learning and integrating AI with .NET
Hi, I'm a junior back-end developer in .NET. Nowadays I wanted to learn and integrate AI to my project, but I'm confused. Should I learn phyton and integrate AIs that were written with phyton, or start using ML.NET? I want my product or project to be…
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | .NET Machine Learning
How to get web browser's height in Blazor Server without JavaScript usage?
I wonder whether or not ASP.NET Core SDK for Blazor Server has a method or property that returns height of web browser unless JavaScript is used. To illustrate: @code { uint GetBrowserHeight() { // assume that Browser is a class in .NET,…
Developer technologies | ASP.NET | ASP.NET Core
Developer Tenant blocked (AADSTS5000225) – Request new sandbox or unlink old tenant
Hello, my previous Microsoft 365 Developer Program tenant has been deactivated and shows error AADSTS5000225 when signing in. The “Set up E5 Developer Subscription” button no longer appears in my dashboard. Could you please unlink or reset my old tenant…
Developer technologies | VB
Build and run Maui app from dotnet cli on mac
I have dotnet 10 installed on my mac. Running dotnet --version yields this: 10.0.100-rc.1.25451.107 I have also installed the sdk, but when I run dotnet build -t:Run -f net10.0-ios I get this error: MyMauiApp net10.0-ios failed with 1 error(s) (0.2s) …
Developer technologies | .NET | .NET MAUI
How do I use an API from a Blazor client-side application??
A few months ago, I started a new ASP.NET Core project, using .NET 9, to rewrite an old WebForms app. I have used Minimal APIs in other projects, with success, so I thought I would use a Minimal API project in this Visual Studio solution. I wanted to use…
Developer technologies | ASP.NET | ASP.NET Core
How to add a proper customxml to a powerpoint presentation
Hey guys, with the 1.7 version of the OfficeJS PowerPoint-API the support for customxmls has finally been introduced. If we now use the new method to add a customxml through OfficeJS and try to read it back afterwards everything works perfectly fine.…
Developer technologies | C#
My Visual Studio monthly rental never opens.
Why do i always have to pay to get VB to run. I have a monthly subscription.
Developer technologies | Visual Studio | Other
Update SharePoint multi choice field programmatically
Need help with updating a multi-choice field in a SharePoint List using VBA. Key points: I'm using an ADODB.connection object to update a SharePoint list. I am successful opening the connection, building the necessary SQL Update command and running…