.net-3.5

Add a custom button to titlebar in Windows Mobile 5

Is there a way to add a button to the title bar in windows mobile 5? (Next to the X or OK button.) I have an app that locks the users out of the start button, so I need to create an alternate way of launching the help file. Failing the title bar, I will look for a way to customize what a hardware button does. I am using C#. ...

RIA Services not returning Included Type Collection Property

I have a WCF RIA Services app and a model with a UserRole type that contains a collection of UserPermission objects. I use .Include("UserPermission") in the domain service and when I debug it I've verified it definitely contains the UserPermission types before returning. When I debug the Silverlight 3 client it returns the UserRoles bu...

GUI output differs from local vs production

I am having a weird experience. I am dynamically creating a row of textboxes at runtime when the user clicks a button. However, on my local machine the text boxes appear correctly (example [TextBox1] [TextBox2] [TextBox3] [TextBox4] [TextBox5] [TextBox1] [TextBox2] [TextBox3] [TextBox4] [TextBox5] [TextBox1] [TextBox2] [TextBox3] [Text...

show reports using graphs.

i am currently using MScharts to display information from my reports... is there a way i can display the reports in a better way.. using silverlight or something whic is free for commercial use// i want the reports to graphs to just stand out.. any suggestions?? thanks ...

Winform .Net 3.5 - Get path of ApplicationFolder for Office Add-In

I am writing an add-in for Expression Web 3 in VS2008 The solution has a Windows Installer setup project in which the ApplicationFolder is tagged to hold some ancillary files. I need to be able to access those files during the add-in's startup, but naturally the Application object as well as the AppDomain reference paths to Expression ...

Winforms / .Net - dynamically creating install .exe or script

Hello -- Does anyone know how I can Dynamically create an installation package that installs files into a folder that is determined at installation-runtime, not by the user, but by obtaining the UserAppDataPath for that specific user on that specific PC. By dynamically I mean that I must create the installation package programatically ...

Cannot find suitable formatter for custom class object

I'm writing messages to a Message Queue in C# as follows: ObjectMsg objMsg = new ObjMsg(1,"ascii",20090807); Message m = new Message(); m.Formatter = new BinaryMessageFormatter(); m.body = objMsg; queue.Send(m); and I'm trying to read the messages as follows: Message m = new Message() m.Formatter = new BinaryMessageFormatter(); Messa...

.net framework 3.5 and windows 2000 sp4

Hello All, Can we install dotnet framework 3.5 on windows 2000 sp4 or its not possible. ...

Will Visual Studio 2010 only run 4.0 unit tests?

I have different projects written in .NET 3.5 and some unit test projects to cover them. When converting my solution to be used in Visual Studio 2010 I keep all my projects in 3.5 but the unit tests are forced to 4.0? This way I cannot use them with my regular projects anymore. Resulting in this: Could not load file or assembly 'xxx.xxx...

System.Timers.Timer event handlers threading mode

Hello gurus Can't find the answer to my question in MSND : Does Timer class guarantees that all handlers subscribed to Elapsed event will be executed on the same threadpool thread ? If yes, will they be executed according the order in wich they were added to Elapsed event ? Thanks ...

Is this method a good aproach to get SQL values from C#?

I have this little method that i use to get stuff from SQL. I either call it with varSearch = "" or varSearch = "something". I would like to know if having method written this way is best or would it be better to split it into two methods (by overloading), or maybe i could somehow parametrize whole WHERE clausule? private void sqlPo...

.NET 3.5 SP1 prerequisite, MS giving the clients 4.0

I have been using an MSI to install a WPF application using the .NET Framework 3.5 SP1. I have set up .NET 3.5 as a prerequisite in the MSI, and what has been happening for ages is that when the user does not have .NET 3.5 SP1, the MSI first has them download and install that before resuming the installation of my application. Since ye...

use variable within a linq query

take this linq into consideration: list.Where(sil => sil.XML.Element("ticket") != null && sil.XML.Element("ticket").Attribute("id").Value == smsRequestIn.TicketID) if the "ticket" element is not null it searches for it twice and hence is not very effective. Is there a way to use some sort of variables within the linq expression so I c...

How to create Outlook's new mail window with attachement in ?

I'd like add to my app function allowing sending email via Outlook same as eg Adobe Reader does. So after pressing email button I'd like to see Outlook's native 'new mail' window with my document attached in. Any idea how to archive that? ...

Custom Checkbox style for WPF

I would like to skin a wpf default checkbox to something custom. Since it does not really make sense to start off a entirely new control, i'd like to override the Windows Chrome template binding for the Bulletchrome sub component of the checkbox. However I cannot do this like I can with checkboxes for example. tried using something like...

Consuming WCF in ASP.NET Web Application

Hi, My application is in asp.net 2.0. Is it possible to consume WCF service developed in asp.net 3.5? If possible, how can we consume wcf service in asp.net 2.0? Thanks in advance. ...

How to add a menu item into a File Type in Outlook

I'm trying to create a Export method of a VCF file to our CRM application. I'm running the new VS 2010 but target the project as .NET 3.5 what is the technique to hook up into this context menu? I'm very new to AddIns but as a logical line of thought is to create an Outlook AddIn, but I'm failing miserably to add a menu item to this...

How to model localized items

I'm currently designing a e-commerce solution. One of the primary requirements is for the store to support localized item details. The same store must be able to support multiple languages via the user's language selection and/or browser preference. I have two tables: Item (id, sku, price, ...) ItemDetails (item_id, language, ti...

Any reason why NGEN should hang and never complete for a particular assembly?

I have a class library project for .NET 3.5 built with Visual Studio 2008. If I try to NGEN the core assembly in this solution file, NGEN never completes, or at least not in the time I've bothered to let it run (like overnight). Has anyone else experienced this? And if so, did you solve it? And if you did, how? What steps did you take?...

What's wrong with this date behavior in C#?

If I output a formatted date as follows: DateTime.Parse("2010-06-02T15:26:37.789 +01:00").ToString("HH:mm:sszzz") I get the expected result: 15:26:37+01:00 However, if I parse the same date, convert to UTC and output with the same format as follows: DateTime.Parse("2010-06-02T15:26:37.789 +01:00").ToUniversalTime().ToString("HH:mm:s...