.net-3.5

What's the best way to create a Windows Mobile application with multiple screens in C#

十年热恋 提交于 2020-01-03 19:40:11
问题 I am creating a Windows Mobile Application in C# and Visual Studio 2008. The application will have 5-6 main 'screens'. There will also be bar (/area) with information (e.g. a title, whether the app is busy, etc) above the screens, and a toolbar (or similar control) below the screens with 5-6 buttons (with images) to change the active screen (i.e. the screens will share the top bar and toolbar) What is the best way to implement this? Use multiple forms, and just include the toolbar and top-bar

How can I reliably check client identity whilst making DCOM calls to a C# .NET 3.5 Server?

a 夏天 提交于 2020-01-03 19:09:28
问题 I have an old Win32 C++ DCOM Server that I am rewriting to use C# .NET 3.5. The client applications sit on remote Windows XP machines and are also written in C++. These clients must remain unchanged, hence I must implement the interfaces on new .NET objects. This has been done, and is working successfully regarding the implementation of the interfaces, and all of the calls are correctly being made from the old clients to the new .NET objects. However, I'm having problems obtaining the

How can I change the address of a WCF service reference?

旧街凉风 提交于 2020-01-03 17:12:31
问题 I have an application which is used internally and uses WCF for communication between client and server portions, however it will soon need deploying to sites where server names are different. The WCF services are hosted as a Windows service using the netTcp binding. At the moment, the addresses of the services are specified using the Add Service Reference command in Visual Studio. Is it possible to make the base address of the WCF services a user preference, and then make the service

Unrecognized element exception with custom C# config

。_饼干妹妹 提交于 2020-01-03 07:31:12
问题 I have the following bits in App.config for a .NET 3.5 Windows Service: <configSections> <section name="ConfigurationServiceSection" type="SomeApp.Framework.Configuration.ConfigurationServiceSection, SomeApp.Framework"/> </configSections> <ConfigurationServiceSection configSource="ConfigSections\configurationServiceSection.config" /> I've got this in configurationServiceSection.config: <ConfigurationServiceSection> <ConfigurationServices> <ConfigurationService name="LocalConfig" host=

Using Google Calendar API V3 with .net framework 3.5

久未见 提交于 2020-01-02 19:28:13
问题 I am using a Web application which uses .Net 3.5 framework. It uses the Google calendar API V1. When searched in google forums it was found that the Google calendar API V1 & V2 are deprecated and should use V3. Google Calendar API V3 platform support is .NET Framework 4 and 4.5 So should our application be upgraded to .NET framework 4 or 4.5 ? Or is there is any solution for using google calendar API in .Net 3.5 framework ? 回答1: Question: Google Calendar API V3 platform support is .NET

Microsoft Sync Framework - How Does Bidirectional Sync Work?

我与影子孤独终老i 提交于 2020-01-02 08:11:35
问题 I have two clients A and B. Both clients have identical, synced local data caches. If client A makes an offline edit to record X and then client B also offline edits record X and syncs with the server, when client A syncs with the server, the change that client B made is not reflected and no amount of bidirectional syncing makes the two clients correctly synced with the server. Other than this, my sync app works great for deletions, additions edits etc. It's only simultaneous offline edits

Outside Property inside a DataTemplate WPF

落爺英雄遲暮 提交于 2020-01-02 05:36:05
问题 Scenario: I have a ListBox and the ListBoxItems have a DataTemplate. What I want to do is put a ContextMenu in the DataTemplate. The catch is that I want this ContextMenu ItemsSource to be different depending on certain properties in the window. My initial thought is that I could just bind the ItemsSource to a Property in the window and that would return an ItemsSource; however, I cant seem to bind to this property correctly. I believe this is because I am in the DataTemplate and consequently

Mutable wrapper of value types to pass into iterators

社会主义新天地 提交于 2020-01-02 04:40:27
问题 I'm writing an iterator that needs to pass around a mutable integer. public IEnumerable<T> Foo(ref int valueThatMeansSomething) { // Stuff yield return ...; } This nets me "Error 476 Iterators cannot have ref or out parameters". What I need is this integer value to be modified in the iterator and usable by the caller of the iterator. In other words, whatever calls Foo() above wants to know the end value of valueThatMeansSomething and Foo() may use it itself. Really, I want an integer that is

How can I update data in CLOB fields using a >> prepared query << with ODP (Oracle.DataAccess)?

与世无争的帅哥 提交于 2020-01-02 03:12:26
问题 I'm trying to execute a prepared sql query which updates CLOB fields in an Oracle 10g database (10.2.0.1). If I execute the following query from inside SQL Developer and supply the values for the placeholders, there is no prblem. If I however execute it through an OracleCommand (Oracle.DataAccess.dll, version 1.102.0.1 (I think), .NET Framework 3.5), I get the error message below. Note that we are not using the default oracle client as we require bulk insertion. The given ODP version and .NET

How do I convert the Cookies collection to a generic list? Easily

梦想的初衷 提交于 2020-01-02 01:43:05
问题 Anyone know how I can convert Request.Cookies into a List<HttpCookie> ? The following didn't work as it throws an exception. List<HttpCookie> lstCookies = new List<HttpCookie>( Request.Cookies.Cast<HttpCookie>()); Exception: Unable to cast object of type 'System.String' to type 'System.Web.HttpCookie' 回答1: The reason this happens is because the NameObjectCollectionBase type that Request.Cookies derives from enumerates over the keys of the collection and not over the values. So when you