How to get a list of asian text font?
Is there any way to get the list of asian font? (see http://dl.getdropbox.com/u/61853/FontDialog.jpg) or how do I know whether a font support asian text or not? ...
Is there any way to get the list of asian font? (see http://dl.getdropbox.com/u/61853/FontDialog.jpg) or how do I know whether a font support asian text or not? ...
I started to play with GeckoFX. Unfortunately I didn't found any big documentation for that. I need to get DOM tree for the page. Iterate every element and get it's information. Can someone please help me? ...
Hi guys, I'm having trouble inserting a new LinqToSql object over WCF. What I'm doing is just sending an Orders Batch to the service. Inside the batch are Orders that have already been sent previously. When I do data.batches.InsertOnSubmit(newbatch) I get a sql error: "Violation of PRIMARY KEY constraint 'PK_HTOrder'. Cannot inse...
Related to my previous question: Preventing Memory issues when handling large amounts of text Is there a way to determine how much memory space my program is occupying? I end up processing a large amount of text file and usually store the processed objects in memory. There are times where there will be too much information, and ...
My .g.cs file for a window i made is not generating.. Is there any way where i can make it generate manually? ...
We are trying to talk to a (possible)Java WebService from .NET 3.5 using WCF. The WebService defines a Timestamp object which seems to be a datetime without the decimal milliseconds. WCF decided .NET would use a datatime as the object backing in the proxy class. When sending objects with the timestamp to the Java WebServer the datetim...
I have a windows forms app running on a machine that is not on a domain, that needs to be able to move a file from the local filesystem to a UNC path. I have a username and password for that path. I was wondering is there any way to do this directly with out execing the net.exe command? Ideally I wouldn't have to map a drive. ...
Does anyone have any idea what would cause the Fusion loader to simply skip over a DLL with no warning or acknowledgement? I'm seeing this problem when attempting to do (in C#) Assembly.LoadFrom("c:\Deploy\bin\WebServices.dll") from a command-line application. That DLL has a dependency on Platform.DLL, but the loading of that dep...
I'm creating custom ValidationRules for a .NET webtest. Is there some easy way to create unit tests for these validation rules? ...
I've found this article on MSDN. It describes how you can write your custom login page and a membersip provider for a SharePoint website to manage access to the website the way you want. I'm wondering: would it be possible to only add this custom login page, without specifying a membership provider? If I authenticate the user on the logi...
I want to create a "temporary cache lookup" to speed up a file lookup on my webserver. What I have now is a folder full of images, and if a user requests an image I use a File.Exists(...) to check to see if the image exists. If it doesn't, download it from another server, and either way, redirect the user to it. The problem with this ...
We're connecting to a web service and the fault message we're getting back isn't deserializing (at all), and no version of class that I can make will deserialize correctly. We have no control over the server side of things. The server does not allow for discovery, so adding ?WSDL to the end of the URL of the endpoint results in an error,...
I have two RadioButtons: r1 and r2. I have to enable both on Enabled = true and disable only unchecked on Enabled = false public bool Enabled { set { if(value) { r1.Enabled = value; // true r2.Enabled = value; } else { if(!r1.Checked) { r1.Enabled = value; // false if not checked ...
I have one application in wich I need to make code changes almost all time (changing crytographic procedures, etc...), so my idea is to have all my debug parameters and variables activated each time I'm making changes. I don't want to be commenting and uncommenting code all the time, so my question refers to simple lines of code that wil...
I've seen multiple posts and questions about the DesignMode property of Forms and UserControls. The idea is that you want to check if the control is in design mode (e.g. the control is shown in the Visual Studio Designer), and avoid code that can only be run in, well, run-time. The problem I've seen many have - and my failing memory expo...
I am currently working on a .net project which I am dividing into different assemblies. One assembly (a dll) will contain most of the domain logic, and the other assemblies (.exe) will contain most of the presentation and control logic. My question is, if I want to prevent someone from getting my DLL, and adding it as a reference on Vi...
I have implemented my mvc base controller called DefaultController using dependency injection pattern in order to be able to construct test cases. Example below: public class DefaultController : Controller { protected readonly ISessionHelper _sessionHelper; string _thisUserOpenID; protected IUsersRepository _UserRepository;...
I have a class which has some unit tests, but when I am running tests I would like the class to be created with a different constructor. Something like this: [TestFixture] public class MyClass { public MyClass() { /* set up for production */ } [TestFixtureConstructor] public MyClass() { /* set up for testing */ } [Test...
I have a dotnet process that through calls to an unmanaged dll is communicating with a Java process. Under some circumstances, the Java process appears to be crashing and taking my dotnet process down with it. No exceptions are raised, the process just dies. Upon crashing, java is creating a log file with names like "hs_err_pid3228" e...
I need to take pairs of bytes in, and output shorts, and take shorts in and output pairs of bytes. Here are the functions i've devised for such a purpose: static short ToShort(short byte1, short byte2) { short number = (short)byte2; number <<= 4; number += (short)byte1; return number; } static void FromShort(short number...