10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
TECHNOLOGIES
ANSWERS
LEARN
NEWS
BLOGS
VIDEOS
INTERVIEW PREP
BOOKS
EVENTS
Training
Live
JOBS
MORE
CAREER
MEMBERS
C#
FOLLOW
C# is a multi-paradigm programming language. This section contains C# related articles and syntaxes.
Articles
(2901)
Blogs
(1945)
Resources
(71)
Videos
(102)
News
(17)
Forums
Ask a question
New
Top
Hot
Popular
Filter
Article
Blogs
Videos
News
Interview
Recent Post
CRUD With Disconnected DataSet In C#
Disconnected DataSet gives you the ability to modify data on frontend machine. The Code Example in this Article shows how to use Disconnected DataSet to perform CRUD in C#.
Vaishali Vishwakarma
May 25, 2022
1.1k
What's New In C# 10?
In this article, you will learn what's new in C# 10?
Harkirat Singh
May 25, 2022
625
Types Of Operators In C#
In this article, you will learn the use of operators and its vision.
Pushpendra Kumar Shukla
May 19, 2022
1.3k
Animated Screen In Windows Forms
In this article, you will learn how to add an animated screen using Windows Forms.
Maneesha Kashyap
May 18, 2022
769
Generic Delegates In C#
Here ill describe that why we need Generic Delegates what are Generic Delegates, keyword used in Generic Delegates and their type with example
Shivam Payasi
May 17, 2022
876
New features in C# 9.0 - MVP Show ft. Munib Butt
Join us with Munib Butt to learn about New features in C# 9.0.
C# Corner Live
Apr 01, 2021
3.9k
Rockin' The Code World with dotNetDave ft. Jared Parsons Ep.18
Join us with Jared Parsons on Rockin' The Code World with dotNetDave - a weekly show to learn & live Q&A on .NET and other programming technologies.
C# Corner Live
Mar 21, 2021
3.7k
Span
in C# - MVP Show ft. Bohdan Stupak Ep. 7
C# Corner MVP show ft. Bohdan Stupak
C# Corner Live
Jan 13, 2021
4k
.Net Virtual Conference Day - 1
Live broadcast of the first day of .Net Virtual Conference
C# Corner Live
Oct 15, 2020
13.1k
Rockin' The Code World with dotNetDave ft. Mads Torgersen - Show 3
The third episode of Rockin' The Code World with dotNetDave ft. Mads Torgersen
C# Corner Live
Oct 13, 2020
4.1k
Print hello world as Olleh Dlrow ?
Rakesh Singh
Jan 18, 2016
8.9k
8.9k
Fetch one page value to another page without using state-managment ?
Rakesh Singh
Jan 18, 2016
10k
10k
Is this possible? Class A{void show(();} Class B: A {void show();} A obja = new A A objaa = new B() B objb - New B(); B objbb = New A();
Vivek Bansod
Jan 08, 2016
3.5k
3.5k
What is data type and how many types of data types are in .NET ?
Kumar Bhimsen
Jan 04, 2016
7.1k
7.1k
Testing in device
Hello,
When I tried to test the app WindowsPhone 8.1 in Windows Phone10 device the following error has be occured how could I resolve this error
Severity Code Description Project File Line Suppression State
Error Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device '30F105C9-681E-420b-A277-7C086EAD8A4E'.':
DeviceException - Deployment failed because no Windows Phone was detected. Make sure a phone is connected and powered on. App6
Kumaresh Rajalingam
Dec 28, 2015
1.1k
C# 6.0 - Proposed New Features
Preliminary details of proposed new features to be added to C# in version 6.0
Vulpes
Dec 17, 2013
10.7k
Roslyn compilers nearing completion
The Roslyn compilers are now being 'dog-fooded' by Microsoft.
Vulpes
Dec 17, 2013
2.2k
Nevron Announces NOV – the first and only Cross-Platform Presentation Layer for .NET Developers!
The long wait has finally come to an end! The NOV Framework has been under development for nearly 5 years. Today, the Nevron Team is proud and excited to announce the official release of Nevron Open Vision (NOV) 2013.1 – the first and only Cross-Platform Presentation Layer for .NET Developers!
Christo Bahchevanov
Nov 29, 2013
3.1k
C# 6.0
Some preliminary details of C# 6.0
Vulpes
Aug 02, 2013
13.6k
Webinar on Async Programming with C# 5.0 (Mumbai Chapter)
This is Webinar (online) on July 21st Sunday 8 -9:30pm. This will include all the fundamentals and details any .NET professional need to know about choosing between Synchronous and Asynchronous and make it work.
Vidya Vrat Agarwal
Jul 16, 2013
2.1k
Leverage “using” in C#
C# provides a powerful syntax “using”. This blog talks about how you can take advantage of it.
Mahesh Chand
May 20, 2013
12.1k
0
Cagdas's Blog
Object Oriented Programming with c#
Cagdas DAVULCU
Sep 13, 2007
5k
0
almalki
jameel almalki
jameel almalki
Sep 08, 2007
2.3k
0
Serializable Dictionary
A dictionary object which is Serialiazable :) Neato!
Deepak Raghavan
Aug 19, 2007
26.6k
0
Cool Tool: Cropper
Cropper is a great screen capture utility tool. It is completely written in C# and is listed on CodePlex at http://www.codeplex.com/cropper.
Deepak Raghavan
Aug 13, 2007
10.5k
0
Is it possible to perform operations in the List
Paresh Sharma
Apr 27, 2007
5.7k
5.7k
threading in vb .net
I have to answer the following question: write the method call to begin running the thread and begin processing. (a) Namespace = testProject (b) form to run = frmMain Out of the things that I have read, everything I have gathered suggests that I can only thread something that is a method. It never mentions anything about namespaces or forms. If this makes sence to anyone or if anyone can refer me to some good literature, please let me know. Thank you!
sasheee
Feb 27, 2004
3.5k
How do you kill a thread aside from abort()?
Hi, As the subject states, how can I kill a thread aside from abort()? I'm asking this question because it appears that abort method does not complete a task before it "aborts" the current thread, so I end up doing some cleaning up of my own, making extra lines of code. Or am I missing something? I am sorry if its odd but I believe that the less number of lines I code the less bugs I need to fix. Hanggang sa muli, Tikbalang
mdlardizabal
Feb 08, 2004
4.5k
Threading and Direct X 7
I am using C# and DirectX7 (in DxVBLib) to create a tiled game editor / interpreter. It allocates a "GameData" object that contains the current game data. I want to have an independent window that shows the "current" view of the game data. For this, I created a ViewForm class, which I allocate with new and call ".Show" on. This invoked the load event on this form. Once created, I have a function in ViewForm that loops. It paints the game onto a backbuffer and flips it onto the primary buffer using Direct X 7 . I want to call this function when I click on a button on my main form. The way I have it, is that the click event on MainForm invokes myGameData.displayGame(), which in turn invokes myGameData.myViewForm.startApp() which is a loop that displays the game field at a fixed frames-per-second rate. W/out threading, the loop paints a DirectX backbuffer and then flips it into the primary buffer. Because it is not multi threaded, the loop doesn't end, so I have to call Application.DoEvents() to keep the two windows from hanging until the call ends. What I want to do is to put the whole displayGame() call into a thread. The problem is when I do, the DirectX calls fail. It looks like it looses the DirectX context or something. I did the basic thing: Thread t = new Thread( new ThreadStart(myViewForm.myLoop(ref myGameData))); t.Start(); I am allocating and initializing DirectX in the constructor for the ViewForm. Any ideas? Some questions: a) Should I initialize direct X inside the function (i.e. local to the thread?) b) If I want to have multiple instances of this DirectX stuff, will they interfeer with each other? I hope this makes sence. Dave
davidh1
Oct 28, 2003
4.6k
sqldatareader in a thread
I'm having a wierd issue where i run a query in a thread and the while(Connection.read()) duplicates my results. Anyone else have this issue? For isntance if I have TestTable with the following values: TestID 1 2 3 It will console.writeline 1 1 2 2 3 3 Below is sample code: private void button3_Click(object sender, System.EventArgs e) { ThreadStart DBThread = new ThreadStart(StartDBDelegate) ; Thread DB = new Thread(DBThread) ; DB.Start(); } public void StartDBDelegate)() { Invoke(new UpdateLoadTableDelegate(RunUpdateNow)); } public void RunUpdateNow() { string source = "server=testserver;uid=testuid;pwd=testpassword;database=TestDB"; string selectconn1 = "SELECT TestID as dbTestID FROM TestTable" SqlConnection conn1 = new SqlConnection(source); conn1.Open(); SqlCommand executeconn1 = new SqlCommand(selectconn1,conn1); SqlDataReader Connection1 = executeconn1.ExecuteReader(); while(Connection1.Read()) { Console.WriteLine (Connection1[0].ToString()) } } I can reduce this menace by doing the following to the while loop, although I shouldnt have to do this...this is really bugging me. It doesnt do this outside of the thread. string strTestID = ""; while(Connection1.Read()) { if(strTestID != Connection1[0].ToString())) { Console.WriteLine (Connection1[0].ToString()) strTestID = Connection1[0].ToString()); } }
michin1
Oct 27, 2003
8.9k
Moderators
Jaish Mathews
India
Jaish Mathews
India
Leaderboard
344.9k
Mahesh Chand
1
344.9k
213.5m
29k
C# Curator
60
29k
41.7m
47.9k
Vijay Prativadi
17
47.9k
6.8m
TRENDING UP
C# Interview Questions
Working With Arrays In C#
SOLID Principles In C#
How to serialize and deserialize JSON in C#
IEnumerable in C#
Regular Expressions In C#
Design Patterns In C# .NET
Object Oriented Programming Using C# .NET
OOPS Concepts And .NET - Part Two - Inheritance, Abstraction And Polymorphism
Creating C# Class Library (DLL) Using Visual Studio .NET
Learn C# 8.0
Challenge yourself
C# Skill
E-Book Download
Get Certified
Python Developer
Ask a question
*
Select a Category
.NET
.NET Core
.NET Standard
Active Directory
ADO.NET
Agile Development
AJAX
Alexa Skills
Algorithms in C#
Android
Angular
Architecture
ArcObject
Artificial Intelligence
ASP.NET
ASP.NET Core
Augmented Reality
Aurelia
AWS
Azure
Backbonejs
Big Data
BizTalk Server
Blazor
Blockchain
Bootstrap
Bot Framework
Business
C#
C# Corner
C# Strings
C, C++, MFC
Career Advice
Careers and Jobs
Chapters
Cloud
COBOL.NET
Coding Best Practices
Cognitive Services
COM Interop
Compact Framework
Cortana Development
Cosmos DB
Cryptocurrency
Cryptography
Crystal Reports
CSS
Current Affairs
Custom Controls
Cyber Security
Data Mining
Data Science
Databases & DBA
Design Patterns & Practices
DevOps
DirectX
Dynamics CRM
Enterprise Development
Entity Framework
Error Zone
Exception Handling
Expression Studio
F#
Files, Directory, IO
Flutter
Games Programming
GDI+
GO
Google Cloud
Google Development
Graphics Design
Graphite Studio
Hardware
Health & Wellness
Hiring and Recruitment
HoloLens
How do I
HTML 5
Internet & Web
Internet of Things
Ionic
Java
Java and .NET
JavaScript
JQuery
JSON
JSP
Knockout
Kotlin
Leadership
Learn .NET
Learn iOS Programming
LightSwitch
LINQ
Machine Learning
Metaverse
Microsoft 365
Microsoft Office
Microsoft Phone
Microsoft Teams
Mobile Development
MongoDB
MySQL
NetBeans
Networking
NFT
NoCode LowCode
Node.js
Office Development
OOP/OOD
Open Source
Operating Systems
Oracle
Outsourcing
Philosophy
PHP
PostgreSQL
Power Apps
Power Automate
Power BI
Printing in C#
Products
Progressive Web Apps
Project Management
Public Speaking
Python
Q#
QlikView
Quantum Computing
R
React
React Native
Reports using C#
Robotics & Hardware
RPA
Ruby on Rails
Salesforce
Security
Servers
SharePoint
SignalR
Smart Devices
Software Testing
Solidity
SQL
SQL Server
Startups
Stratis Blockchain
Swift
Threading
Tools
TypeScript
Unity
UWP
Visual Basic .NET
Visual Studio
Vue.js
WCF
Wearables
Web Design
Web Development
Web Services
Web3
Windows
Windows Controls
Windows Forms
Windows PowerShell
Windows Services
Workflow Foundation
WPF
Xamarin
XAML
XML
XNA
XSharp
Upload Source Code:
Select only zip and rar file.