We are making a Jabber client for our internal use in our company and somehow we need to catch the moment when the user tries to kill the program to actually restart it or just make impossible for the user to kill the client.
Is this possible?
Our Jabber client will be written in C#.
How would I go about accomplishing this?
...
I'm working with the Entity Framework and I'm having a problem:
When I try to insert some data in a table it tells me that it's violating integrity of reference but the other table is normally populated and has the value i'm trying to insert.
Pedido pedido = new Pedido();
pedido.Data = DateTime.Now;
db.AddToPedido(pedido);
db.SaveChan...
I'm writing a special data structure that will be available in a .NET library and one of the features of this data structure is that is will be thread safe provided that only one thread writes data to it, and only one thread reads data from it (the reader thread and the writer thread can be different).
The question is how can I enforce ...
I'm looking to build a simple electronics project (with some help, I'm not a hardware kinda person) and I'd like to use .net (C#) to do the coding side of it.
What I need to know is where can I get a cheap controller that I can connect via USB or serial and the suitable libraries to use for talking to it (as most System.IO.Serial docume...
Hello,
does anyone know, how I can use OpenStreetMap inside my Compact Framework Application? Is there a Framework or something like that? All I can find in their Wiki is how to contribute to their Project and to user their Software to Map data. But I want to use their maps to show the users Location inside my own App. I could not find ...
Is it possible to send a query string to the url using get method and then getting the values in another page using eval or bind on mobile?
some code example would b helpful...
thanks alot
...
I've finally gotten this working after days of struggle.
I've got a simple database of People and Departments:
I can use strongly-typed ASP.NET MVC views for reference/navigation properties! See the list of departments...
Part of my Person/Edit view:
<% using (Html.BeginForm()) {%>
<%= Html.Hidden("Id", Model.Id) %>
<fie...
Unclear if there are ccr gurus here but let's try anyway.
I have this function in my code:
dq.EnqueueTimer(TimeSpan.FromMilliseconds(TIMEOUT), timeOutFn);
which will call my function after the timeout. However since I need this timer on a lot of open sockets, I would like to pass a parameter(or ID) to the timer function.
How do you ...
I have a crystal report that I have to add a Bar Code to. I have downloaded some free and demo TrueType fonts Code 39, Code 128 and UPC from various sources. When I print out the report I can see the bar code but it will not scan with my scanner(the scanner works as I have tested it on multiple other bar codes). Do I need to use some...
Does a method like this exist anywhere in the framework?
public static void Swap<T>(ref T left, ref T right) {
T temp;
temp = left;
left = right;
right = temp;
}
If not, any reason why?
...
Hello,
Hopefully you ASP.NET pros out there can answer this question. I have a single web application that contains a website and a web service - both have several assembly references in common (data access layer, utilities, etc) - however, recent changes made to the web service will require different versions of the common assemblies,...
I have a program that saves data to hard drive using binary serialization. If I recompile the program on a 64-bit machine, can it deserialize the data from 32-bit machine?
...
Possible Duplicate:
Is it worth learning Java when you already know C# fairly well?
I have been working on the .net framework for the past 5 years. Does it make sense to learn Java. Aren't both the Java and C# language / runtime / libraries meant for general purpose programming? How do they differentiate themselves?
I guess w...
I need to begin working with milliseconds in .Net 3.0. The data will be returned from an Oracle Database and if I understand correctly Oracle can only store dates that use milliseconds as a TimeStamp. It does appears that the Date type in .Net can handle milliseconds but when I have tried to retrieve Timestamps from Oracle stored proc...
The only C# generics explanations I can ever seem to locate go into the "List<T>" discussion and end there. I am looking for something a little more in-depth, specifically when dealing with <T> in method signatures -- I see some pretty wild syntax at times and am having trouble understanding why and when to use it. I feel like I could ...
We're building a plugin for a commercial application that uses a recent version of a commercial UI framework. Our plugin references a different (older) version of the same framework as well as the API dlls for the app into which it plugs. We're now getting a duplicate-type conflict (CS0433) at runtime when loading certain parts of the ...
Is there a good tool that will look at a .NET assembly and tell you all of the dependencies it has on other assemblies? Sort of like the old depends.exe from VS6 days.
UPDATE
I guess the one thing that I am missing from Reflector is verion #'s. Unless I am missing something. How do I tell what framework is required by an assembly?
I'm ...
I'm working on a mixed managed/native application using c++/CLI.
I know that the CLR will suspend all managed threads on (a clean) shutdown, but what about the unmanaged ones? Is it possible for the unmanaged threads to still be running, while the CLR runtime is shutting down/freeing memory/running finalizers?
...
Possible Duplicate:
C# member variable initialization; best practice?
Is there any benefit to this:
public class RemotingEngine
{
uint m_currentValueId;
object m_lock;
public RemotingEngine()
{
m_currentValueId = 0;
m_lock = new object();
}
vs. this:
public class RemotingEngine
{
uint...