10,521 questions with C#-related tags

Sort by: Updated
1 answer

Retrieve the uniqueidentifier key value for a record

i have DB field Picture datatype = uniqueidentifier , i want to get picture show on web page asp.net C#

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,115 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,521 questions
asked 2020-12-18T06:20:22.04+00:00
natsit kaewsungharn 1 Reputation point
answered 2020-12-18T11:46:42.61+00:00
Karen Payne MVP 35,286 Reputation points
1 answer

Windows RichTextBox Problem

Hi, I am using windows RichText box to create RTF file for RTF input. below is code, RichTextBox RtfContent= new RichTextBox(); RtfContent.LoadFile(FileName,RichTextBoxStreamType.RichText); in last getting RtfContent.RTF to write in file. For some…

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,521 questions
asked 2020-12-08T10:51:27.09+00:00
viral patel 1 Reputation point
commented 2020-12-18T09:39:06.733+00:00
Kyle Wang 5,531 Reputation points
1 answer One of the answers was accepted by the question author.

How to import Java libraries to Xamarin IDE?

I want to import and interface Java coding libraries into Xamarin IDE. So far, I am having too many issues. I have looked through all the tutorials, but no such luck or any solutions. Users are welcome to provide me some answers as long as it is…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,315 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,521 questions
asked 2020-12-18T03:22:48.877+00:00
JohnCTX 636 Reputation points
accepted 2020-12-18T08:47:40.873+00:00
JohnCTX 636 Reputation points
0 answers

Plot Area color and Selected Item color

I'm working with LineSeries charts and I need to change the background color of the plot area. I'm also trying to change the color of the selected item without success. As it's possible to see in the image, the selected item is red (same item for the…

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,700 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,521 questions
asked 2020-12-16T12:17:25.16+00:00
Ribeiro, Emilia [ext] 1 Reputation point
commented 2020-12-18T08:10:07.41+00:00
DaisyTian-1203 11,616 Reputation points
2 answers One of the answers was accepted by the question author.

Press Enter to move to next control

I have a few TextBox on the WinForm. I would like the focus to move to the next control when Enter key is pressed? Whenever a textbox gains control, it will also select the text, so that any editing will replace the current one. "but if the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,865 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,786 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,521 questions
asked 2020-12-17T09:30:39.71+00:00
ravi kumar 331 Reputation points
commented 2020-12-18T06:06:26.16+00:00
ravi kumar 331 Reputation points
0 answers

MapControl with Winform

Im working with a Winform Application that contains a Host Element with child UserControl with a Mapcontrol. I am able to debug/start the application just fine; however, when I try to publish the application I received the following error when trying to…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,865 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,521 questions
asked 2020-12-14T04:50:15.03+00:00
cleon brown 1 Reputation point
commented 2020-12-18T05:35:01.727+00:00
Kyle Wang 5,531 Reputation points
0 answers

Accessing property from multiple Classes (MVVM WPF application)

I have been trying to learn C# by creating a small app. Recently I have been trying to implement SessionEvent for screen lock/unlock to pause the timer. I am having a problem understanding how to access timer from App.xaml.cs. Currently while locking the…

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,700 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,521 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.
778 questions
asked 2020-12-16T14:23:49.5+00:00
mrw 201 Reputation points
commented 2020-12-18T02:27:16.837+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

screen capture in multiple monitors

I am using UWP screen capture API. This is very straightforward when we capture single monitor among multiple monitors. Is there any good way of switching monitors to be captured associated mouse/keyboard activity?

Universal Windows Platform (UWP)
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,521 questions
asked 2020-12-11T20:28:52.08+00:00
wonkyum lee 21 Reputation points
commented 2020-12-18T02:00:18.357+00:00
wonkyum lee 21 Reputation points
1 answer One of the answers was accepted by the question author.

Cancel HttpClient on azure function in case the operation takes longer than x minutes

I have an azure function which has been called every 5minutes. The function takes less than a min to respond but sometimes took longer than normal and causes some logical issues in my app. How can I cancel the request if takes more than x min (e.g.…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,512 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,521 questions
asked 2020-12-18T01:14:44.69+00:00
Tes Gam 81 Reputation points
accepted 2020-12-18T01:21:45.17+00:00
Tes Gam 81 Reputation points
1 answer

Continue Speech Recogonization with Custom keyword

Hi , I am going to develop voice recolonization in this i have two custom keyword and more than 20 custom Command. so i have created custom keyword on my studio login and downloaded .table file and i am checking user voice with .table file locally that…

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,484 questions
Universal Windows Platform (UWP)
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,521 questions
asked 2020-12-14T17:22:58.997+00:00
kailash solanki 1 Reputation point
commented 2020-12-17T11:06:14.21+00:00
romungi-MSFT 43,451 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

excel export datagrid view with headers

Hello all , i have this below code to export my datagrid view o a CSV format , which i can open in excel later , but the datagrid headers are not getting exported , kindly help me how to include headers of my data grid view while exporting: …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,865 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,786 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,521 questions
asked 2020-12-17T09:13:23.417+00:00
ravi kumar 331 Reputation points
commented 2020-12-17T09:26:09.843+00:00
ravi kumar 331 Reputation points
1 answer One of the answers was accepted by the question author.

filter datagridview based on textbox value (exact match)

Hello all , In my winform application , i need to filter my datagridview based on my text box text , but as i am using like keyword for matching " the values "Accepted" & "Accepted on deviation" are considered as same ,…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,865 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,786 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,521 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,582 questions
asked 2020-12-17T04:49:06.993+00:00
ravi kumar 331 Reputation points
commented 2020-12-17T09:04:18.203+00:00
ravi kumar 331 Reputation points
1 answer

Image.FromHbitmap exception: A generic error occurred in GDI+

I am trying to create bitmap from dib handle in order to show it in picturebox . But i keep getting this error and not sure how to fix this problem. I did search for error in online and most resources points out that the inptr is zero so error pops…

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,521 questions
asked 2020-12-12T00:30:58.943+00:00
manjunath 1 Reputation point
commented 2020-12-17T06:01:42.067+00:00
Timon Yang-MSFT 9,576 Reputation points
2 answers

How to find Class/Entity complete namespace where it is used in solution/source code with their line number

Hi folks, I hope you are doing well. I want to write a program in C# that extract Class/Entity complete namespace where it is used in solution/source code with their line number I do research from internet I have found some references but it can't…

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,521 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,136 questions
asked 2020-11-27T06:33:32.153+00:00
Saifullah 1 Reputation point
commented 2020-12-17T04:59:09.5+00:00
YASER SHADMEHR 781 Reputation points
1 answer One of the answers was accepted by the question author.

How to make a Home-button in UserControl switch a page in MainWindow frame without using mvvm?

Hi there! I am new in wpf and c#. I have now used 2 days on searching the web without any solutions I could implement in a satisfying way. Either I can't make the solutions work or it's the annoying MVVM pattern. At my current learning step it's just…

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,700 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,521 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.
778 questions
asked 2020-12-15T21:10:14.313+00:00
Mathex 21 Reputation points
commented 2020-12-16T23:16:36.693+00:00
Mathex 21 Reputation points
3 answers

Migrate .Net 4.x C# Windows Forms Application + C++ DLLs to .NET 5

Hello, I'd like to migrate an application build with .Net Framework 4.7.2/Windows Forms/C# to .Net 5. From the documentation, i don't see so much problems to migrate the elements of this application that are written in C#. But this app also uses some…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,865 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,521 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2020-12-11T16:20:04.303+00:00
Pasc059 1 Reputation point
answered 2020-12-16T19:09:33.347+00:00
Pasc059 1 Reputation point
1 answer One of the answers was accepted by the question author.

How to get something that could uniquely identify a cdrom by c#

I need some c# code that can get something such as serial number or ID that can uniquely identify the fixed cdrom or usb cdrom. Thanks.

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,521 questions
asked 2020-12-11T02:53:21.833+00:00
Dudu 161 Reputation points
accepted 2020-12-16T12:42:24.267+00:00
Dudu 161 Reputation points
2 answers One of the answers was accepted by the question author.

MediaSource.CreateFromUri() cannot retrieve the file.

Here is my code........ var mediaPlayer = new MediaPlayer(); mediaPlayer.IsLoopingEnabled = true; var soundPath = "D:\Documents\comunit\WinCom\Phonemar\otCom\bin\x86\Debug\AppX\Assets\Sound\ringing_tone.mp3" try { mediaPlayer.Source =…

Universal Windows Platform (UWP)
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,521 questions
asked 2020-12-09T05:27:54.647+00:00
jigyanshu 21 Reputation points
commented 2020-12-16T02:04:08.123+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
2 answers

How do i fix this error in c#

please Help me ASAP

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,521 questions
asked 2020-12-15T18:11:27.073+00:00
Ella McGillivray 26 Reputation points
answered 2020-12-16T01:56:32.833+00:00
Timon Yang-MSFT 9,576 Reputation points
1 answer

How to create Cognative Speech Custom Command and download it

As we can create custom keyword in speech Studio and we can train than we can download as .table file on local system. so same way how can we download custom command.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,484 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,521 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,531 questions
asked 2020-12-02T14:23:12.953+00:00
kailash solanki 1 Reputation point
commented 2020-12-15T20:44:46.487+00:00
GiftA-MSFT 11,161 Reputation points