What is the difference between Debug and Debug 1.0 within Visual Studio 2008?
Hi, I'm wondering what is the difference between Debug and Debug 1.0 within Visual Studo 2008. Is Debug 1.0 something new? I don't remember to see it earlier. ...
Hi, I'm wondering what is the difference between Debug and Debug 1.0 within Visual Studo 2008. Is Debug 1.0 something new? I don't remember to see it earlier. ...
Hi, I am developing an C# app in WM 6. I am using CameraCaptureDialog to open the camera. I would need to receive callbacks from the camera, I know this method is not implemented by CameraCaptureDialog. I would need for Windows Mobile, sth similar to this method in Android: camera.setOneShotPreviewCallback(previewCallback); Do you ...
Hi, i'm having a problem with an MVC2 app im trying to deploy. my app uses the windowsidentity.current.user.name for a number of data calls. However, when i've deployed this to iis7 windows server 2008, the username and domain its passing from windowsidentity is the application pool identity. i'm new to iis7 and never had this problem ...
Hello, When I create an msi using VS2010, the shortcut and filetypes are all getting created as advertised. I am able to disable advertise property for shortcuts by setting DISABLEADVTSHORTCUTS. However, the filetype is still advertised. How can i disable advertise for file types? Thanks, SAN ...
Hi Given the following Expression<Func<T,bool>> matchExpression; How can i create another expression that is a 'not' of the existing one. i have tried Expression<Func<T, bool>> func3 = (i) => !matchExpression.Invoke(i); but this is not supported by the entity framework... Regards ...
XML Source: <documents> <document> <id>3</id> </document> <document> <id>7</id> </document> <document> <id>1</id> </document> </documents> I need the document-element with the highest value in its id-element (so <document><id>7</id></document> in the example). I can't change the C# code,...
Apparently there is no predefined list available in .net. I'd like to use a number of standard colors, e.g. something like red, green, blue, yellow, ... i.e. the typical colors consisting of 00 and FF components, followed by those with additional 7F components, ... Is there a way to retrieve these "standard" colors or do I have to writ...
I'm defining a function that takes another function as a parameter (using Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.4927) but I get a weird error. Here's the function definition: public ManagementScope ConnectComputerWMI(string computerName, string username, string password, Action callbackProcessEnd) {... } ...
Hi, I've started a new job this week and am trying to get my head around this WPF stuff. I've gotten to a point where I'm trying to add a ComboBox to a UserControl, and to populate it from a collection which exists in code. I've been getting along pretty much on monkey-see-monkey-do coding for the most part; copying and adapting existi...
I have solution sln, that has many csproj projects. anyone know a way to programmatically read the list of References of all csproj projects in a VS2008 of sln file? ...
All, A very generic question. I have a C# service which listens to a queue for XML messages, receives them, processing them using XSLTs and writing them in the database. It does process about 60K messages a day of about 1Mb each. The memory when is idle is going down to 100MB which is really good. However recently I have started proce...
Is it possible to communicate with a WCF service without using NETCFSvcUtil to generate the proxy? I'm trying to call a WCF service on a mobile using compact framework. I do not want to use NETCFSvcUtil to generate a proxy for a particular reason. I have this sample code on the mobile side to test it out : // This is the contrac...
I have two versions of System.Data.SQLite.DLL - for x86 and x64 platform. The x86 version keeps in application folder and x64 version keeps in appFolder\x64 folder. The application compiled as AnyCPU. How can i load needed version of SQLite according to windows platform? ...
I am getting all events, with a certain attribute, and I want to modify these events adding a call to another method. var type = GetType(); var events = type.GetEvents().Where(e => e.GetCustomAttributes(typeof(ExecuteAttribute), false).Length > 0); foreach (var e in events) { var fi = type.GetField(e.Name, BindingFlags.NonPublic | ...
Hi guys, I have a portal that fetches news from hundreds of resources around the web. How can I be able to use these data to determine trending stories ? Any ideas would be highly appreciated. Thanks. ...
There are some tools, like PostSharp, that generates code when compiling. How is it done? Can anyone provide some simple example? ...
I ran into a situation where FindControl was returning a control that wasn't a complete match of the Id I was searching by. There are two controls in the parentcontrol with similar Ids like: "MyControl" and "MyControlAlternate". When I call FindControl("MyControl") the control returned is "MyControlAlternate". I was wondering if anyon...
Is it possible to add custom fields on some tab of the User editor to for example allow Sitecore users to have a profile image? We want a Sitecore based website to allow certain people to visit pages which other user types can't see. Also we want a list of all users with a certain profile. This made me think of custom user fields in the ...
I have a BindingList that I would like to use for a datasource on a DataGrid view. I added dataGridView1 and button 1 to a form. When I press the button, nothing shows up on the dataGridView. If I use a DataTable for the data source it works fine. I must be missing something simple. public partial class Form1 : Form { BindingList<...
I'm using the WPF Toolkit's DatePicker to select a date. We would like to set DateTime that we get after selecting a date to be at the end of the selected date. Since we are converting the to UTC time we need to be able to specify the user's time zone. Since the tool is running on our machine's we cannot use the current machine's loca...