Ofer Gal's Q&A profile
Visual C# How to have multiple sets of application settings?
Hi, I'm using the standard mechanism to set and retrieve application settings (using app.config, Settings.settings and Settings.Designer.cs). I can set the application settings using the Visual Studio IDE and retrieve them like this: string title = Properties. Settings .Default.WindowTitle; This works fine - for a single set of settings. But now I'd like to run multiple instances of my application, pass them an argument that makes them unique (1, 2, 3, or "master", "slave"), and use that argument to access a specific set of settings. Preferable something like: string title = Properties. Settings .Master.WindowTitle; or string title = Properties. Settings["Master"] .WindowTitle; Is thi ...Show All
Software Development for Windows Vista Hide the header and footer of SequentialWorkflowRootDesigner
Hello, I am trying to hide either the header and footer of the SequentialWorkflowDesigner. I inherited my designer from SequentialWorkflowRootDesigner and set the Header property to null: protected override SequentialWorkflowHeaderFooter Header { get { return null; } } Doing that the start icon disappear. It is like the content of the workflow is pushed up to the designer. If I do the same with the Footer protected override SequentialWorkflowHeaderFooter Footer { get { return null; } } I get an "Object not reference exception". How can I hide both header and footer Thanks Have you tried creating your own header and footer (derived from SequentialWorkflowHeaderFooter) and re ...Show All
Visual Studio Tools for Office Creating Excel Macros on the web...
I am creating an excel sheet on the web, to which I am adding a macro. My problem is that I need a copy of the "Microsoft.Vbe.Interop.dll" to place in my bin folder. Does anyone know where I can get one to put here and how -Thanks in advance I figured it out myself. If you need a solution for this problem try this... From a command prompt, type copy "C:\WINDOWS\assembly\GAC\Microsoft.Vbe.Interop\11.0.0.0__71e9bce111e9429c\Microsoft.Vbe.Interop.dll" C:\ now that it is in the root of the C drive you can move it to your bin folder. ...Show All
Visual Studio <list> bug in Sept CTP vs2005 template
The main_sandcastle.xsl in (C:\Program Files\Sandcastle\Presentation\Prototype\Transforms) selects as follows <xsl:template match="list[@class='bullet']"> <xsl:template match="list[@class='number']"> <xsl:template match="list[@class='table']"> While Msdn ( http://msdn2.microsoft.com/en-us/library/y3ww3c7e.aspx ) tells that the attribute name is "type" and not "class" Thanks Simon. We will be providing a technical refresh for September CTP by the end of this week to address this issue. Anand.. ...Show All
.NET Development Desiging Data Access
Hi All, Been plugging away at .net for a while now and starting to look at best ways to accomplish data access. Im trying to minimise the amount of data involved in a query and at the same time make all data access through a single component. Do i merely create lots of dataadapters and datasets for every use inside my data access component, or do i merly make generic data access calls in my component and then use dataviews etc inside my windows form etc. More and more im discovering its not the actual writing of code but the architecture that is important and not being part of a development team per se means im flying blind so to speak. Any webcast/websites recommendations would be appreciated as well on this topic. ...Show All
Windows Forms UserControl as Container
Hi all, Just a quick question and I am sure there is a simple solution but I just haven't found it yet. I know how to make my UserControl a container by using ParentControlDesigner etc. This works fine and I can drag and drop Windows Forms Controls at design time. However, if I add a Panel to my UserControl Class, compile it and then try to drag and drop another control on the Panel, the Panel does not act as a container. So my question is: If I have a UserControl which consist of a single Panel, which is a pretty lame control I know, how can you get the Panel to act as a container at design time Any help in this would be greatly appreciated. Kind Regards AM PS. The UserControl that I have written does not consist of a ...Show All
Visual Studio Tools for Office Determining the unique nature of an Email message
Prepare yourself, this series of questions is bound to go pretty deep. I am creating an application which munches many terabytes of data continuosly, while munching this data my application must determine if it has already munched this data before and prevent duplicates from inundating its repository. If it encounters a duplicate it simply records the fact that it found a duplicate, and where it found it, then moves on without copying the duplicate. Now to the hard part, emails. When my application finds an email message it needs to be able to determine if an email is unique or not. Is there a field that determines the unique nature of an email message Scenario: Now consider this, if I send an email (emai ...Show All
Visual Studio 2008 (Pre-release) DisplayMemberPath doesn't affect the selected item in text area of the ComboBox?
Hi I have a ComboBox with a list of objects as the source. So I use DisplayMemberPath to display the "Name" property in the dropdown list. However, when I select an item in the list it doesn't use the DisplayMemberPath in the text area and it just displays the object it self (as a string). Best regards, Thomas Andersen Hi Thomas, I can't reproduce what you experienced, here's what I tried: <ComboBox DisplayMemberPath="Length" xmlns:s="clr-namespace:System;assembly=mscorlib"> <s:String>a</s:String> <s:String>aa</s:String> <s:String>aaa</s:String> </ComboBox> I see 1, 2, 3 listed, then when I select an indi ...Show All
Gadgets Anyone interested in helping convert Nike+ Yahoo! Widgets to Vista Sidebar Gadgets?
Well, I have received permission from Nike+ to attempt to convert their Yahoo! widgets over to sidebar gadgets but I am a total noob at this. Anyways, if someone is interested in helping me recode this project, let me know. Thanks guys! Funny you should mention that. I actually already did something like this (it's part of why I learned to write Gadgets). My gadget tracks how many miles I've run in 2007 by accessing the Nike web service, getting the miles, and subtracting the amount I ran in 2006 (162 miles so far!). It also has a swoosh on it built with an SVG object that shows how close I am to my goal, but I can't see to get that part to run in the gadget (it works in IE and Firefox, but not in the ...Show All
Architecture Localication - Numbers/dates - Responsibility of UI Tier or Business Tier?
Hi forum I'm developing a business tier/layer for a web based UI. I would like the UI to be able to run in any culture but I'm guessing that I need to store dates and numbers one way. My business tier can be located on another server. (via remoting). I understand that it is the CurrentCulture on the thread that affects for formatting of dates and numbers. I would like to make it possible for both dates and numbers to be formatted when displayed in the browser - based on the browser language setting. How do I store these numbers and dates Should the UI do some handling before sending the dates or numbers to the business tier or is it the responsability of the business tier Should I just make sure that the thread on the b ...Show All
.NET Development LINQ to XSD: Backgrounder and Bibliography
Reduce Object/XML Impedance Mismatch with LINQ to XSD contains links to most current resources and a bibliography for XML/Object Mapping (X/OM) issues. --rj ...Show All
Visual Studio Express Editions Can some one tell me how to compile please?
Hello. this may sound like a silly question to ask. I have just finished my first project, and i was wondering if some one can tell me how to comile my project in to an application please Also, is it posible to have the aplicasion show its own icon and not the Visual Basic icon, and how do ya do it I am using Visual Basic 2005 Express Edition. Also, if any one would like a copy to try out, your suggestions and comments will be very much apreciated. Thank you. It is already compiled, look in the bin\Debug folder of your project. You probably want to build the release version into bin\Release. Set the icon with Project + properties, Application tab, Icon. ...Show All
Software Development for Windows Vista human workflow and tasklist
hi,im quite new to windows WF i have experience of developing human workflows with wfmc standards,but windows WF concepts seems to be diffrent. i should develop a human workflow which is role based.for example each step of the flow(activity) is assigned to a role(an individual person or a group of persons who meets a certain criteria eg. all employer of department X). i want to know how should i get the task list of a certain user who logs into the system.any methode any example any idea i should mention that i DONT want to involve sharepoint in my system and i want to develop all the system as a web application without incvolving sharepoint. any help on this is welcomed. Great descript ...Show All
SQL Server What is the SQL Server 2005 Dynamic Port Range?
Hi, I'm setting up my SQL Server 2005 instances to use dynamic ports on one of my machines. What is the tcp port range used I need to know the range so I can open the correct ports on my firewalls. Thanks Brian ...Show All
.NET Development Accessing .NET 1.1 Remoting Components from ASP.NET 2.0
Hi, We are migrating an asp.net 1.1 application to 2.0. The remoting components that are referred in asp.net 2.0 are developed in .NET 1.1. When we try to accessing the methods from 1.1 we are getting the following exception. System.Runtime.Serialization.SerializationException: Type is not resolved for member System.Data.SerializationFormat, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. Please let me know what is that I need to overcome this problem. Appreciate if somebody could point me to a sample that uses Asp.NET 2.0 and Remoting 1.1 components. Thanks, Siva picked from other part of this forum In order to use .NET Remoting and Binary Serialization (BinaryFo ...Show All
