I have a decision to make and I'm kicking it to the stackoverflow community.
I need to create an app that has one person controlling a timer and a list of people. This person can add people to the list, and start and stop the timer.
There will be a few client instances (in the same network) that will need to react to the changes to th...
hi, i want log linenumber to my log file, using log4net.the config details of log4net is written programmatically.i tried hell out thing to get line number to be logged but help less,here is my code
private IAppender CreateFileAppender(string name, string fileName)
{
PatternLayout layout = new PatternLayout(); ...
I write my little MP3 player app. I want to allow the user to chose audio output (speaker/headphone or bluetooth headset). How can I turn on/off the bluetooth capabilities of a Windows Mobile phone programatically? Once the connection with the BT headset is made, how can I get notified when the connection is broken/closed/lost?
(Once BT...
I was wondering if there is a good reason for ScriptReference not to override Equals. It would certainly make life in ScriptReferenceCollections easier (e.g. Contains), would it not?
...
Hi,
I have developed windows mobile 6 professional application using targeted framework as .NET CF 3.5 and professional 6 SDK. Also created its SmartDeviceCab file. When I install it on device not having CF 3.5 it fails to run my application (because the device has .NET CF 2.0).
Now I know that I must have NET CF 3.5 on the device where...
I'm trying to call a stored procedure from my .NET code which has one output paramater.
Its all standard ADO.NET stuff using SqlCommand, SqlParameter and so on. But I'm getting the error below even though my transaction level is READ COMMITTED.
You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation le...
We use MapInfo MapX mapping engine in our ASP.NET application. After server (Windows Server 2003 SP2) reinstallation we encountered a strange problem - web app hangs when accessing ActiveX instance.
For example:
MapXLib.Map _mapXMap =
(MapXLib.Map)HttpContext.Current.Server.CreateObject("MapX.Map.5");
_mapXMap.MapUnit = MapXLib.M...
I'm looking for freeware library to connect to OPC DA 2.x server. So far, everything I found has commercial licensing, which is not an option for this project.
...
Okay, the title is not saying too much, sorry. Essentially it's an Architecture Question about an Application that can have multiple database backends (Well, "Database" is loosely used here as it can mean anything from MSSQL to XML Files to an IList in Memory), essentially involving the Repository Pattern.
I have a set of POCOs that ess...
Hi folks,
I'm trying to set a ToolTip onto a control and it's hanging my application.
I programatically add PictureBox's to a FlowLayoutPanel. Works great. I then pick out one of the PictureBoxes to set the ToolTip and .. boom! app hung :(
If I set the ToolTip at the point where i first create each picturebox and add it to the flowlay...
Good afternoon,
does anyone know of a library that would allow me to read the content of adobe framemaker files/books natively in a .net application without having Adobe Framemaker installed (and as a prerequisite for my own application?).
Basically something like Aspose.Word / Cells that read Word / Excel files in natively.. but for f...
//A query to a local object
var deletionCommands = commands
.Where(a => a.Operation != Operation.Addition)
.Select(a => new { a.Prestador.cod_prestador, a.Prestador.cod_desdobramento })
;
//A Linq-To-SQL query
var toDelete = db.Prestadors
.Where(a => deletionCommands.Contains(new { a.cod_prestador, a.cod_desdobram...
I am interested in making a decent WPF application which will be pretty huge. Someone suggested using PRISM which we are currently looking into. We might be using the MVVM pattern to implement this application. I saw some PRISM screencasts and it seems like PRISM is mainly used to inject the regions with different views. Is that the main...
Using C#/.Net, how can I determine which program is registered as the default email client? I don't need to launch the app, I just want to know what it is.
...
Hello. I've already read the MSDN article about it. It seems internally it is the way c# sets which is the function that is going to work as indexer(am I right?). Now, I've seen the following example:
[DefaultMemberAttribute("Main")]
public class Program {
public static void Main() {
...
}
}
Now, I don't get it what i...
Using .NET is there a method, such as an event, of detecting when a Console Application is exiting, I need to clean up some threads and COM objects?
I am running a message loop, without a form, from the console application. A DCOM component that I am using seems to require that the application pump messages.
I have tried adding a hand...
We have an application written in C# .NET that is currently used in production environments. Obviously the release build is used.
Unfortunately sometimes the application misbehaves under certain conditions and we can't figure out why. We are unable to reproduce the issue in house. Yes, more tracing would help, but often it is after the ...
I'm may be just misunderstanding something fundamental here but...
Senario: I call System.Net.Sockets.NetworkStream's BeginRead method and my machine receives a response/request from a network device. The runtime runs my callback in its own thread. Before this thread can call EndRead, the machine receives another response/request.
Ques...
In the modularity quick start (http://msdn.microsoft.com/en-us/library/dd490828.aspx) there is enough details on delay loading a type from an assembly in a xap file.
Is there any way an assembly can be delay loaded using Prism for Silverlight, if it is not embedded in the xap?
...
I have been doing Windows, MFC and GUI programming for several years and need to transition to .NET. While learning WinForms, I see that WPF is the new kid on the block. Does it still make sense to learn WinForms? Also, what's the best way for someone who has been used to low level details to just put those things aside and go with thing...