24,361 questions with .NET-related tags

Sort by: Updated
0 answers

How can I open Microsoft Excel in Visual Basic.NET

I am using Visual Studio 2023 for using Visual Basic. I have latest version of Microsoft Office. I want to open Excel using Visual Basic (not VBA). Please tell me how to go about it. It is very important for me.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
3,999 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,482 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,729 questions
asked 2024-06-02T16:30:14.32+00:00
Rajendra Deshpande 0 Reputation points
1 answer One of the answers was accepted by the question author.

How do I store a negative TimeSpan in Entity Framework?

Hi all; I store shifts to events with a TimeSpan as the offset from the start of the event and another TimeSpan as the duration of the shift. The setup shift starts before the event (so everyone see the event as 11:00am - 4:00pm as desired while the…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2024-06-02T02:42:02.63+00:00
David Thielen 2,376 Reputation points
accepted 2024-06-02T16:17:29.5566667+00:00
David Thielen 2,376 Reputation points
0 answers

Unable to parse app package - On clicking on cancel for update.

Hello Team, I had integrated the embed appinstaller, and I had pushed an update for the application. I can able to see this on when the update is available. When I click on the update I'm able to update successfully, But When I click on cancel, I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-06-02T15:23:04.11+00:00
Vaibhav Methuku 80 Reputation points
0 answers

Layout changes after navigation

Hav this app and when it loads up it looks like it should(first pic) fills up all way.. but if I go to one of the underlaying pages and then back it looks like the second image... al pages/views have "ios:Page.UseSafeArea="True" set in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-06-02T15:18:27.14+00:00
Magnus Wallon 0 Reputation points
3 answers One of the answers was accepted by the question author.

ResetPassword in .net core web api

Hi, I'm currently working on a .NET core web API project and writing ResetPassword. The user wrote the email and front-end sent it to my ForgotPassword Endpoint, I checked the database and send the url with email and token in it to the user's email. This…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,254 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,422 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
309 questions
asked 2024-05-31T18:45:26.5333333+00:00
Atilla Rüstəmli 20 Reputation points
accepted 2024-06-02T15:16:13.8566667+00:00
Atilla Rüstəmli 20 Reputation points
3 answers

REST interface, server for GET,PUT,POST,DELETE

Hello, My goal is to control a Rest Server from a WPF C# desktop app. Get, Push, Pop, Delete should be tested. The server does not require extensive logic, only test data. Later, the customer REST server is connected. How can I achieve this? How should I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,254 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,422 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
309 questions
asked 2024-05-23T17:15:44.0466667+00:00
Noah Aas 260 Reputation points
edited a comment 2024-06-02T15:12:58.68+00:00
AgaveJoe 26,256 Reputation points
1 answer

Not seen mac simulator

Hi, I installed vs code, xcode , and open new maui project and run it. It is not running, do i need to config ant simulator , I want mac simulator. Thw error is on missing android simulators & sdk. How is sone? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-28T08:56:44.53+00:00
Dani_S 2,906 Reputation points
commented 2024-06-02T13:55:41.58+00:00
Dani_S 2,906 Reputation points
1 answer

removable drive seen in debbugger although i filter it.

hi, i used this code and i see removable drive in debugger, why? I used mac. DriveInfo[] drives = DriveInfo.GetDrives(); drives = drives.Where(drive=> drive.DriveType != DriveType.Removable && drive.DriveType !=…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-30T11:56:43.41+00:00
Dani_S 2,906 Reputation points
edited a comment 2024-06-02T13:40:51.64+00:00
Dani_S 2,906 Reputation points
0 answers

Publish App Error

I am seeing the following error when I create any .NET Maui app and try to "Reserve a new app name:""An unexpected error occurred when attempting to reserve the app name" This error is occurring repeatedly for different apps, some in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-06-01T20:24:36.23+00:00
Fritz Switzer 261 Reputation points
edited the question 2024-06-02T13:16:59.56+00:00
Fritz Switzer 261 Reputation points
3 answers

How to insert new,update, delete existing record in single row of gridview

I am developing ASP.NET application and i am using gridview in that. Here, i am not using any textbox controls outside of the gridview to save the record. everything i want to maintain in same row of the records. for example, when page load, if any…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,422 questions
asked 2024-05-28T14:36:20.12+00:00
Gani_tpt 1,806 Reputation points
commented 2024-06-02T12:14:35.61+00:00
AgaveJoe 26,256 Reputation points
1 answer

Mac cursor on button

Hi, In window I did this code and is not working on MAC. How do i fix it ? Thanks, Microsoft.Maui.Handlers.ButtonHandler.Mapper.AppendToMapping("Custom", (handler, view) => { #if WINDOWS using Microsoft.UI.Input; using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-30T10:34:02.6266667+00:00
Dani_S 2,906 Reputation points
commented 2024-06-02T10:37:05.5366667+00:00
Dani_S 2,906 Reputation points
0 answers

Search bar corrupted in MAC

Hi, In windos it works but in MAC is corrupted, why? <HorizontalStackLayout Grid.Row="1" Grid.Column="0" Margin="10,10,0,5" HorizontalOptions="Start"> <SearchBar x:Name="searchBar"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-06-02T09:47:40.4066667+00:00
Dani_S 2,906 Reputation points
1 answer

Helper folders in MAC

Hi, I need for my app in mac some helpers folders to : 1.for log file 2.for dwnload files .... where to put them ? I nee absoulth path for them to read from code of mac app. Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-30T11:52:15.06+00:00
Dani_S 2,906 Reputation points
commented 2024-06-02T08:38:52.9666667+00:00
Dani_S 2,906 Reputation points
1 answer

Save xml log file in MAC

Hi, In windows I keep in c drive in MAC where i save my log file? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-29T10:31:16.86+00:00
Dani_S 2,906 Reputation points
edited a comment 2024-06-02T07:29:08.4266667+00:00
Dani_S 2,906 Reputation points
1 answer One of the answers was accepted by the question author.

Running app on mac - menu corrupted

Hi, Please run the app from: https://github.com/dotnet/maui/issues/22719 the menu corrpted when switching between pages and when maximize the page. Thank in advance,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-29T15:02:22.02+00:00
Dani_S 2,906 Reputation points
accepted 2024-06-02T07:06:58.92+00:00
Dani_S 2,906 Reputation points
0 answers

Register close button in mac

Hi, In window i did, how to do it in mac ? builder .UseMauiApp<App>() .ConfigureLifecycleEvents(events => { #if WINDOWS events.AddWindows(windowsLifecycleBuilder…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-06-02T07:04:04.6633333+00:00
Dani_S 2,906 Reputation points
2 answers

Prepare code to fetch data from mock server does not seem to work

Hi! I am working through this Exercise: https://learn.microsoft.com/en-us/training/modules/build-web-api-minimal-spa/5-exercise-create-api. After starting the Mock Server (I can see in the Browser that it is running) The Website has the error: Unexpected…

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
11 questions
asked 2024-05-28T19:02:39.45+00:00
Frank Geisler 16 Reputation points MVP
edited an answer 2024-06-02T01:25:02.5733333+00:00
Pradeep M 805 Reputation points Microsoft Vendor
0 answers

Since updating to VS 17.10.1 deployment to ios device never completes

Since updating to VS 17.10.1 when I try to deploy to ios devices (iPhone, iPad) the deployment never completes. I have tried with 4 projects that previously were successfully deployed to iPhone & iPad devices.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-06-02T01:00:20.12+00:00
Christopher Jahn 0 Reputation points
0 answers

Unable to create a DbContext' Error when Using EF Core in .NET 8 ClassLibrary Project

Hello everyone, I've developed a ClassLibrary project using .NET 8 and C#, and I've utilized EF Core 8 in it. I've defined my own models and context within it. However, when I attempt to use the add-migration command, I encounter this error: "Unable…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,482 questions
asked 2024-06-01T01:35:11.9766667+00:00
Kamyab Faghih 0 Reputation points
commented 2024-06-01T20:48:52.3366667+00:00
AgaveJoe 26,256 Reputation points
5 answers

Why does Blazor server app takes away memory while being inactive?

We developed a Blazor server app and is going through testing phase. Our clients have some concern. What we notice is that before the app is launched memory is 4784 K, one the app is launched and at the end of rendering the login page it is already over…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,435 questions
asked 2023-02-07T13:44:18.7166667+00:00
Balu Raju 81 Reputation points
commented 2024-06-01T20:18:18.9233333+00:00
Bruce (SqlWork.com) 58,356 Reputation points