For questions specific to the usage and features of version 4.8 of Microsoft's .Net framework.
Questions tagged [.net-4.8]
999 questions
-3
votes
0 answers
Why csc.exe compiler compiles .cs file directly to .exe file and not to MSIL code?
When I tried to compile my .cs program on cmd i did > csc HelloWorld.cs, but it directly created a HelloWorld.exe file in the folder. Which contradict what I studied that, cs program is first converted to a byte code(MSIL) and then CLR comes into…

Prajval Gahine
- 53
- 4
-3
votes
1 answer
Error: "The name 'mygrid' does not exist in the current context" when creating a Windows Docker image for .NET Framework 4.8 web API with XAML comp
I have encountered an issue while creating a Windows Docker image for my .NET Framework 4.8 web API solution. The solution includes a class library that references a XAML component, similar to WPF XAML, which contains a DataGrid defined within…

K Yugandhar Reddy
- 17
- 4
-3
votes
1 answer
How do I convert a string to a date format? C#
I have a date formatted like this from our database "20230125". How do I turn this string to a date format such as this one "dd/MM/yyyy"
I can probably use insert(4, "/") to add spaces and then turn it into a date. Anyone know of an easier way of…

datboiluiskrrt
- 1
- 2
-3
votes
2 answers
how can I display text and date in one label in C# forms?
The format would be : text + date(month) + text + date(year)
This is what I did so far. I know the "+" is incorrect, I just want to know how to write it
lblMain.Text = "In " + DateTime.Now.ToShortDateString + " of " + DateTime.Now.ToShortDateString…

ayesha
- 1
- 2
-3
votes
1 answer
C# calculation problem calculating income tax (PAYE)
I'm experiencing problem while calculating PAYE. Can someone assist me on how I should be approving this.
Here are the percentage and brackets for PAYE.
Upto 24000, 10%
Between 24001-40667, 15%
Between 40668-57334, 20%
Above 57334, 25%
There's a…

Charles Munene
- 1
- 1