.net

Retrive List of hardware and software installed on remote machine in LAN. Which DLL to Use ?

I am trying to retrieve a list of all hardware like Device Manager and Softwares installed like in "Add and Remove Programs" on a remote system in LAN. Is it their any 1 or 2 dlls to include instead of all dll for each hardware. ? ...

What are the differences between Silverlight 2 and Silverlight 3

Can you give me a breakdown of the differences between Silverlight 2 and Silverlight 3? ...

What is F# ? Which problem it solves that C# can't ?

I recently heard about F# in coming. I wonder why .NET world need another programming language ? What the deal? Is there a problem that C# cant solve and F# can? Is F# a dynamic language? [Update :Be careful not to confuse type inference with dynamic typing. Although F# allows you to omit types when writing code, that doesn’t mean...

AS400 programmer looking to learn OOP langauge. Which is better Java or .Net

Hi All, I have worked as RPG400 programmer for 8 years. Since last 2-3 years not doing much programming as I am working as project Manager for non-AS400 projects. Now I am planning to pickup OOP programming skills and continue fun with programming. Looking for your help to decide which language should I learn Java or .Net? What sh...

httplistener doesn't work on port 80?

The setting: Windows 7, IIS installed and running. The following piece of code: HttpListener listener = new HttpListener(); listener.Prefixes.Add("http://server.com:8080/path"); listener.Start(); Works like charm - any request made against the server is received in my code. However, when I make the following change (moving to port 8...

LinQ To SQL And DataBinding

I have a form (WinForms) with a TextBox Binded to a Datasource. The datasource is a LinQ To SQL query returning one single row. This row have only one filed, varchar(100), not nullable. My problem is that if the user go to the field (with the focus), he can't exit while he insert a data because the data field cannot accept null. It is...

Is there any technique to convert a image in to real text which is copyable

I have scanned a page of a book and saved it as a picture. How do I convert that image into real text? Is there any technique for that? Any help will be highly appreciated. ...

FormView.FindControl() returns null until DataBind()

Why method FindControl() returns null on FormView until call DataBind(). After that it returns everything correctly? What workaround are there? Call DataBind() before first call of FindControl() ? ...

web services @.net or java

confusion in using either jax-ws(java) or .NET for implementing the web services. i would like to develop some web services and check the security loopholes in them(means to stimulate some attacks in SOA such as coercive parsing attack, dos attack etc..) Which one either Java (or) .NET will be better for programming the web services for ...

net start command delayed ??

Hi, I have some slow embedded PC's running Windows 2000 and am having trouble starting a service reliably. There is a VERY noticeable delay between issuing the command 'net start xxx' and the message 'the xxx service is starting'. This is causing my service to fail to start. My service regularly fails to even receive a 'Start' command ...

How to scan through really huge files on disk?

Considering a really huge file(maybe more than 4GB) on disk,I want to scan through this file and calculate the times of a specific binary pattern occurs. My thought is: Use memory-mapped file(CreateFileMap or boost mapped_file) to load the file to the virtual memory. For each 100MB mapped-memory,create one thread to scan and calculate...

Full Text Search: find similar software names

Hi, I'm looking for a full text search algorithm that will allow to find similar program names, for example "Mozilla Firefox" and "Firefox 3.5, or "Adobe Reader" and "Adobe Acrobat Reader v10". The Levenshtein distance is too inefficient in this case, since spelling doesn't change. It has to use serial scanning (not indexing). I need...

.Net library to handle spatial data from SQL Server

I want to create application which would display spatial data on Map. I'm thinking about using SQL Server spatial features but not sure how should I handle that data in C#. Is there a good library I could use for that? ...

How to decide what is the .Net target

We now use VS2003 (target to .Net 1.1) and we want to upgrade to VS2008, but I wonder what should be the new .Net target? Should I leave the target as .Net 1.1 (very old, not installed on all computers) or upgrade it? If I upgrade - Is 2.0 enouth? or maybe upgrade to the latest 3.5 (our clients use Windows XP, Vista and Windows 7) What...

Need tool to format html (indent, add whitespace)

I am working on a .net project that generates html. When the html string is generated, the is no whitespace or indenting. This makes understanding the generated html difficult. Is there a tool that will take my string of generated html and format it so that it looks nice? ...

Where to store configs for simple .NET application?

Hello, I'm programming a fairly simple application which I want to cut to just one simple exe file + some data storage (XML for example). My question is regarding configuration files. Where to put those files? I saw few applications that have just exe file (uTorrent, Media Player Classic - I can use them without any installation), but ...

export datatable to excel, value 3E2 become 300, supposed to be text 3E2

I am converting datatable to excel using the following code: public static void ExportDataTabletoExcel(String fileName, DataTable thetable) { if (thetable != null) { //clear anything in io buffer HttpContext.Current.Response.Clear(); //set to excel for to save file. HttpContext.Current...

Is there a system colors collection in GTK#?

How can I get a multi-platform system colors collection in GTK# (like System.Drawing.SystemColors in .NET)? I want an equivalent to System.Drawing.SystemColors.Control and System.Drawing.SystemColors.Highlight, ... ...

create a child process

Hi You can create a thread given a delegate to method, can I create a process in the same way? I want to do that to be able to close the child process from task manger if something goes wrong. I expect the answer is no and the only typical way is windows service. Thanks ...

How to determine which network adapter is connected to the internet

I'm writing a program in C# that needs to monitor the amount of internet bandwidth currently in use so it can do a background upload when the internet usage is low. How can I automatically determine which network adapter is the one connected to the internet? ...