Need Help for C#
Dear MSDN Team,I am working on an website project of asp.net C#.but i am stuck at one instance that i had created one tree view ,button panel include add,edit and save on master pageso i have to pass...
View ArticleShDocVw.ShellWindows sw = new ShellWindows();
Hi running application that I deployed in xenapp 6 citrix running on windows 2008 r2 64 bitand getting the following error: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM...
View Articletwo projects in one C# Solution need to know about one another
I have two projects in a c# solutions. They need to know about one anothers so they can use else other's classes.how do I do that ?
View ArticleRecieve Data From Serial Com Port C# In One Line And Convert To integer problem
Hi guys i have problem i make code that take data from serial com port for weighting machine it is ok working but it recieve data in more lines.I try to make it receive data in one line In code below i...
View Articlewhat are the baby-steps for creating online radio station
So, The thing is I would like to start an online radio station and I want to program it from scratch. I did some searching on google but there is a lot of information that made me lost :(. So, what...
View ArticleC# Datatype exception handling issue
Hallo I have been working with C# in todays class and wondering a lot about this issue: The error handling if an user type in numbers under name, then nothing will happen it will just continuethough my...
View ArticleHow can I scan an opened file for certain things and store them in an array?
Hello.I am having some difficulty with a small console application I am trying to write. The intention of this app is to scan a list of two different directories (one with new source code and the other...
View ArticleIntegrating One C# Project With Another
Hi Guys,I want to know if there is a way to link one C# program with another such as .dll files. For example, I have a simple program that runs on windows desktop, however I want it to run from a core...
View ArticleActiveX problem caused by .Net framework 4.5.1
I am working with a Smart Client/WCF project. Some forms have the ActiveX objects and worked fine before. When I upgrade the whole solution to .Net framework 4.5.1. These forms cannot open properly and...
View ArticleI cann't understand the Regex statment
Can anyone explain to me what does the following line REGEX...
View ArticleHandling event-related memory leaks in collections
Hi all,Several times, I've found myself having a bit of code that's interested in changes to a collection, as well as changes to the properties of that collection's elements. I typically do this by...
View ArticleRow number in linq query
How can I add a row number column to the following query:var query = from u in dbReport.Users join p in dbReport.Physicans on u equals p.User select new { u.Id, u.FirstName, u.LastName, u.UserName,...
View ArticleC# Beginner; How to convert string to int?
Hello, so I am new to C# and I'm having trouble grasping how to convert between a string and an integer. I'm not sure I am even going about this the right way. I have to write a program that asks the...
View ArticleQuickest way to read Millions of UNC paths stored in database and validate...
We had an issue occur where a user was unaware of the existence of a database trigger on a table. He removed records from the table on a cloned copy of the database, however the trigger still fired and...
View ArticleCreate Sub dateMonthCalendar_DateChanged
Hi,I'm looking to code a dateMonthCalendar to display any events for the specified date in a ComboBox.I have my combo box added to the form but not sure how to display an event for a selected date.Can...
View Articlehow can i enter data from data_table created at front end in c # into Sqlserver
how can i enter data from data_table created at front end in c # into Sqlserver Database
View ArticleGeneric exception logging using Dependency Injection
Hi Friends,Can anyone please suggest a better exception logging to the one mentioned below. Appreciate any suggestions. Thanks class Program { static void Main(string[] args) {...
View ArticleHow to create new FileStream instance or name in C#
I'm trying to create a text file for write access in C# 2010. I want to be able to write to it from different methods, so its name needs to be visible throughout my project. I've had success with...
View ArticleGetForeGroundWindow() incorrectly detects active window of Internet Explorer
Good day!I'm writing a keylogger software in C#, it creates a hook and when a key is pressed should check the current layout.This code detects the layout of active window. int WinThreadProcId =...
View ArticleRemove projects from a solution programmatically
I'm writing a console application to deploy a test environment to test a big software (a hundred projects for a total of more than 1gb of code) for my company.This script get the latest version of the...
View Article