Answer Questions
venablc Playing wav file using MediaElement
Hi, I am trying to play a simple wav file but it doesn't seem to work (no errors just no sound comes out). Even the examples in the SDK don't work. Is anyone else experiencing this This is the code I am using (on Beta 2): <MediaElement Name="myMediaElement" /> <Button Margin="100,20,20,0" Width="200" HorizontalAlignment="Left"> Click for Ringing Sound! <Button.Triggers> <EventTrigger RoutedEvent="Button.Click"> <EventTrigger.Actions> <BeginStoryboard> <Storyboard> <!-- Sound wave from this source is played when the button is clicked.--> <MediaTimeline Source="media\ringin.wav" Storyboard.TargetName="myMediaElement" /> </Storyboard> </BeginStoryboar ...Show All
EShepley Apply 2 or more styles to an element
Is it possible to apply more than a single style to an element Say I have two controls that basically use the same style, except for minor differences. If I create and use 2 styles which are mostly identical, there's a lot of repetition, so it'd be good if a common style can be applied to both, and then a secondary style can be applied to each element specific to its needs. Is this possible Obviously I could directly set element attributes to achieve some of this, but then what's the whole point in using styles Alternatively, can styles inherit from other styles If so, we could have the base style, and then each element can have its specific style derived from this common base style. That would be useful too. Thanks in advance. ...Show All
Uggywuggy sdkvars.bat could not be opened for write..
Hi all, I tried installing VS 2005. And i got the error "sdkvars.bat could not be opened for write"... I have uninstalled all that has to be done for this. Disabled antivirus software I did went through this forum and referred the previous threads. I followed this thread.. Step 1: Go to My Computer Step 2: Move your cursur(mouse) to the File Edit View Favorites Tools Help shown on the top of address bar and the back button. Step 3: Go to Tools and click Folder Options... Step 4: Go to the View tab / Advance Settings: Step 5: Go to the very bottom and you would see Use simple file sharing (Recommended) Uncheck it. Click OK Step 6: Go to your Microsoft Visual Studio 8 Folder in Program Files St ...Show All
William Xie View Pending Checkins
I am creating a custom source control.Is it possible to populate and display the View Pending Checkins window in the Visual Studio with my custom source control If yes, hw do i do it pls help. You can show the View Pending Checkins window using DTE.ExecuteCommand("View.PendingCheckins"). About populating it, I think it is done automatically by VS, assuming that you are building a Source Code Control (SCC) provider compliant with VS. The VS 2005 SDK has documentation about this subject, and if I remember correctly there were two approaches, one simple and other more complex. From within a package you can use GetService(Typeof(DTE)) Thanks Carlos.But how do I obtain a reference ...Show All
smk_k InnerXml parsing
< TextBlock DataContext = " {Binding Source={StaticResource xmlTrees}} " Text = " {Binding Path=InnerXml} " > </ TextBlock > The above XAML produces the string: <species Name="Red" Scientific="Acer rubrum"/> <!-- red maple --> Now, it took me some time to produce that but what I really want to produce is the text of the 'Scientific' attribute. Can I do that entirely with XAML or do I have to parse the InnerXml in the code-behind or something else All clues appreciated. You can use the XPath property of the TextBox's Binding, instead of the Path. You can set it to something like XPath=species ...Show All
Deza How can we label a already labeled file?
Hi All, My requirement is as following:- Let say a project has 5 files F1 F2 F3 F4 F5 Prod Prod Prod Prod Prod EOY EOY1 EOY3 Initial tag for all files is Prod and after that code is changed with different label (EOY,EOY1,EOY2) Can I add a Label EOY on FIle F3 before EOY1 label( That EOY lable should not have a code of EOY1) Can I do this with the help of some script Please let me know if its not clear,I will try to explain in my problem again. Thanks Shubhangi You can add another label to the file, but it will point ...Show All
Bill Reiss Accessing parent project from invoked child project
When a project calls msbuild on a child project - is there any way to access anything in the invoking/parent project Is there any way to determine the project filename, or anything about the parent project This could be either via the msbuild XML or from a custom task, ie via the object model. I've been looking at the object model and at the internal classes but haven't found anything appropriate. /marcus Ok, this is interesting; if I build the parent project from the command line, the solutions in the child project file will build, but the output is going in BinariesRoot\Debug or BinariesRoot\Release instead of the path I want to set. If I run the team build from VS, nothing in the child project build ...Show All
RipRyness How to add some custom configuration information for a special endpoint in Service side?
I host my service in IIS, I want to add some configuration for a special endpoint in web.config. For example: I want to add a option "ApplicationName=SZ" for a special endpoint. The question is how to put it and How to get the configuration info in Service code <system.serviceModel> <services> <service behaviorConfiguration="returnFaults" name="NCS.IConnect.CodeTable.DbCodeTableProvider"> <endpoint binding="basicHttpBinding" contract="NCS.IConnect.CodeTable.ICodeTableProviderBase"> </endpoint> </service> </services> <behaviors> <serviceBehaviors> <behavior name="returnFaults"> <serviceM ...Show All
Sanchit Bahal see-reference to generic method from addiotional content htm file
Hello, using the Sandcaste Help File Builder, I have a bunch of "additional content" htm files where I sometimes use <see ..> tags to reference the generated documentation. How do I correctly reference a method with a generic type parameter from such additional files I tried both <see cref="MyClass.MyMethod{T}(byte[],bool)" /> and <see cref="MyClass.MyMethod<T>(byte[],bool)" /> but neither works. The former version is the syntax that works within the class library docs, but does not seem to work coming from additional content. Thanks Karlo The cref value can be a full or partial identifier for an item in any document ...Show All
pedestrian Outlook - Thread-Index from Header of email
Hi all, I am currently working with C#.Net and am trying to access the header information of emails within outlook. In particular the Thread-Index so I can relate emails together. I would setup an event for incoming emails (no problem) and at that point check the header information getting the Thread-Index (how ). Any help would be much appreciated. Thanks in advance. Kind Regards, Grant. Maybe ConversationTopic and ConversationIndex are the properties you're looking for ...Show All
Furrukh Baig Excel Add-in issue opening workbook
I've got an Excel 2003 VSTO 2005 add-in. It works fine when running debug mode. I need to open a preexisting saved worksheet. I've done so by adding the path to the worksheet in debug mode and it opens fine. However, when I go to open the file independent of VS, and try to reference the active workbook in the initialization of my add-in, it comes back with a object reference not set error. I've done a count on the workbooks and it appears that the workbook isn't yet loaded. Why is the workbook loading when I debug but when I run direct by double clicking on the .xls file, it isn't until after the addin has been loaded Denis, Thanks for the additional information. Would it solve the issue if You add an application level ...Show All
rwbogosian UI Design: Office 2007 graphics to XAML?
I have several UI elements designed in Excel 2007. and would like to export these as XAML. Pasting to Expression Design converts them to images in most cases. I would like to keep them as vector graphics + effects. This would be a great workflow for UI design, if there is a way to convert to XAML. Not that I'm aware... Can you explain why this workflow is so appealing What makes you want to do drawing design in Excel Thanks, Rob Relyea Program Manager, WPF Team http://rrelyea.spaces.live.com Hello Rob, The main reason is that its so much faster for me to prototype UIs in Excel 2007 than in Design or similar tools ( im not a graphics pro ). Design has 4 shape ...Show All
Elfar Alfre&#240;sson - MCAD printDialog not appears
Hello. I have the following situation and i hope you can help me: I use Visual Studio 2005 and Crystal Reports. I can view the reports, that i bind via c# code to the viewer and also setup the database logon information such as the username, password and the name of the database. If i view the reports during runtime, and click on the print button on the toolbar, no print dialog appears. But if i view the report in the preview mode i can call the print dialog window to show off and i can also print it out. Exporting to pdf works fine! Now what could be the failure I hope you can help me! Thank you very much! Soheil Amjadi Attachment: C# Code that binds the report to the reportViewer and sets the database information: //---------------- C# ...Show All
TrevorW msdn library won't install
I have Visual C++ .NET 2003 Standard Edition. When I install the library in hangs on disc 2 every time(I let in run for 2 hours). I tried transfer the files from the cd on to the local drive and the computer crashes. The softare came with a box set I purchased some time ago. Can anybody help me solve the problem, who to email, or where to download I would greatly be apprecited. Thanks. Edit: The CD is 2003JAN. With a folder 1033 inside. I understand there are different ones. Also the crash is actually a blue screen. Have you tried calling Product Support They should be able to provide a new CD2 for you. Here is part of what Microsoft Support has sen ...Show All
gabit7 The expression cannot be evaluated while in design mode
I have only one window open and it is a vb document. I never use design mode for anything (with exception to SOME windows GUI interfaces... but none in this project). IF I am not in design mode... and ONLY use text editors... how can I get this message: The expression cannot be evaluated while in design mode. Is this a MSFT BUG or is there a way to be in design mode without actually using the designer, attempting to engage it, or actually using anything non-text to write a program If I am not mistaken, the debugger performs a pseudo-build in memory to instantiate objects, is this correct In the context of the project itself which kept generating that error, it was a library that I built for our company's websites. The web ...Show All
