For questions specific to the usage and features of version 4.8 of Microsoft's .Net framework.
Questions tagged [.net-4.8]
999 questions
0
votes
1 answer
How to make a vertical icon bar like in Microsoft Teams
C#, .NET Framework 4.8, WinForms:
I want to create a vertical icon bar with the same look & feel as in Microsoft Teams (see picture).
So also hovering, highlighting, short cuts, etc. should be the same.
Which of the standard controls is the best…

askolotl
- 964
- 1
- 13
- 27
0
votes
1 answer
How do I prevent the enumerator from aggregating all items?
I have a simple function that I'm just using as an example here. It's an infinite enumeration!
public static IEnumerable Roll()
{
while (true)
{
yield return new Random().Next(1, 6);
}
}
And I want this function to keep…

Wim ten Brink
- 25,901
- 20
- 83
- 149
0
votes
1 answer
System.IO.Compression.ZipFile.CreateFromDirectory - no folder-structure when opened on Mac
I am creating zips using
System.IO.Compression.ZipFile.CreateFromDirectory(startPath,zipPath).
All is well on Windows afterwards - they unzip just fine. If I unzip these on MacOS (Mojave), the folder-structure is lost.
As an example, I have…

MBaas
- 7,248
- 6
- 44
- 61
0
votes
0 answers
Clickonce installations behaving different with .Net Framework 4.8
I have two applications that are installed through Clickonce. Recently we migrated both to .Net Framework 4.8. Now something odd is happening. One of the applications is asking for the spanish language pack before being installed. The other…

Jorge Y.
- 1,123
- 1
- 9
- 16
0
votes
1 answer
Incorrectly scaled menu checkmarks on High DPI using .Net 4.8/Windows Forms
Using .Net 4.8 and Windows Forms, my toolstrip menus with check marks appear normally at 100%, but when the monitor is set to something larger (e.g. 150%), the menu check mark appears far too small, and located in the upper-left of the menu item.…

pbickford
- 59
- 1
- 14
0
votes
1 answer
Will .Net framework 4.8 support Microsoft enterprise library v6.0?
Since some of our applications are written in .Net framework 2.0 & 4.5, We've plan to migrate our applications to .Net framework 4.8 and we have used MS enterprise library v3.0 & v5.0 and would like to uplift to enterprise library v6.0 Before going…

user1882485
- 9
- 2
0
votes
1 answer
How to make add elements method for dictionary in OOP?
I can't find any .add() method and I don't know what I can do for this.
public class MyDictionary
{
private MyDictionary md ;
public MyDictionary (int size)
{
md = new MyDictionary

katras
- 29
- 1
-1
votes
0 answers
Can't Find Namespace "Microsoft.Win32"
I'm running the latest version of Visual Studio C++ desktop with the latest v4.8.04084 version of .NET Framework, and in a header file I have #include followed later by "using Microsoft.Win32". Here "Microsoft" gets the red squiggly…

user22487671
- 1
- 1
-1
votes
0 answers
Strange behavior of .Net Framework 4.8 and 6.0
I run the following code in both .net 6.0 and 4.8:
try
{
var postData = new List
{
orderData
};
var json = JsonSerializer.Serialize(postData);
StringContent stringcontent = new StringContent(json,…

Majid Majed
- 326
- 2
- 12
-1
votes
0 answers
Assistance Needed with .NET Framework Installation and Command Execution
I am facing an issue with installing and running .NET Framework libraries for a project that involves AWS Lambda functions.
In AWS code pipeline I am using Codecommit and aws code pipeline. I have successfully installed the .NET Framework, but I am…
-1
votes
0 answers
WCF Service Change In Migration To .NET 4.8
I am trying to migrate some legacy code from .NET 4 to .NET 4.8.
I've got a WCF Service that is used by a web application (referenced in the web project as a service reference). I have a class library projects of common object types that are used by…

The Birdman
- 59
- 1
- 6
-1
votes
1 answer
Windows Forms - Open ShowDialog without freezing parent of owner
I have three forms (Form1, Form2, Form3), and my need would be:
Form1 opens Form2 with .Show(), without freezing Form1.
Form2 opens Form3 with .ShowDialog() without freezing Form1.
I tried passing the owner inside the .Show(this) and…

thefrancisco
- 17
- 2
-1
votes
1 answer
Is EnsureSuccessStatusCode() safe for performance?
Context:
In System.Net.Http HttpResponseMessage Dotnet has offered a method EnsureSuccessStatusCode(). I know, It's a convenient method that throws an exception if the HTTP response status code indicates an error.
But once I read in the C# book…

Malik Khalil
- 6,454
- 2
- 39
- 33
-1
votes
1 answer
Visual Studio: Form1 designer view not matching Form1.Designer.cs after migration to .NET Framework
I will try to keep this short.
Recently, in Visual Studio 2022, I have moved my C# app from .NET 7.0 (Core) to .NET Framework 4.8, mostly because it promised better functionality for Excel interop management.
After some necessary tweaking, I have…

O_W
- 37
- 4
-1
votes
1 answer
VB.net framework 4.8 : How to sort files in a folder by creation date
I'm looking for how to get the name of the last file created in a folder. I work in .net framework 4.8.
With the following line of code I can get the name of all the files in the folder but I don't know how to sort them by creation…

Leo Bois
- 1
- 2