Answer Questions
Sunil_D Resize Elements inside the canvas
Canvas contains some UIelements like rectange, ellipse, button etc. I would like to resize child elements, when the canvas is resized. I'm able to resize the Canvas using Adorner. Can someone suggest me the general approach to resize any element that located inside the canvas. for e.g <Canvas><Button>Test Button</Button></Canvas>. In this case Button element should be resized with respect to the canvas. Thanks in advance, Venu try this < Window x:Class = " WindowsApplication2.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Titl ...Show All
rwright142 Avoiding security alert in Outlook while accessing Contacts in VSTO 2005
I am trying to access Items programmatically within a VSTO 2005. When I try to access the 'magic' properties such as email1address, I get the security warning within Outlook. I do not want to go back to redemption - that's why I am using VSTO. How do I avoid the security warnings when doing something like the following: private void Form1_Load(object sender, EventArgs e) { LoadContacts(); } private void LoadContacts() { Outlook.NameSpace outlookNameSpace = Globals.ThisApplication.GetNamespace("MAPI"); Outlook.MAPIFolder contactsFolder = outlookNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts); Outlook.Items contactItems = contactsFolder.Items.Restrict(" ...Show All
LKeene Determining Project Type
Been searching thru the forums for an answer to this one, but was unable to uncover one. I'm trying to determine the type of project loaded (i.e., Web Project, Web Service Project, Class Library, Windows Forms, etc) What is the best way to go about achieving this Many thanks Carlos, I apologize. In my haste to present my own solution, I mistated your contribution to the discussion about determining Visual Studio project types. I did run your code listing in the article titled HOWTO: Get the project flavor (subtype) of a Visual Studio project from an add-in. The use of the various interfaces in that code is interesting but it still seems that, with regard to project output types/templates, your code only distinguishes betwee ...Show All
Michael Carty HOWTO: Custom titles for X and Y axis for a bar chart
Is there a way to have the title names for the X and Y axis feed off report parameters It must be something easy that I am missing.. Thanks Thank you.. For some reason I forgot to add the .Value.. I wonder why I don't see the expression symbol against the Title to click.. May be it was omitted for space issues Thanks Steps: * Open the chart properties dialog * Go to the x-axis or y-axis tab * Type in an expression into the axis title field, such as =Parameters!P1.Value -- Robert ...Show All
DaPosh Print Layout mode showing incorrect # of pages at first
Sometimes when switching to Print Layout mode, it will say page 1 of 1, switch back to Interactive Mode and back to Print Layout mode again, and then it will display the correct # of pages. Anyone have any idea how to correct this FYI: I am using the report viewer in local mode. Most reports work just fine. Brian - I think you posted the same reply about two weeks ago! See three messages up. I too have just updated to SP1 and am still experiencing the same issue. The first time "Print Layout" is selected (either manually or through code) the page numbers on the report control bar are one less than the actual page numbers (1 of 5 instead of 1 of 6). As soon as I pa ...Show All
Peter Heijmahn C# / Object Experts - Why Does this Code Work ??
In playing around creating buttons, I cam up with the following code which I thought would generate an error. Specifically I thought re-declaring btn would either trigger an error, an object with the same name had already been declared, or that at least when the 'new' btn was declared, the 'old' btn would be destroyed. The hashTable here has 5 items, 5 buttons are displayed on the form, and all 5 are available to "ButtonOnClick". I would have thought that if no error were generated, only the last btn would still be in existance and available to "ButtonOnClick". Does the btn object go out of scope anyway after the "stack.Children.Add(btn);" line IDictionaryEnumerator enumerator = hashtable.GetEnumerator(); ...Show All
waruwaru How to create shortcut of excelsheet
Hi, Actually i am working on VSTO (Excel) deployment. I have successfully created setup file for my excel application & its working fine without any error/exception. Now problem is: After installation user dont want to navigate to "ProgramFile\TargetOfTheInstalledFolder" & then search for excelsheet & double click on it to open. User want that, At the time of installation there should be a shortcut of the excelsheet file (not of the folder in which application installed) ctreated at the desktop & by clicking on that shortcut, the excelsheet that installed in the installation folder get open & start working. Please help me so that I can add this feature into my setup file. Thank you ...Show All
Mark_Davies BLinq customization
Does anyone know if it will be possible to customize BLinq page layout, as well as to alter navigation structure Sorry, there are no plans to make the source code for Blinq public. It helped a lot. Does BLinq use a code generator to create automatically the code that goes behind the pages If so, would that code generator be open to us, mere mortal users :) The page and controls that are generated by Blinq are not customizable. After the web app is created, the app can be opened in VS and any part of the app can be changed. Customization of Blinq output is a feature we're considering for the Visual Studio version of the Blinq functionality. The styles used by Blinq websites can be changed. The CSS, browser, and sk ...Show All
Andr&#233;_Silva Replace All Text
If I have a reference to a ProjectItem (say a C# code file), what is the easiest way to replace all of the current text with new text without deleting and re-creating the file Thanks, Scott. If the ProjectItem is open, you can get its objProjectItem.Document property, cast it to EnvDTE.TextDocument and then use the objTextDocument.ReplacePattern method. If it is not open (objProjectItem.IsOpen(...) returns false) then you can open it calling objWindow = objProjectItem.Open(...), which returns a window that will be invisible unless you call objWindow.Visible=true. ...Show All
Lisber Infopath Automation
Hello, Please accept my apologies if this post is in the wrong forum. I checked around and believe this is the correct place to post. If not please advise and i will promptly move. I am currently using an infopath solution for data collection. The forums contain a number of dropdown lists that need to be populated at run time. Unfortunately, a requirement exists that specifies that the infopath forms must function in a disconnected manner (not my idea!!). So that pretty much excludes all the sharepoint lists / webservice / dataset examples i have seen. I would like to know if it is possible to populate the infopath form controls using automation. IE: //Create an infopath application object //Open an infopath form / template //Obtain ...Show All
robinjam One Endpoint with Multiple Addresses on Same Port
Is it possible to create a single endpoint with multiple addresses For example, I'd like to create a Web service and be able to access it with http://localhost:8000 http://127.0.0.1:8000 http://machine-dns-name:8000 If you try to open a ServiceHost specifying one of these as the base address and the others as alternate addresses, it immediately fails. Enable port-sharing doesn't seem to fix it. Thanks, \Steven Hi. First, I incorrectly mentioned http when I really use net.tcp. Second, respectfully, if you're suggesting that "it just works", well, it doesn't. For example, I can register the ServiceHost instance with any one of the above addresses, net.tcp://dns-name:8000/ for e ...Show All
Kraven3d Linq to MySql prototype - looking for developers
Anyone out there who uses MySql Am looking for contributors for the Linq to MySql project. Question to Microsoft: I have called the generator 'MySqlMetal.exe', so that Linq users would know, what it does. Do you have any problems with the blatant copying of SqlMetal name I can rename it, if you want. Thanks, Jiri George Moudry This sounds interesting :) Maybe in the future it would be possible to write DLinq within php environment against mysql. Forgot the link: http://code2code.net/Linq_Mysql ...Show All
Boo79 Problem in Reading Word File Programmatically, Problem getting WordML
Hello Sir, I am a C#.NET developer, using VS 2005 & Office 2003. My objective is to read the word file programmatically and then store the data in XML file and then again read data from XML file create File from that Data and Again Load that File into Word. I try to read bytes from word document but I failed to store it in XML file and read it back. Then I thought about WordML. i thought that I can store the WordML in XML node and then from it i can again Consist a document which I can load into Word/ Display through MS Word. I have tried ActiveDocument.Content.Text but that just gives plain text, no formatting. I haven't find any property that gives me WordML. I hope I have exressed my problem in an understandable way. I have to stror ...Show All
VOC can't install nor uninstall Beta2
hi everybody since last week i am unable to do anything with WinFX beta2 I began with FebruaryCTP : all was fine I upgraded to Beta2...after uninstalling using standard uninstall and the uninstall tools. for some unknown reason WCF didn't install and since then it s a nighmare !! I tried everything...read all the posts here and here....nothing succeed.. right now : uninstall tool says : can t uninstall some components...check you have admin rights (I try to translate as the message is in French...) I have admin rights so the problem should be elsewhere... if i try to install again, there is a message : PerformanceCounterInstaller.exe has encountered an error and it ends... i don t know what to do....except perhaps formatting my hard drive ...Show All
Chris Baldwin - MSFT How to prevent duplicate items in Listview control?
The new listview control doesn't have .FindItemWithText method, so is there away to do this Thanks!!! To answer the question posed in your post's title, you can filter the view to which the ListView binds. Beatriz Costa demonstrates how to do this: http://www.beacosta.com/2006/08/how-do-i-filter-items-from-collection.html To answer the question in your post's body, you have to iterate over the items in the data source and perform the search yourself. Since the items in a ListView don't necessarily have text (i.e. a string) associated with them, it wouldn't make sense for the ListView to expose a method FindItemWithText. HTH ListView is designed as a purely data-bound control. (One d ...Show All
