Hello everyone,
I need to develop an instant messenger (like MSN Messagner, but only simple and basic function is fine), based on .Net (C#). I want to integrate the instant messenger with my current web site user. I want to know any open source (better C#) instant messenger to reference?
BTW: some of the users are using internal IP add...
Like start at c:\ (or whatever the main drive is) and then randomly take routes? Not even sure how to do that.
public sealed static class FolderHelper
{
public static string GetRandomFolder()
{
// do work
}
}
...
Hi All
I've been wondering how to do this for ages. I'm creating a little app, and I need to figure out how many apps or windows are displayed in the TaskBar.
I've yet to find any info on this at all, I'd appreciate any help at all.
Thank you :)
...
Hi..
I have a solution that contains three projects.
A main project with my MVC app, a silverlight application and a (silverlight enabled) WCF service project.
In my silverlight project i have made a Service Reference to my WCF service.
And i pretty much got that working.
In my WCF service i have a method that returns an Book object, ...
I am employing ThreadPool.QueueUserWorkItem to play some sound files and not hanging up the GUI while doing so.
It is working but has an undesirable side effect.
While the QueueUserWorkItem CallBack Proc is being executed there is nothing to stop it from starting a new thread. This causes the samples in the threads to overlap.
How can...
What are the requirements for running .net framework targeted application on Windows CE 5?
If I try to start an application that I developed for Windows Mobile 6, I will get the following error.
Cannot find 'Projectname' (or one of
its components) Make sure the path and
filename are correct and that all the
required libraries ...
I'm trying to port a piece of Java code into .NET that takes a Base64 encoded string, converts it to a byte array, and then uses it to make a X.509 certificate to get the modulus & exponent for RSA encryption.
This is the Java code I'm trying to convert:
byte[] externalPublicKey = Base64.decode("base 64 encoded string");
KeyFactory key...
I have some C#.NET code to take a string containing custom color codes and use them show colorized text in a RichTextBox. It works great on Windows, but running under Linux on Mono 2.4.2.3 I get this error:
RTF Parsing failure: Malformed color entry
RTF Stream Info: Pos:324 Line:1
TokenClass:Text, Major:8, Minor:0, Param:-10000000, Tex...
I'm implementing a custom control with some labels on it and I need to measure the size of those labels to have an optimal layout. In this way I can properly show the control for each font and font size.
Could you tell me how can I do that, please?
Thank you.
...
I am trying to create a Win32 Semaphore object which is inheritable. This means that any child processes I launch may automatically have the right to act on the same Win32 object.
My code currently looks as follows:
Semaphore semaphore = new Semaphore(0, 10);
Process process = Process.Start(pathToExecutable, arguments);
But the sem...
Hello,
when I try to connect my server throw connector/net using ssl with pfx certificate I had problem with establishing the connection. I get connection timeout. And the server probably fall down (I dont know it for sure, becouse I dont manage the server).
On the Windows XP works all right, but on Windows 7 dont.
Please, where is pro...
We have an application, where we get a message from an external system and then we take a picture, do some processing and return something back to the external system. Doing some performance testing, I found two problems (they are somewhat related). I was hoping someone will be able to explain this to me.
1) Does _capture.QueryFrame() b...
I've been doing simple multi-threading in VB.NET for a while, and have just gotten into my first large multi-threaded project. I've always done everything using the Synclock statement because I didn't think there was a better way.
I just learned about the Interlocked Class - it makes it look as though all this:
Private SomeInt as Integ...
Hi,
I am using C# and I am having trouble loading large files into a binary field use byte arrays.
Basically, if I load a file that is too large, I get memory problems.
Is there a way to load a file into a binary field without using large amounts of ram, i.e. avoid loading the file into memory first?
If it helps, I am using Advantage...
On the server side I have the following class:
public class Customer
{
[Key]
public int Id { get; set; }
public string FirstName { get; set; }
public string SecondName { get; set; }
public string FullName { get { return string.Concat(FirstName, " ", SecondName); } }
}
The problem is that each field is calculated...
I tried to make an action fixture and it’s not working. (c# with Slim runner)
Basically it seems like it's trying to interpret it as a column fixture.
|!-Fitnesse.BuyActions-! |
|Start|!-Fitnesse.BuyActions-!|
|check|total |0.0 |
|enter|price |12.00 |
|press|buy |
|check|total |12...
I have a rich html textbox on my asp.net mvc application. The rich html textbox is some jquery plugin that I use and has basic stuff like bold,underline and etc.
Now I am anticipating that people will maybe write something in word and then copy and paste it into my textbox. However I limit the number of characters a person can have.
Th...
On the clien side I have the following assignement of objects list to a datagrid:
var customerContext = new RiaTestCustomDomainContext();
CustomerGrid.ItemsSource = customerContext.Customers;
customerContext.Load(customerContext.GetCustomersQuery());
It works good, but I woudl like to have the same list of obje...
Hi
this is driving me nuts. I believe I asked this exact same question but I can't find it anymore(I used stackoverflow search, google search, manually searched my posts, searched my code).
I wanted something that would be like the C# String.Format where you could do something like
string format = String.Format("Hi {0}",name);
just f...
I’m seeing a rather strange occurrence in the request information section of an ASP.NET health monitoring email I hope someone can shed some light on. This is a publicly facing website which runs on infrastructure at an Indian hosting provider. Health monitoring is notifying us of server errors via automated email but every now and then ...