scott_wylie's Q&A profile
Windows Forms DataGridViewComboBoxColumn and Enum values
Hi, I'm trying to use a ComboBoxColumn in a DataGridView to allow editing of an enum value in a class. E.g public enum Stuff { Apples, Pears, Oranges } public class MyTestClass { public Stuff MyStuff { get { return m_MyStuff; } set { m_MyStuff = value; } } public string MyString { get { return m_MyString; } set { m_MyString = value; } } &n ...Show All
Visual Studio Team System Setting up Alerts
My install (single-server) of Team System was very smooth, except for a small glitch that I received when I inputted my smtp server. It stated that it could not connect to the smtp server, however, I was able to ping it without any problem. I thought it might correct itself, but when I try to set up the alerts, nothing ever gets sent. First of all, is there a place where I can update the smtp setting for Team System Also, if it tri ...Show All
Smart Device Development How to change current UI culture at runtime?
HI. I have a form and I want to change its UI culture at runtime. The method System.Threading.Thread.CurrentThread.CurrentUICulture = ... does not working in .Net CF. I am using VS .Net 2005Beta2, C#. Thanks. That is correct. Changing the UI culture at runtime is not supported (in v1 or v2): http://www.danielmoth.com/Blog/2004/11/cultureinfo.html Cheers Daniel ...Show All
Visual Basic "Windowed" is not a member of PresentParameters
Hi all, The compiler is telling me that "Windowed" is not a member of PresentParameters! But as far as I can tell it is just the same as SwapEffect, which the compiler accepts. Anybody got any ideas on what is going on I am using vb2005beta. Thanks Dick Public Function InitializeGraphics() As Boolean Try ' Now let's setup our D3D stuff Dim presentParams As PresentParameters = New PresentParameters() p ...Show All
Visual Studio 2008 (Pre-release) Custom Attributes with Lambda Expressions
I am intrigued by a comment made by Anders on the LINQ panel, to the effect that LINQ empowers rule and notification systems. Such systems are likely to use custom attributes to capture the rule or trigger expression. This in turn demands that custom attributes should support Func<> as a property type. Here is a hypothetical example of its application in DLINQ. [Table] public class Customer { &nb ...Show All
Visual Studio 2008 (Pre-release) 3D Animation
When I try to animate the property of a ModelVisual3D I get "Multi-step property paths may not be specified on an object of type 'System.Windows.Media.Media3D.ModelVisual3D'" And this happens with GeometryModel3D too. Is this by design or is it a bug The only way to avoid that is to go up on the tree and use the viewport as the target for the animation. The problem is when ModelVisual3D contains other ModelVisual3Ds ...Show All
Visual Basic How can I run a page impersonating an authenticated user?
Hello, I have created an asp.net web page that makes many WMI calls and a few calls to a third party com object. Each of these calls requires specific rights to run correctly. I have set up forms authentication and the login.aspx page works fine. I can retrieve the User.Identity.Name value on my main page with no problems. I am unable to make the main page run with the credentials provided on my login.aspx page however. I have tried the code fou ...Show All
Visual C++ /FC compiler switch apparently not working
Hi all, When trying to output the __FILE__ predefined macro, I always get the file name fully qualified regardless if I have /FS set or not as a compiler option. Is this switch not working, or is there some other compiler switch that is forcing fully qualified path names Jonathan Caves - MSFT wrote: The option /ZI - support edit and continue - also forces __FILE__ to expand to the full path-name. If ...Show All
Visual Studio Team System Registration Service
We are creating an artifact provider and I am having a hard time finding documentation about the artifact type registration process. I know that there is a registration service, and I know that I need to create a xml file to register the type. What I cant seem to find is a description of what the elements in that xml file mean. for instance, in this section: <ServiceInterface> <ServiceInterface> <Name>IBISEnablement&l ...Show All
Visual Studio Team System Team Build appears to die mid-build
Are there any known issues with Team Build and C++/CLI projects I have a very simple WinForms application in C++/CLI in a team project, and I've configured a Team Build to build it. The Team Build service is installed on the dev machine, so I know there's a complete Visual Studio/SDK installation there. The build appears to actually build everything (Debug and Release builds), but the status in the builds window in VS never advances past ...Show All
SQL Server SSIS: Inserting unknown members from fact table
Looking up surrogate keys in a dimension table and adding these to your data flow is easy when there is a match in your dimension table for every key in your fact table. However, I am puzzled by how to manage the data flow when no match can be found for a specific key in the fact table when doing the lookup AND I then want to insert this unknown key as an unknown/inferred member in the dimension table. The problem is further complicate ...Show All
Visual Studio Tools for Office Button is not getting removed after uninstalling the Word add-in
Hi All, I'm creating and installing a Word Add-in. The add-in creates a button on standard toolbar. When I uninstall the add-in the button is not getting removed. The add-in is the basic add-in from the link http://support.microsoft.com/default.aspx scid=kb;en-us;Q302901 as it is. The code in OnBeginShutdown is as follows: public void OnBeginShutdown(ref System.Array custom) { object omissing = System.Reflection.Missing.Value ; System.Wi ...Show All
SQL Server Parent-child hierarchy: how to get readable member unique names?
Is it possible to have a parent-child dimension which is referenced from the fact table via an integer key but shows a string key in it's MDX unique member name Here is the background to my question: I have a dimension with a single parent child hierarchy. The key column is test_key and the parent column is test_key_parent, both of type integer. This works beautifully except for the MDX member names which are similar to "[Dim Test].[H ...Show All
.NET Development Regex expression help
I need help making a regex expression. I want to find every 3rd comma. Here is my string I want to run the expression on... Day,Amount,Direction,3,100,West,5,43,North,5,44,NorthWest,7,54,South,2,5995,East,,,,,,,,,,54,35345,,,543,North,6,,West Now, I want a regex to find every third comma and then I will replace it with a semicolon ";" with my own code. Eventaully I want the above string to be like this, with every 3rd comma a semicolon Day,Am ...Show All
System Center General Availability?
Will SCCP remain available to Technet subscribers only, or is there a plan to make it generally available If a general release is scheduled, is there a release date planned Thanks. Followup: SCCP 2006 is now available to MSDN subscribers! See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=339379 for more details. ...Show All
