.net

DLL include in exe.file?

I build a project in C#. From another project I have 5 DLLs. Is It possible to include the DLL in the exe, that I only give 1 File to people and not x files? I tried ILMerge, but the output file ever opened a Command prompt with the application - useless. ...

DataTemplate.DataType alternative in Silverlight

I have a view model with a property Fields which is an ObservableCollection<FieldVM>. In the view that uses this property, I have an ItemsControl like so: ... <ItemsControl ItemsSource="{Binding Fields}" /> ... FieldVM is an abstract class, implemented by such classes as TextFieldVM and EnumFieldVM. During run time, these FieldVM-impl...

How do I ensure my C# software can access the internet in a Citrix + ISA environment?

Hi everyone, A client recently informed us that deployment of our software in their environment has failed due to a proxy error when the software attempts to access the internet. The client has a combination of Citrix and Microsoft's ISA server. The software allows the use of a proxy and the ability to manually enter authentication in...

Using CompareTo() on different .NET types (e.g. int vs. double)

Hi, I've got a static method that accepts two object type variables and runs the CompareTo() method: public static int Compare(Object objA, Object objB) { return (((IComparable)objA).CompareTo(objB)); } Problem is that CompareTo() throws an exception when trying to compare between different types (e.g. int and double). Does any one...

C# how to do <enter> on barcode?

I have a combination of ItemNo and LotNo value. Example : ItemNo: I123 LotNo : L12345 Barcode Value is: "I123L12345" I want to put the value of ItemNo to txtItemNo.Text and LotNo to txtLotNo.Text How can I instruct the barcode to do Carriage Return or Enter so that I can be able to input 2 values on one Barcode scan. My barcode s...

Radar chart color inner circles

Hello, Is it possible to color the inner circles of a radar chart. I want to color each section differently The image below should clarify: Wanted radar chart Thanks in advance! Kind Regards, JJ ...

SQLite on C# Cross-Platform Applications

Can someone help/guide me with using SQLite lib on Linux (MONO) and Windows (.NET) On linux i use native mono sqlite client, and on windows i use http://sqlite.phxsoftware.com/ is there a way to define 'using' directives like this : #if (linux) using Mono.Data.Sqlite; #else using System.Data.SQLite; Another problem is small diff...

AxShockwaveFlashObjects again

Hi I was cheating from a sample program to integrate with Flash. I able to add a reference to ShockwaveFlashObjects.dll to my windows app, but What is 1- AXShockwaveFlashObjects. 2- How to add a reference to it, or I have to create it using some tool? Thanks ...

How do I get stdout into mstest output when running in new app domain?

I have been working on test framework, which creates a new app domain to run the tests in. The primary reason being the dll's that we are testing has some horrible code that relies on the dll being located in the app domain path. (No I can't change this code.) The problem that I am having is that my test team is writing a bunch of funct...

WPF disable window moving

In wpf how can i prevent user from moving the windows by dragging the title bar? ...

What happens to the output to a log4net console appender in a Windows service?

I have a console project that I have been working on. I added log4net to handle all my logging. In some places I have made use of the console appender. When I turn this application into a Windows Service should I just remove the console appender or what happens to that output? Does it just get lost? I would like to keep it if all possi...

What might cause the big overhead of making a HttpWebRequest call?

When I send/receive data using HttpWebRequest (on Silverlight) in small blocks, I measure the very small throughput of 500 bytes/s over a "localhost" connection. When sending the data in large blocks, I get 2 MB/s, which is some 5000 times faster. Does anyone know what could cause this incredibly big overhead? Additional info: I'm...

Unregistering a COM wrapped .NET assembly

I created a COM exposed .NET 2.0 dll and registered with my windows operating system using 'regasm' and 'gacutil' (in GAC). Then I tried to call this component from my classic ASP page. It worked fine. But, I need to change the functionality of my assembly. I unregistered it again using 'regasm' and 'gacutil' (from GAC) utilities and c...

Developer Express Aspx Grid - Not doing updates as you go along

I'm having a look at the developer express grid for ASP.NET. I'm happy with how to set it up in conjunction with an object data source to do updates etc. However I dont want to save as I go along, I want to perform multiple updates and then save them all at once. I'm assuming that I need to store the interim updates somewhere e.g. in ...

How to debug a flash component within .Net application

Hi I write a code similar to that on this link. http://bojordan.com/log/?p=269&amp;cpage=1#comment-23502 the break points inside Flash events is not working, I think I need to attach the debugger to some Flash process in order hitting those break points, instead of .Net exe. but when I run the application I don't actually find Flash....

Working with a Java library from .NET

I need to work with a third-party Java library from .NET. Can anyone recommend a more elegant way to do this short of using a local socket connection to a Java wrapper. The information I've come across so far seems a little out-dated, and suggests things like using COM. The library is used to connect to a server. I think some RMI stuf...

.net equivilent of Delphi's QuotedStr function

Hello, Does .net have the equivilent of Delphi's QuotedStr function. This replaces all quotes with two quote characters and then adds a quote to the start and the end, e.g. Lets assume the varaible s holds the string: Welcome to Steve's Store then QuotedStr(s) would return: 'Welcome to Steve''s Store' ...

ASP.Net DataSet display issue

Hello everyone, I am using Microsoft Search Server 2008 + C# + .Net 3.5 + VSTS 2008 + ASP.Net to develop a web application which invokes Search Server 2008 Web Services when a button in the html page is pressed. I am using the following code to query content from Microsoft Search Server 2008. My question is how to display the search re...

How to structure interfaces in application directory hierarchy ?

Put them all in one separate folder structure or along with classes which implements them ? ...

e-commerce clothing site in .NET from the scratch or site copy ? suggestions please

Hi all, I am thinking to create an e-commerce site for a clothing business. I have bit of a development knowledge in c# .net, html, css and other web technologies. Could you please advise on these questions ? Is it a good idea to create a site from the scratch ? I have a running example of such a site, however it is bit old. So can ...