Answer Questions
dn8 Can a Trigger match against a value taken from another property?
Is it possible to set up a trigger based on the value of another property I tried using the Binding syntax, but it seems that the comparison value can not have a binding in it: <Trigger Property="ProgressBar.Value" Value="{Binding Path=Maximum}"> What I am trying to achieve is a progress bar that is only visible when it has a value that is not the minimum or the maximum. I can get it to work if I hard-code minimum and maximum values, but I want the style to be applicable to any progress bar with any value for maximum and minimum. The other thing I tried was binding the Visibility value to the Value value using a Converter that would return Visible or Hidden appropriately, but to do this it needs to know ...Show All
Sean Connolly What's equivalent in WPF for "Application.Restart()" in WindowsForms?
Application.Curent object doesn't contain such method. Any suggestions Thanks As it turns out, Application.Restart() is quite hard to implement properly, as evidenced by using Reflector to inspect the WinForms implementation and discovering that it isn't actually implemented properly there, for a start. It completely ignores command line escaping when creating the command line to start the new process with. To demonstrate this, you can use some very short code just to show command args and perform a restart: static void Main(string[] args) { Console.WriteLine("Restart Tester"); Console.WriteLine("command line: " + Environment.CommandLine); Console.WriteLine ...Show All
Gurpreet Singh Sawhney Excel UDF Description
I have the following sample code snippet which after registering using ComRegisterFunctionAttribute is correctly available in Excel as User Defined Function (UDF). /// <summary> /// Calculate Income Tax. /// </summary> /// <param name="income">income for which tax is to be ascertained</param> /// <returns>taxable amount</returns> /// public double Tax(double income, [Optional] string incomeFromOtherSources) [System.EnterpriseServices.Description("Calculate Income Tax"), HelpKeyword("Help Keyword Attribute")] public double Tax(double income) { if (income > 0 && income <= 7000) { return (.10 * income); } if (income ...Show All
LalitBoliya Adding a Rule in MS Outlook with VC++
I would like to know how to create a VC++ program that can add a "Rule" to MS Outlook 2003. Can I use any automation for the above Else kindly suggest me some solution for addin a "Rule" to MS Outlook 2003 using VC++. Unfortunately, Outlook 2007 is the first version to allow rules to be manipulated programmatically. -Phil ...Show All
Joshizzle More training videos/ tutorials for the Expression Interactive Designer?
Hello everybody! I am searching for more tutorials for the expression interactive designer. I made the tutorials which come with the latest CTP and the training videos. Does anybody know more tutorials/training videos Thank you all in advance simon Hi Simon, The Expression Interactive Designer is supported, and information and announcements are available, in the community newsgroup: http://www.microsoft.com/communities/newsgroups/en-us/default.aspx dg=microsoft.public.expression.interactivedesigner&cat=&lang=en&cr=US . This forum is for the WPF Designer for Visual Studio, the more developer-oriented product. thanks chad ...Show All
R2ks How to Freeze Range in owc11 spreadsheet?
How to Freeze Range in owc11 spreadsheet thx. owc = Office web components. These aren't part of VSTO. The better place to ask how to handle them is the dedicated newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.web.components&lang=en&cr=US ...Show All
LOTG Error loading type library while creating Word projects
This has now happened to me twice. One day VSTO works fine. The next day when I try and create a Word project I get the following message in both VB and C#: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)) I can create Excel projects just fine. Running repair on the VSTO Runtime solves the problem. Anybody have any ideas as to why this happens and whether it can be eliminated Robert Hi, You might try downloading regmon.exe from www.sysinternals.com (recently aquired by Microsoft) and watching regkeys when you try to create a project. Although this will generate a huge log as the system is touching regkeys all the time, you should be able t ...Show All
Art_ Issues with generating .net 2.0 client for consuming a WCF service
hi all, I have created a WCF service and specified message contracts for defining how a request should be sent when invoking a WCF method and also the response. I am using a Windows Service to host the WCF service. The service runs fine and there are no issues with that. The problem is when I try to generate the proxy class (.Net 2.0 client), I am getting a warning as shown below Warning: This web reference does not conform to WS-I Basic Profile v1.1. R2710: The operations in a wsdl:binding in a DESCRIPTION MUST result in wire signatures that are different from one another. An end oint that supports multiple operations must unambiguously identify the operation being invoked based on the input message that it r ceives ...Show All
Adam23 Keychars?
hi How can i get the KeyChars i want to get the keychars and then want to respond as i get the char. How can i do that for example if i press "A" char,i want to get a message "You pressed A" Thanks for answers thank u george i will try thanks george i solved it by doing this: private void textbox2_KeyDown( Object sender, KeyEventArgs e) { if (e.get_KeyCode().Equals( Keys .Enter)) { Messagebox.show("Welcome"); } } thanks again I assume you also did textbox2.add_KeyDown(new KeyEventHandler(textbox2_KeyDown)); or similar (don't think J# autobinds GUI events based on method name [something_someEvent] as VB.net ...Show All
Mahesh kumara VSTO Add-in - how to make form fill app window
I am creating a VSTO add-in that consists of a very large windows form. It probably sounds a bit strange, but I would like the form to fill the entire Word application window. (If that is not doable, then I would like it to cover the active document window.) I thought I had answered my question by setting the form's WindowState to Maximized. However, that seemed to be overkill, as my form went outside the bounds of Word app window (especially when the Word app is not in a maximized state). Does anyone know how to set an add-in's window size and position so that it fills the entire parent window area Thanks I have posted a sample solution to my blog. http://blogs.msdn.com/pstubbs/archive/2 ...Show All
TrevorW SourceSafe LAN Service does not work with NetBIOS/DNS aliases.
We have a Windows Server 2003 R2 acting as SourceSafe server. The server has been setup with a normal hostname (SERVER08) and has been enabled to allow LanMan aliases. The server has been changed as described in these short articles: http://www.sanx.org/tipShow.asp index=305 or http://www.jsifaq.com/SF/Tips/Tip.aspx id=8062 The alias is used so we can move the SourceSafe database to other servers without the clients knowing. This setup means that the server can be fully accessed in all normal procedures (RFC, HTTP, Network shares, etc) using either name. Also SourceSafe clients can connect to the server using either the \\SERVER08\SourceSafe or \\VSS\SourceSafe UNC path. Ev ...Show All
AndyC73 Crystal Report viewer XI Dblclicked event
Hi, How i can receive the Dblclicked event occurs when an object is double clicked in Crystal Report viewer XI like Crystal Report viewer 8.5 i'm using visual studio dot net 2005 C# any one have idea to help me plz send to me at bahaa_sa5@hotmail.com thankx hello every body, Crystal Report viewer XI release2 (11.5) has the solution ...Show All
Kirk Evans serviceModel/Bindings error
I am testing a clickonce deployed, Internet app on newly installed Vista Ultimate and newly installed .NET 3.0, XP systems. The app tests fine on the development machine (XP, .NET 3.0) The error message is: An error occurred creating the configuration section handler for system.serviceModel/bindings: Could not load type 'System.ServiceModel.Configuration.BindingsSectionGroup' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. (C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 102) Any ideas Thanks John Line 102: < section name = " bindings " type = " System.ServiceModel.Configuration. ...Show All
Old Jeffrey Zhao Interaction between Toolwindow and DSL
Hi, I need to create a toolwindow to interact with my DSL. Can someone point to an example or a good place to start looking on how to acomplish this Best regards Thank you so much, Gokhan, that helps a lot! Di Thanks alot Gokhan, Sounds like what i needed. Im going to give it a rty. Hello Gokhan, I am interested in this subject too, can you explain more about your code, it seems "OnDocumentSelectionChanged" is another EventArgs you defined yourself Thanks Di Hi Di, Here's the complete code for the toolwindow: namespace Altinoren.ActiveWriter.ToolWindow { using System; using System.Collections; using Microsoft.VisualStudio.Modeling; using System.Windows.F ...Show All
Tryin2Bgood Problem with Visual Studio 2005
Hi, I installed Visual Studio 2005 and it was working perfect till yesterday. I installed another SW Development (DevCpp) to study the differences. The problem is that now when I try to create a project with Visual C++ it hangs I can’t do anything. I tried to uninstall both and reinstall Visual Studio 2005 only, but still same problem. The problem is only with Visual C++, if I try to create new project in any other language there is no problem. Anyone can help Thanks, regards Hi, it’s Visual Studio itself Hi!! Thanks!! Now it’s working perfectly. I had the same annoying problem. I reinstalled it about a thousand times, uninstalle ...Show All
