Extension to detect when a string get hovered on the document
I'm trying to create a Visual Studio 2022 extension to detect whenever a specific string on a .cpp or .h file get hovered, the project atm have only two files. I have set a breakpoint on InitializeAsync of ImagePackage.cs, when i start debugging the…
Xamarin iOS How to File.ReadAllBytes a file inside /private/var/mobile/Containers/Shared/AppGroup/
string filePath = "/private/var/mobile/Containers/Shared/AppGroup/7E6455EB-2EF9-417E-BC79-71BA25B53853/File Provider Storage/file.pdf" byte[] byteFile = File.ReadAllBytes(filePath); When I run the code above on Xamarin iOS I get an…
Cannot call an aspx file in MVC .NET 4.7.2 Web App from MVC .NET 4.7.2
Hi, I have two MVC projects, MVCWebappDLL project and MVCRegularDLL project. Both in two different solutions. I reference MVCWebappDLL from inside the MVCRegularDLL. I have an .aspx with its .aspx.cs that resides in MVCWebappDLL. In my…
Get property that is not in class C# (Android)
public class DashboardPage : ContentPage { public DashboardPage() { RunObject(new DemoObject { Name = "Text" }); RunObject(new Demo1Object { Name = "Text 1" }); } private void RunObject(BaseObject…
Lifetime validation failed, the token is expired.
Even if the token is new then also it gives me this error.
why the C# pre-build and post-build events are not called if I import a custom target with my own build target in it.
why the C# pre-build and post-build events are not called if I import a custom target with my own build target in it ? I have a C# project file, which I modified by importing my own custom target file. Inside the target, I have defined a…
ImageView not updating in RecyclerView
I have a RecyclerView with the following item layout: <?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"…
In .Net Maui I get the exception Microsoft.UI.Xaml.Controls.Frame.NavigationFailed was unhandled.
I get an exception error. The message states Microsoft.UI.Xaml.Controls.Frame.NavigationFailed was unhandled.
Lifetime validation error. Token is expired
Hello,https://graph.microsoft.com/v1.0/me when i try to call this api from my .net core application. It says "Lifetime validation error. Token is expired" even if the token is new. Need your help
Inserting TextAnnotation in graph c#
I creating simple graph with line as average (sample only), I have a code in HorizontalLineAnnotation (color red line) and TextAnnotation but the problem is that, the TextAnnotation not working properly. Here my code in HorizontalLineAnnotation and…
Identify Mutual Authentication request at LDAPs
Hello All, We have a WPF application built on .Net Framework 4.8. This application acts as an LDAPs client for authentication purposes. The LDAPs server being used has provision for enabling mTLS. When mTLS is enabled, the client application needs to…
Get Results from Task.WhenAll for multiple tasks
Hi Folks, I am trying to get the results back from running multiple tasks. Each task point to a function and returns either true or false. Here is my code: var t1 = new Task(() => { CheckNC(); }) ; var t2 = new Task(() => { CheckNL(); }); var t3…
C# Blazor .NET 8 localstorage deleted on page refresh F5
Hi In Blazor .NET7 I use localstorage to save a JWT for all my users claims etc. Works perfectly. Upgraded to .NET8 the JWT still works, but, if you refresh your browser page (F5) the localstorage is deleted and I get a 401 unauthorized. In .NET7 this…
Datagridview with datatable as a datasource - user edits
I have a winform project in visual studio. I have placed a datagridview on the from. I build a DataTable with data from a database. I then add a new column to the datatable and assign the datatable as the datasource for the datagridview. Run the…
How to get or/and execute context menu verbs knowing path of item
Hello, can you please tell me how to get information about commands from the windows context menu, I need to get all the commands for an element by its path, and if it is possible to run the command (verb) as if you clicked on it in the context menu.
Auto-generated Reference number repeats itself more than twice
Hello, I have been trying to create an automated Reference number that can be used to identify each user but in some aspect, there is a repetition in the number. From my code, the Reference number is supposed to be unique but there are multiple of the…
Number range in MySql
First, I would like to say sorry for my title, because I don't know what is the proper term of my assignment. As you can see the image above, I have a simple GUI Form. My assignment is, If I input a number example 01, 02 or 03, The status display in GUI…
How to create a installer that installs multiple applications c# visual studio 2019
I need to create a single installer that when it runs installs multiple applications/services. These applications/services were created in c#, .NET in visual studio 2019. How do I accomplish this? The Deployment project in visual studio does not appear…
saving changes in a loop in identity franework
I want to save changes to the SQL table in a loop. I have the following code: string[] request={"test1", "test2", "test3"}; TransactionData TTD = new TransactionData(); using ( IdContext = new ProofContext()) …
Adding a calculated property in ObservableCollection<T> inherited class
Hi I fill an ObservableCollection<T> from a data source. I need to add a ‘header’ calculated string property that concats several properties in the observable collection. How can I achieve this? Thanks Regards