Delete records from Windows registry after MoveFileEx added them from my .Net...
In my software I am using MoveFileEx to mark my files for deletion to be deleted on system reboot. That is in the case when for some reasons I cannot delete the file with my software (for example it...
View ArticleEXACTLY how does...
I have a few questions about FindDomainController()How does its functionality compare to the Win32 API DsGetDcName()How stable are the results. The documentation for the version with no arguments...
View Articlehow to detect which Anti Virus is installed?
I want to know how can I detect which anti virus is installed on the system using C#?Jassim Rahma
View Articlevisual studio 2013 ultimate crashing when writing to MVc controller
I have visual studio 2013 ultimate with update 4 running on win 8.11 pro .when ever i'm writing in mvc project in the controller VS. is restarting . I have tried to repair , I tried to uninstall and...
View ArticleUnauthorizedAccessException / Code Example / Question for Reason / C#.NET
Hi .NET Team,I've simulated 5 Threads writing and deleting (lock-scope Directory) files, I do get an UnauthorizedAccessException (access to the path ... is denied) without the integration of a...
View ArticleObject reference not set to an instance of an object. Exception while...
spgetguestTableAdapter adapter = new spgetguestTableAdapter(); HDeskDataset.spgetguestDataTable gt = new HDeskDataset.spgetguestDataTable(); adapter.Fill(gt);HDeskDataset.spgetguestRow...
View ArticleHow can I get the subclasses of a abstract class
I am programming a project in visual basic with visual studio. I work with inherited classes.I would like to list all subclasses in a TreeView if I know the abstract class. Is there a method to asking...
View ArticleSending email via Gmail from C#
Here's my code that is not working...I get the following error when trying to send mail...Can anyone help?InnerException: "A connection attempt failed because the connected party did not properly...
View ArticleNeed windows forms class libraries in a stand alone console application
I need to use a windows forms class library in a stand alone console application. For example the "Rectangle" class under namespace ...Drawing. This "Rectangle" class is needed for some functions...
View ArticleTo use remote App.config file fails in Windows 8
I want to read app.config from the remote server on my NET 3.5 application.For example, I'm updating "APP_CONFIG_FILE" to set remote app config like the below code.It works fine on Windows 7 or...
View Articleconvert word doc to xml
i want to convert MS word doc to XML.but how can i specifiy the save file type in oDoc.SaveAs(.......) .in framework 2.0 doesnt have xml format - wdFormatXML(object Format =...
View ArticleEnterprise library 3.1 installation issue on windows 7
I am trying to install enterprise library 3.1 (May 2007), but it givesme the following error. the installer requires the .NET framework ver 2.0 which is not present on this computer) i have also...
View ArticleIMetadataDispenser.OpenScope fails with BadImageFormatException
I've made a tool to read .pdb symbols for a .NET assembly based on the sample provided here:https://www.microsoft.com/en-ca/download/details.aspx?id=19621It worked fine for .NET 4.0 assemblies, but...
View Articlesqlbulkcopy
Hi,I am new to sqlbulkcopy1. is it going to insert data into one table at the bottom of the last copy? or replace the old data with new ?2. can we upload multiple files at the same time to different...
View ArticleNeed to reduce the value for runtime in gridview in asp.net
need to reduce the value for runtime in gridview in asp.net i have bind the value as billamount in grid and i have the textbox and i enter the value in runtime i need the output in the grid. Name...
View ArticleIam Using Gridview Cell Click Event to Check the Checkbox Status of the...
private void GridViewRoom_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e) { if (e.ColumnIndex==19) { bool isChecked =...
View ArticleBinaryReader floats and carriage returns
How do you determine while reading floats from a file using binaryreader if you have reached the end of line(carriage return)? Supposedly my binary file (.dat) contains a line of floats, then a line of...
View ArticleHow to Unload Class Lib/ dll file ?
I have mechansim to load my dlls file as written below. I have need to know that let suppose i have a print form which call print.dll every times when it loads. If i open more than 3 forms than it...
View ArticleFinding organization units in AD
DirectoryEntry root = new DirectoryEntry("LDAP://dc=me,dc=com"); DirectorySearcher searcher = new DirectorySearcher(root); searcher.Filter ="(&(objectCategory=group)(memberOf=cn=mygroup));My code...
View ArticleWhat is VB6's EventParameters in C#
Hi,What is VB6's EventParameters equivalent class/method in .NET framework? and how to get the event's parameters in C#.Thanks,
View Article