Questions tagged [.net-4.8]

For questions specific to the usage and features of version 4.8 of Microsoft's .Net framework.

999 questions
-1
votes
1 answer

Why winform control size can't change according to my input value

i am buling a project with vs2022 winform on .net-framework4.8. when i add a label(any control) control to windows form,i can cange control side by mouse as i like,it working fine.but if i change side by change size directly,then the return size…
-1
votes
1 answer

How do i serialize Json parent and childs

I'm new on serializing Json files and i don't really know how to figure out my problem. My Db structure is made like this: A single Structure is related to multiple Units, and a single Unit to multiple Media, Details and Prices; So i have a…
Raiaki
  • 1
-1
votes
1 answer

Unix Timestamp to HH-mm-ss

I'm converting UnixTimeSpan to Date, but I want to display just the Hours-Minutes-Seconds of it. I'm trying with: Public Shared Function UnixTimeStampToDateTime(ByVal unixTimeStamp As Double) As DateTime Dim dtDateTime As System.DateTime =…
user18130033
-1
votes
1 answer

.NET 5.0 SettingsSerializeAs.Binary obsolete

/// Serialization /// Code 2012.05.23, [...] following Jani Giannoudis' examples /// CodeProject Article "User Settings Applied", /// http://www.codeproject.com/Articles/25829/User-Settings-Applied /// I'm using the…
Stefan Wuebbe
  • 2,109
  • 5
  • 17
  • 28
-1
votes
2 answers

Detect when a child form is closed

I have he following Form: An Initialize Function that is called when the Form1 is created. A button that opens another Form (Form2) What I need is to call Initialize() not only when Form1 is created, but whenever Form2 is closed, since Form2 might…
user2261062
-1
votes
1 answer

Serial Port "SerialPort.GetPortNames" not reading anything

Trying to code up a little serial port communications/control panel in C# with Visual Studio 2022. I'm making it up as a WindowsForm app using .Net Framework 4.8. When launching the code all the other aspects work fine (as far as I can test them…
Tim
  • 1
  • 2
-1
votes
1 answer

How can I change the color of a pixel with coordinates x and y in the image?

enter image description here How can I change the color of a pixel with coordinates x and y in the image? How can I change the color of a pixel with only the coordinates (x, y) of the image I have? (only 1 pixel). private static bool boyalganmi(int…
-1
votes
1 answer

Visual Studio 2019 and ASP.NET project not starting

I have an issue with VS 2019 and any ASP.NET application, they don't want to start. After hitting F5 there is no output in the Output window, Process Memory stops on 13 MB and that's all, no events, nothing. It was working fine and I'm having a…
Carlos28
  • 2,381
  • 3
  • 21
  • 36
-1
votes
2 answers

Project '..\someProject.csproj' targets 'netcoreapp2.2'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.8'

I am trying to build a project with below versions - net48;net5.0 In this project, there is a reference project which also targets the same version. When I try to build the…
-1
votes
1 answer

Can't install .net framework

I'm having a weird problem where when I install the developer pack for the .NET framework, I can't choose to create a project with the .NET framework, I can only create .NET Core projects. .NET website screenshot: That screenshot is the website…
-1
votes
1 answer

Can I get rid of xmlns tags (and maybe also resources) from my all user controls by using style/resource?

I would like to get rid of xmlns tags from every UserControl or Window file. Can I do it by using styles or resources somehow? Many of my user controls look like this:
Kamil
  • 13,363
  • 24
  • 88
  • 183
-1
votes
1 answer

How do I position the Image from the ListView at the left from the column?

Problem: I've got a ListView with an Image in the first column. But the problem is that the Image isn't positioned at the left but weird in the center, so that you can't see the full username. Question: So is there a way to position the image at the…
-1
votes
1 answer

How can I validate all fields when I need to update a record in LinQ C# .Net Framework?

I'm working with C# .NET Framework and I need to know how can I validate all fields that I need to update, for example, I have a table with four fields, so, if the user only have to change a field, how can I update only that field, actually I have…
-1
votes
1 answer

.NET 5 Project not really working with old 3rd Party .NET Framework 2.x/4.x assemblies

I am currently working with a new C# .NET 5 Blazor Project. As we "upgraded" our Application from an .NET 4 Framework (new project using old code) I am currently running into one issue i am not able find any solution. The issue: I wrote code using a…
-1
votes
1 answer

visual studio 2019 can't target framework which allready installed on my pc

i try to target framework which already installed on my pc without success this when creating new simple console project : but when i try to install for example 4.8 framework it says that this framework is already installed Also in the registry, i…
user63898
  • 29,839
  • 85
  • 272
  • 514