Custom DynamicObject terribly slow
Hello,I am trying to create custom DynamicObject because I need to be able to access private and internal members of some objects and it is not possible to access private members with default dynamic...
View Articlewindows service monitoring process
I got problems while my windows service getting "process.MainWindowTitle" infotmation. The service gets process id correctly, but process.MainWindowsTitle returns "null".Secondly, when my service...
View Articledelete a file in c:\windows\...
helloi want delete a file in this path c:\windows\system32\example.dlland i use this code:File.SetAttributes(path, FileAttributes.Normal); File.Delete(path); but after run , program send error :...
View ArticleLogging parameters measured across different methods of single thread as...
There are two tasks I am doing in my app. Each of this task can be imagined as a chain of method calls (some nested and some sequential). (Below are pseudocode just to clear context) Say Task1 can be...
View Articlehow to give IF ELSE conditions to a Excel table in C#(IDE visual studio 2012)
hello, i need an urgent help, i am making a program for BRidge Classification. In my program there are lengthy excel tables used. I need to put conditions on selection of rows and columns with...
View ArticleAbout AVL tree rotation logic
I am trying to create an AVL tree, the most importation is rotation. I used my sample data but the result is wrong in the first rotation.I think the error is that I didn't return the correct object...
View ArticleAPI for ICAOs
I am trying to build a method for an API for searching ICAOs. I have a SQL table with columns: ICAO, Country, City, Latitude and Longitude. All I am looking to do is create an API to search this...
View ArticleExample of a custom cache provider for System.Runtime.Caching.ObjectCache.Host
Hello to all,Apparently there is a way to implement a custom provider, or host, for the System.Runtime.Caching.ObjectCache object. This seems to take the form of a System.IServiceProvider. However,...
View Articlehow to set the number of copies manually when you going to print
How can I set the number of copies manually when I'm going to print, because I'm not used the printdialog code.
View ArticleProblem with SQL INSERT
private bool InsertTableDokument(string id_vrste, string datum, string id_korisnika) { SqlConnection connection = new SqlConnection(Properties.Settings.Default.ReproDatabaseConnectionString);...
View ArticleHow can i Filter specific part of my mail?
Regex CheckUnderscore = new Regex(@"(.*?)_(.*?)@ecABC.com");string checkEmailString = "123_blahlbha@ecABC.com"; string emailClientCode = CheckUnderscore.Match(checkEmailString).Groups[1].Value; string...
View ArticleHow to import a documents(docx) to richtextbox in C#
I have already search a lot of codes in the Google on how import a documents(.docx) to the richtextbox, but the only available is from the richtextbox to the Microsoft office. I'm looking for someone...
View ArticleDetect USB storage drive
Hi,I'm working on a C# windows service that should detect when a USB drive is plugged in. After drive letter has been assigned, start using that drive. On the other side, when user clicks on the eject...
View ArticleIs the kb980833 fixed in .NET Framework 4.0.
kb980833 : http://support.microsoft.com/kb/980833I got the similar symptoms with kb980833 with .NET Framework 4.0. Set the Regional option to Danish.Try to filter the DataTable.select with the GUID,...
View ArticlePlay external swf files with encrypted swf in c#
I encypted swf using DES Algorithm. Then I play it using C# application according to this Link. How to play encrypted swf in c# But when I make swf called "Main" for load external swf file with...
View ArticleGet Notification When Sql Connection Broken at Client Side (.cs file)
Hello AllIs it possible to get a notification of some sort from the SqlConnection class if the connection is broken in any way? This includes being broken from a server restart or say a manual kill of...
View ArticleSending Email using C#
Hi .. does anyone know how to send email through C# in both web forms and window forms? Thanks ..
View Articlehow to Write this Mathematical equation
how to Write this Mathematical equation a= ((a+b)2 +(b+c)2)2 in c #
View ArticleNPOI how to write to an XLSX excel file
Hi,I make use of the NPOI libs but it can be answered here I think.Code: using (FileStream file = new FileStream(bestand, FileMode.Open, FileAccess.ReadWrite)) { wb1 = new XSSFWorkbook(file); // Lots...
View ArticleHow to display bidi multilanguage columns in a datagridview ?
I'm developing a windows forms Multilanguage application in Visual Studio 2010 c# and I need to represent columns of text in different languages in the same Datagridview.I'm having trouble in...
View Article