23,695 questions with .NET-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

LinQ, GroupBy, C#, sub list, check state - improvement of the query

Hello, The below code works very well. The question is, can I solve this in one query? If so, how would I implement it? I want to know if a position has a bad status. If so, the product is bad. Return value is bool. Thanks for tips in advance! var…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,660 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,164 questions
asked 2020-11-26T08:25:37.973+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-11-26T15:29:05.59+00:00
Markus Freitag 3,786 Reputation points
2 answers

Why Am I Getting Error Using TransactionScope?

Hi, Everybody! I am having trouble with TransactionScope. I want my web method to be transactional. If any exception occurs, I want all database changes rolled back. Otherwise, commit. Please see error message below. System.ApplicationException:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,323 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,164 questions
asked 2020-11-21T04:37:00.397+00:00
Julio Bello 221 Reputation points
answered 2020-11-26T13:13:29.98+00:00
Nuno Pereira 1 Reputation point
1 answer

Replace 81 buttons for a CollectionView for Wordgame or Sudoku

I am trying to make a Wordpuzzle game . Have 81 Buttons that make a 9X9 layout , i fill the buttons with a Letter or a Number from a database online. When a Buttonclicked the background is changing Color . All is working but it is a lot of…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,284 questions
asked 2020-11-26T10:49:35.657+00:00
Borisoprit 371 Reputation points
commented 2020-11-26T12:47:32.817+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 67,631 Reputation points Microsoft Vendor
3 answers

CheckBox's checked state doesn't change

I've a Custom Control, Filter: public class Filter : CheckBox { static Filter() { DefaultStyleKeyProperty.OverrideMetadata(typeof(Filter), new FrameworkPropertyMetadata(typeof(Filter)));} } in the Generic.xaml, I've set the IsChecked property to…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,660 questions
asked 2020-10-17T00:39:07.25+00:00
Emon Haque 3,176 Reputation points
commented 2020-11-26T12:06:56.03+00:00
Ziemek, Thomas 6 Reputation points
1 answer One of the answers was accepted by the question author.

Inherit bindableproperty in contentview

Hi everyone. I have a working custom control. I want to have another custom control inheriting from the previous one but something is not working as expected. In the second control oneway properties don't take the value I send from the implementation…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,284 questions
asked 2020-11-25T14:47:59.067+00:00
Emiliano Magnani 21 Reputation points
accepted 2020-11-26T11:41:58.323+00:00
Emiliano Magnani 21 Reputation points
2 answers

Datepicker accessibility Issues.

Hi I have added a datepicker in Windows Forms Application. I need system to read out the date that is selected Or Focused when Screen Reader or Narrator is turned ON. Example: When The start date is Highlighted then it should…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,814 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,164 questions
asked 2020-11-26T06:16:22.21+00:00
Prasad Babu Konduru 11 Reputation points Microsoft Vendor
answered 2020-11-26T10:53:59.95+00:00
Prasad Babu Konduru 11 Reputation points Microsoft Vendor
3 answers

How to fin Class/Entity References and Line Number

Hi folks, I hope you are doing well. I want to write a program in C# that extract the class/entity references and with there line numbers where it is used in solution. I do research from internet I have found some references() but it can't me help.…

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,164 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,117 questions
asked 2020-11-26T05:53:05.417+00:00
Saifullah 1 Reputation point
commented 2020-11-26T10:40:35.217+00:00
Saifullah 1 Reputation point
3 answers One of the answers was accepted by the question author.

RelativeLayout order view childrens

Good morning community! I'm having a problem in a relativeLayout that I made some time ago. The fact is that with previous versions of Xamarin it has always worked perfectly for me, however I don't know why it has stopped working. This relativeLayout…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,284 questions
asked 2020-11-25T09:44:28.173+00:00
Carles Baldovi 21 Reputation points
commented 2020-11-26T09:26:59.16+00:00
Carles Baldovi 21 Reputation points
1 answer

.Net Core : back compatibility problem when loading a legacy .Net 4.7.2 DLL using System.Console.Write() (missing method)

I have a .Net 5.0 C# wrapper that dynamically loads a legacy C++/CLI .NET 4.7.2 assembly Loading is successful, but I cannot run the code : an exception is raised about a missing System.Console.Write() implementation This is definitely a .Net 5.0…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,117 questions
asked 2020-11-19T10:40:45.697+00:00
Pierre Chatelier 81 Reputation points
commented 2020-11-26T08:49:24.453+00:00
Pierre Chatelier 81 Reputation points
0 answers

Xamarin.Forms connection from PC to mac keeps quitting before deplotment - 100s of times/day

If I can connect and upload the latest build to my ios device twice or more during an 11 hour work day - that's a good day for me. I have the latest (preview) Visual Studio Code on both mac and PC, the latest XCode installed. PC is connected to mac…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,284 questions
asked 2020-11-22T17:46:18.993+00:00
capsicum 101 Reputation points
commented 2020-11-26T08:27:30.887+00:00
Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
2 answers

Setting the Android API level

I am trying to upload my app to Google Play for Release. I have built and signed my .apk. When I go to upload it I got the following error: Your app currently targets API level 28 and must target at least API level 29 to ensure it is built on the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,284 questions
asked 2020-11-22T12:26:53.407+00:00
Don Glover 511 Reputation points
commented 2020-11-26T07:00:45.95+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 67,631 Reputation points Microsoft Vendor
1 answer

Camera is not always correctly detected

Sometimes (this is not always reproducible) the following call gives me an empty list, failing to detect a USB connected camera: await MediaFrameSourceGroup.FindAllAsync().AsTask().ConfigureAwait(false); The camera is correctly connected though,…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,660 questions
asked 2020-11-16T11:40:05.917+00:00
Luca Franceschini 1 Reputation point
commented 2020-11-26T06:40:26.627+00:00
DaisyTian-1203 11,616 Reputation points
1 answer One of the answers was accepted by the question author.

LinQ, GroupBy, C#

Hello, I have a Master Detail relationship. Master 1:n Detail 1:n Detail (List) Via LinQ I would like to group it. That works too. But I can't reach the ResultView. See the green marker. What should the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,323 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,660 questions
asked 2020-11-25T15:04:27.063+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-11-26T06:35:58.377+00:00
Markus Freitag 3,786 Reputation points
1 answer

Handle request in actionfilter(WITHOUT action exist)

Hello. I need to handle HEAD request which sanded by Microsoft office excel, when user click on hyperlink. I decided to use action filter to solve this problem, but I have requirement's that I can't add "[AcceptVerbs(HttpVerbs.Head |…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,118 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,234 questions
asked 2020-11-25T08:21:37.99+00:00
Pavlo Rishko 1 Reputation point
answered 2020-11-26T05:56:05.42+00:00
Yihui Sun-MSFT 801 Reputation points
1 answer

Will reinstalling URL Rewrite module cause something to break

Just recovered my VM from a fatal crash. Upon check IIS, the URL Rewrite module is no longer listed, but I've verified that the entries are still in the C:\Windows\System32\inetsrv\config\applicationHost.config file. Will reinstalling the module have…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,118 questions
asked 2020-11-23T03:21:36.31+00:00
Meh 1 Reputation point
commented 2020-11-26T05:27:02.53+00:00
Anonymous
2 answers One of the answers was accepted by the question author.

How to display the image when the build action of the image file is the content

Currently, I am displaying an image using the build action of an image file as an embedded resource, but I do not know how to display the image when the build action is changed to content. Someone please show me a sample

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,284 questions
asked 2020-11-25T23:16:56.897+00:00
TS44 81 Reputation points
accepted 2020-11-26T03:49:23.117+00:00
TS44 81 Reputation points
1 answer One of the answers was accepted by the question author.

I can't get my custom click event to work.

Hello. I have this class written. public class MyButtonSimple : Button { // Create a custom routed event by first registering a RoutedEventID // This event uses the bubbling routing strategy public static readonly RoutedEvent TapEvent =…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,660 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,164 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
759 questions
asked 2020-11-25T02:23:20.583+00:00
A N 81 Reputation points
accepted 2020-11-26T03:28:32.47+00:00
A N 81 Reputation points
1 answer

Visual Studio Community 2019 cannot start debuger due to application manifest

Hello! After developing and debugging my windows form application I tried to publish through the same IDE (I think is ClickOnce), but once it was installed it could start due to the following error given by the event viewer: Error generating…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,814 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
932 questions
asked 2020-11-24T02:52:43.897+00:00
PerezRE 1 Reputation point
commented 2020-11-25T20:30:26.487+00:00
PerezRE 1 Reputation point
1 answer One of the answers was accepted by the question author.

[Bug] Xamarin.Forms Picker - One Picker selection clears all the options of the other picker in the same page

https://github.com/xamarin/Xamarin.Forms/issues/12956 Hi! I'm working on an app built using Xamarin.Forms. I just upgraded from Xamarin.Forms 3.4.0.1029999 to 5.0.0.1709-pre4. After this upgrade, I'm facing a new issue wherein a page that has multiple…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,284 questions
asked 2020-11-24T10:13:50.94+00:00
Paul 296 Reputation points
accepted 2020-11-25T14:15:50.86+00:00
Paul 296 Reputation points
1 answer One of the answers was accepted by the question author.

Input string was not in a correct format.

When i am inserting Decimal value from textbox to gridview asp.net Webform, then below error is coming , Input string was not in a correct format. Below line int price = Convert.ToInt16(txtprice.Text); My Code for inserting data into gridview is…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,234 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,164 questions
asked 2020-11-25T12:43:12.727+00:00
Analyst_SQL 3,531 Reputation points
accepted 2020-11-25T14:11:05.693+00:00
Analyst_SQL 3,531 Reputation points