Implement axShockwaveFlash in Visual Studio C#

Hi,
I'm not sure if it is the right forum. I can just try it...
I'm using Visual Studio 2008 in C#. In a project I  want to play *.SWF files what works fine. Unfortunatelly the  AxShockwaveFlash Contol doesn't support some typical methods like the  Click Event. So I wrote it on my own:
public class myAxShockwaveFlash: AxShockwaveFlashObjects.AxShockwaveFlash
    private const int WM_LBUTTONDOWN = 0x0201;
    protected override void WndProc(ref Message m)
      switch (m.Msg)
        case WM_LBUTTONDOWN:
            Visible = false; // I also tried SetVisibleCore(false);
          break;
      base.WndProc(ref m);
I want to hide the AxShockWaveFlash control when I clck on it. There are no errors while debugging.
Unfortunatelly  the AxShockWaveFlash doesn't disappear. If I use  methods instead that  are defined direct in AxShockWaveFlash (like  Play(), Stop(),...), the  source code will work. Going on it works when i change attributes like  Size, Location,...
Why does it not work with the attribute Visible???
Best Regards,
Max

You should ask on the Flash Player forum - this one is for Director's Shockwave plugin

Similar Messages

  • Implementing admob banners in unity 3d visual studio project

    Hi everyone, first i admit that i don't really Know how
     to use visual studio express.
    I have a compiled project from unity 3d and i would implement admob banners only in selected levels.
    I tryed to follow the tutorial on the admob page and to insert them in the main page.xmal but it doesn't work.
    Where and How can i insert banners in the game? In the project i have a folder full of levels but i can't open them to edit and insert banners.

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because you want to know how to implement admob banners in unity 3d project in Visual Studio, I suggest you should reopen a thread on Unity Community:
    http://unity3d.com/community like this thread:
    http://forum.unity3d.com/threads/58620-Unity-Android-amp-Banner-Ads-(AdMob)
    Thank you for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error in visual studio while implementing NHibernate

    The "CheckPathAttributes" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll. Could not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll'
    or one of its dependencies. The system cannot find the file specified. Confirm that the <usingtask>declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
    NHibernate </usingtask>
    I am trying to implement NHibernate in my web application, I had coded everything but whenever i try to clean the solution it throws this error. Please help me out.
    Sumit Bhargav

    Hi Sumit Bhargav,
    Based on the error message, it seems that the issue is related to NHivernate and MSBuild, but
    VS General Question forum discusses the usage issue of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor. In order to check where the issue is, could you please create a new and simple web application without having NHibernate, build it and clean the project?
    Whether the web application can be built successfully?
    If you get this error when you build or clean any solution, maybe you are experiencing the same issue 
    described here:
    http://stackoverflow.com/questions/26930376/how-to-fix-checkattributes-task-could-not-be-loaded-error-after-installing-v
    Please check whether the Microsoft.Web.Publishing.Tasks.dll assembly is located at
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web. If no, please copy it from somewhere else to this path. If you can’t get a copy of this assembly, I suggest uninstalling VS 2013 Update 4 or uninstalling and
    reinstalling all VS components.
    If the issue only occurs in the web app with NHibernate implement, then this issue is more related to the specific NHibernate implement in ASP.NET. I recommend consulting
    your issue on ASP.NET forum: http://forums.asp.net/
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unit Testing with Microsoft Sharepoint Emulators and Fakes with Visual Studio 2013

    Hi All,
    I have created Test Project and now creating Test cases for Sharepoint. I found a link on MSDN which suggests using Fakes framework but it supports VS2012 and I am using Visual Studio 2013.
    So how can I use it with VS2013 or is there any other way with which I can implement the Test cases with VS2013.
    Please suggest.
    Thanks in advance.
    Himanshu Nigam

    Hi HimanshuNigam,
    According to your descrition, my understanding is that you want to use Fakes framework to create test case for SharePoint project in Visual Studio 2013.
    If you want to test using Fakes Framework, you can use the codeplex extension to achieve it. It supports Visual Studio 2013.
    Here is a detailed article for your reference:
    Better Unit Testing with Microsoft Fakes
    About how to include the Nuget package, you can use the package with the link below:
    NuGet Package Manager for Visual Studio 2013
    Installing NuGet
    If you still have question about this issue, I suggest you can create a post in Visual Studio, more experts will help you and you can get more detailed information from there:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio%2Cvsarch%2Cvsdbg%2Cvstest%2Cvstfs%2Cvsdata%2Cvsappdev%2Cvisualbasic%2Cvisualcsharp%2Cvisualc
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Visual Studio Community Edition - Error on creating ribbon for Excel Workbook project

    Hi. I've been struggling with this for a couple of days now so I hope someone can help me.
    I have installed Visual Studio 2013 Community Edition. On installation there was no option to include VSTO and, looking on various forums, I found it was necessary to install the VSTO - November 2014 update separately, which I have done. I'm working on a
    brand new virtual server (Windows Server 2008 R2 SP1) and no other versions of Visual Studio have been installed (although I'm surprised to see Visual Studio 2012 as an item in All Programs - but it just contains command prompts).
    I have created an Excel Workbook project. When I go to create a new item - Ribbon (Designer) - I get the error:
    Could not load file or assembly 'Microsoft.Office.Tools.Common.Implementation, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    I've searched the Internet for anyone who might have had this same issue but have been unable to find anything to help me. I've tried uninstalling the VSTO-November Update and VS 2013 CE and reinstalling both but still the same problem.
    Any help would be much appreciated!
    David.

    Hello David,
    What Office version do you have installed on the problematic machine?
    Do you run Visual Studio as an administrator?

  • Add-in for Access 2010/2013 with Visual Studio 2012 (2013 Preview)

    Hello!
    Am i right: Microsoft wants to kill Access in favor of Azure/SQL stuff?
    I was unable to find any Projects in Visual Studio 2012/2013 to create an Addon for Access 2010 or 2013 (only Word, Excel, Outlook).
    There is even no Microsoft.Office.Tools.Access.ApplicationFactory
    to install add-in to Access App.
    Any solutions for VS 2012?
    Or i should use outdated Shared Add-in with VS 2010?
    Thank you!

    Sorry Donald M from Microsoft,
    You need to rethink that response.  IDTExtensibility2 is an outdated Office 2003 technology. 
    Everything EXCEPT the ThisAddIn.designer.cs reference to ApplicationFactory _factory compiles when you switch references in another Office application's VSTO project template to msaccess and dao libraries.  Even the Access icon shows up in Visual
    Studio 2013.  The only reason a Ribbon.xml project will not load into Access is that Microsoft hasn't provided the Microsoft.Office.Tools.Access DLL for it.  If you leave the Factory reference pointing to global::Microsoft.Office.Tools.Factory,
    the add-in compiles but will not load.
    MICROSOFT: Please provide us the missing Factories for MSAccess and OneNote.
    Could not create an instance of startup object AccessRibbonAddin.ThisAddIn in assembly AccessRibbonAddin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=664b6483efff25e6.
    ************** Exception Text **************
    Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateStartupObjectException: Could not create an instance of startup object AccessRibbonAddin.ThisAddIn in assembly AccessRibbonAddin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=664b6483efff25e6.
    at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.CreateEntryPoint(String entryPointTypeName)
    at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IExecuteCustomization2.LoadEntryPoints(IntPtr serviceProvider)
    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18052 built by: FX45RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    Microsoft.VisualStudio.Tools.Office.Runtime
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.40305.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.dll
    System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    System.Security
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18055 built by: FX45RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
    Microsoft.VisualStudio.Tools.Applications.Hosting
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.40305.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.dll
    Microsoft.VisualStudio.Tools.Applications.Runtime
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.40305.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll
    System.Deployment
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
    Microsoft.VisualStudio.Tools.Applications.ServerDocument
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.40305.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18036 built by: FX45RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
    Microsoft.Office.Tools
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.40305.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.dll
    Microsoft.Office.Tools.Common.Implementation
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.40305.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Common.Implementation/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.Implementation.dll
    Microsoft.Office.Tools.Common
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.40305.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Common/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.dll
    AccessRibbonAddin
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Source/Home/Access/bin/Debug/AccessRibbonAddin.DLL
    Microsoft.Office.Tools.Common.v4.0.Utilities
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1
    CodeBase: file:///C:/Source/Home/Access/bin/Debug/Microsoft.Office.Tools.Common.v4.0.Utilities.DLL

  • Microsoft Visual Studio - Unable to load DLL 'librfc32.dll'

    Hi,
    I'm experiencing the following problem:
    When trying to establish a connection between SAP BPC MS and our SAP NW BW system.
    I've created a new Integration Services project in Business Intelligence Development Studio. The issue comes up when I try to test the connection:
    TITLE: Microsoft Visual Studio
    Unable to load DLL 'librfc32.dll':
    This application has failed to start because the application configuration is incorrect.
    Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
    I've placed the librfc32.dll library file on C:\WINDOWS\system32\.
    I ran R3DLLINS.EXE according to Note 684106 - Microsoft runtime DLLs.
    This placed all the needed dll library files (msvcr71.dll, msvcp71.dll, mfc71.dll, mfc71u.dll) on the correct path (C:\WINDOWS\system32\).
    I keep getting the same error.
    Platform:
    Windows 2003 R2 SP2 32-Bit
    MS SQL Server 2008 SP1
    SAP BPC 7.0 Microsoft Platform
    I've checked out some other posts on SDN but it didn't solve my problem:
    Re: librfc32.dll not found on Windows Server 2003
    LIBRFC32.DLL not Found Error
    Re: librfc32.dll
    Any ideas?
    Thank you.
    Bruno Pereira
    Edited by: Bruno Pereira on Mar 23, 2010 5:34 PM
    Edited by: Bruno Pereira on Mar 23, 2010 5:36 PM

    I was able to work it out.
    For your reference:
    Issue arrises from the fact that Business Intelligence Development Studio isn't able to load the librfc32.dll without the [Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update |http://www.microsoft.com/downloads/details.aspx?familyid=766a6af7-ec73-40ff-b072-9112bab119c2&displaylang=en#filelist]implemented on the system.
    Reference SAP note:
    [Note 684106 - Microsoft runtime DLLs|https://service.sap.com/sap/support/notes/684106]
    Bye!
    Bruno Pereira

  • Crystal Report 2008 in Visual Studio 2008

    Greetings all,
    I faced a problem here when trying to implement a web application on a Windows Server 2003 Release 2 64bit. The web application is developed using Visual studio 2008 on a development PC running on Windows XP 32bit. The application basically will pass some parameters to the crystal report before loading it for viewing. When this application is implemented on one of our client's server which is running on Win2003 32bit, it was perfectly fine. However, when this same application is implemented on a windows 2003 r2 server x64, it somehow prompted an error on top of the page (just before the report viewer object) of the below message:
    This field name is not known. Error in File [temp_location_of_rpt]: Error in formula '{Vendors.company_code}={?Company_Code} and ' This field name is not known.
    As the application was working fine running under win2003 r2 x32, I configured the x64 server to enable the 32bit IIS mode on the server by running the below command:
    cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 u201Ctrueu201D
    Then proceeded with reinstallation of 32bit .net framework which surprisingly able to run the web application just fine (including viewing the report). When I deactivate the 32bit on the IIS (as the client needs to run the IIS on 64bit mode), the error appears again stating the formula error and field name not known when trying to load the report.
    Anyone faced similar to this problem or any gurus and expers here can help? Would appreciate all help and guidance.

    Hi Brian,
    I did try to create a report without any parameters passing through the web application, in which merely to load the report that connects to the database and grab records for viewing but to my amazement, the rows of record displayed is max up to 1 row (even there are many rows in the database table). I am curious if the problem lies in the connectivity issue between crystal and oracle. Now I am wondering if there is anyone out there who manage to get the web application (visual studio) interfaced successfully with crystal report to load data directly from oracle running on IIS 64bit? Or even any other database engine where the web application is running on IIS 64bit mode?
    For the time being, I am re-constructing the report to use XSD for the intention to pass the data through dataset from the web application to crystal report. It's a time consuming but I guess that's the only way to work around it.
    Would appreciate if anyone have any leads to get the crystal report working on IIS x64 mode.
    Thanks.
    Edited by: eklim8 on Jan 19, 2010 3:51 PM

  • Crystal Reports Visual Studio 2010 SP2 Fixed issues

    Hi All,
    Here is the list with fixed issues in Crystal Reports Visual Studio 2010 SP2
    http://www.crystaladvice.com/crystalreports/crystal-reports-2010-sp2
    The following list with issues is fixed:
    1566763 - CRVS2010 WPF Viewer error; "System.NullReferenceException was unhandled" PageControl.OnMouseMove
    1540637 - Error: External component has thrown an exception. Launching the Database Expert in the embedded Crystal Reports designer in Visual Studio
    1544675 - Error; 'Object reference not set to an instance of an object' when using the CR WPF viewer in VS2010
    1578823 - CRVS2010; "Load Report Failed" error when Report is open in any full version of the CR Designer
    1638191 - Using RTL language (Arabic) the CR viewer Group Tree Panel does not display RTL
    1631283 - Error; 'Failed to load database information' when reporting off of file system data
    1553469 - How to enable Database logging in Crystal Reports for Visual Studio 2010
    1299185 - Error: Operation not yet implemented or Failed to Export, when exporting a Crystal Reports to Text format
    1451960 - Null or empty values are not surrounded with delimiter when exported to CSV format
    1659185 - The special Crystal Reports field, 'File Name and Path' shows temp path and temp name when viewing a report
    1452648 - Dynamic Cascading Parameter prompts two times when using the Crystal Reports in VS .NET
    1580338 - When refreshing a report that contains a linked subreport report takes long time to execute
    1659111 - GCHandle left in memory for each open and close of a Crystal Report in VS2010 application
    1356672 - Crystal Reports special field "File Path and Name" displays incorrect information in a Visual Studio .NET application
    1593658 - Impersonation of database Log On credentials failure in report generation when set at runtime in a .NET application
    1661239 - Summary fields are converted to String fields
    1661276 - Using the Crystal Reports SetTableLocation method in VS .NET causes long report processing delays
    1661200 - Not able to copy text from report objects using the Crystal Reports WinForm viewer for VS .NET
    1631722 - Date function in a Selection Formula is removed when running a report in a VS .NET application
    1525822 - Exception "Object reference not set to an instance of an object." thrown when clicking on Parameter Panel button in Crystal Report .NET Windows Form Viewer
    1603082 - Cross-tab background colors not retained when exporting a report to PDF format
    1603154 - Shared variable display the incorrect value in Crystal Reports
    1427747 - Why does a CR .NET SDK web app have problems running on IIS 7 in integrated pipeline mode?
    1545536 - Alignment set to Justify causes broken underline
    Source: Resolved Issues in Service Pack 2 for Crystal Reports for Visual Studio 2010
    With kind regards,
    Pieter Jong
    Crystal Advice
    http://www.crystaladvice.com

    Many thanks for the link Pieter.
    I recently created a wiki that lists all of the fixes, their tracking numbers, associated Kbase numbers, Kbase titles and links to the kbases:
    http://wiki.sdn.sap.com/wiki/x/tgK3Dw
    It's 90% complete. I think I have a few Kbases to do to complete it.
    Now that I think about it, I'll also add the link to the [sticky thread|SP 2 for Crystal Reports for Visual Studio 2010 released!; re. SP2 release.
    - Ludek

  • Errors in visual studio webpage code (Trying to connect the website to a database)

    I am trying to create a website on (visual studio) and connect it to database(Microsoft sql server 2014) first I am learning from a video on youtube the tutorial is about a coffee website and database
    I have a few errors but I dont know where is the problem
    the errors in this page(Coffee.aspx.cs)
    Error    1    Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).    C:\Users\Ziyad 1\Documents\Visual Studio
    2013\WebSites\MyWebsite\Pages\Coffee.aspx.cs    7    33    MyWebsite
    Error    4    'ASP.pages_coffee_aspx.ProcessRequest(System.Web.HttpContext)': no suitable method found to override    c:\Users\Ziyad 1\AppData\Local\Temp\Temporary ASP.NET Files\root\e78a0b4c\be391a08\App_Web_k4b10ys2.0.cs  
     572    
    Error    3    'ASP.pages_coffee_aspx.GetTypeHashCode()': no suitable method found to override    c:\Users\Ziyad 1\AppData\Local\Temp\Temporary ASP.NET Files\root\e78a0b4c\be391a08\App_Web_k4b10ys2.0.cs  
     567    
    Error    5    'ASP.pages_coffee_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable'    c:\Users\Ziyad 1\AppData\Local\Temp\Temporary ASP.NET Files\root\e78a0b4c\be391a08\App_Web_k4b10ys2.0.cs  
     185    
    and here is the page (Coffee.aspx.cs) code
    using System;
    using System.Collections;
    using System.Text;
    namespace Pages
    public partial class Pages_Coffee : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
    FillPage();
    private void FillPage()
    ArrayList coffeeList = ConnectionClass.GetCoffeeByType(DropDownList1.SelectedValue);
    StringBuilder sb = new StringBuilder();
    foreach (Coffee coffee in coffeeList)
    sb.Append(
    string.Format(
    @"<table class='coffeeTable'>
    <tr>
    <th rowspan='6' width='150px'><img runat='server' src='{6}' /></th>
    <th width='50px'>Name: </td>
    <td>{0}</td>
    </tr>
    <tr>
    <th>Type: </th>
    <td>{1}</td>
    </tr>
    <tr>
    <th>Price: </th>
    <td>{2} $</td>
    </tr>
    <tr>
    <th>Roast: </th>
    <td>{3}</td>
    </tr>
    <tr>
    <th>Origin: </th>
    <td>{4}</td>
    </tr>
    <tr>
    <td colspan='2'>{5}</td>
    </tr>
    </table>", coffee.Name, coffee.Type, coffee.Price, coffee.Roast, coffee.Country, coffee.Review, coffee.Image));
    lblOuput.Text = sb.ToString();
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    FillPage();
    also tis is the page (Coffee.aspx)code
    <%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage.master" AutoEventWireup="true" CodeFile="Coffee.aspx.cs" Inherits="Coffee" %>
    <script runat="server">
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    </script>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>
    Select a type:<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="sds_type" DataTextField="type" DataValueField="type" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
    </asp:DropDownList>
    <asp:SqlDataSource ID="sds_type" runat="server" ConnectionString="<%$ ConnectionStrings:CoffeeDBConnectionString %>" SelectCommand="SELECT DISTINCT [type] FROM [coffee] ORDER BY [type]"></asp:SqlDataSource>
    </p>
    <p>
    <asp:Label ID="lblOutput" runat="server" Text="Label"></asp:Label>
    </p>
    </asp:Content>
    this is th (ConnectionClass.cs)code
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Collections;
    using System.Configuration;
    using System.Data.SqlClient;
    public static class ConnectionClass
    private static SqlConnection conn;
    private static SqlCommand command;
    static ConnectionClass()
    string connectionString =
    ConfigurationManager.ConnectionStrings["coffeeConnection"].ToString();
    conn = new SqlConnection(connectionString);
    command = new SqlCommand("", conn);
    public static ArrayList GetCoffeeByType(string coffeeType)
    ArrayList list = new ArrayList();
    string query = string.Format("SELECT * FROM coffee WHERE type LIKE '{0}'", coffeeType);
    try
    conn.Open();
    command.CommandText = query;
    SqlDataReader reader = command.ExecuteReader();
    while (reader.Read())
    int id = reader.GetInt32(0);
    string name = reader.GetString(1);
    string type = reader.GetString(2);
    double price = reader.GetDouble(3);
    string roast = reader.GetString(4);
    string country = reader.GetString(5);
    string image = reader.GetString(6);
    string review = reader.GetString(7);
    Coffee coffee = new Coffee(id, name, type, price, roast, country, image, review);
    list.Add(coffee);
    finally
    conn.Close();
    return list;
    (web.confg)code
    <?xml version="1.0"?>
    <configuration>
    <appSettings/>
    <connectionStrings>
    <clear/>
    <add name="coffeeConnection"
    connectionString="Data Source=LOCALHOST\SQLEXPRESS;Initial Catalog=CoffeeDB;Integrated Security=True"
    providerName="System.Data.SqlClient"/>
    </connectionStrings>
    <system.web>
    <compilation debug="true" targetFramework="4.0">
    <assemblies>
    <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    </assemblies>
    </compilation>
    <authentication mode="Windows"/>
    </system.web>
    </configuration>
    and finally this is the SQL code
    GO
    CREATE TABLE [dbo].[coffee](
    [id] [int] IDENTITY(1,1) NOT NULL,
    [name] [varchar](50) NOT NULL,
    [type] [varchar](50) NOT NULL,
    [price] [float] NOT NULL,
    [roast] [varchar](50) NOT NULL,
    [country] [varchar](50) NOT NULL,
    [image] [varchar](255) NULL,
    [review] [text] NOT NULL,
    PRIMARY KEY CLUSTERED
    [id] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    SET IDENTITY_INSERT [dbo].[coffee] ON
    INSERT [dbo].[coffee] ([id], [name], [type], [price], [roast], [country], [image], [review]) VALUES (1, N'Café au Lait', N'Classic', 2.25, N'Medium', N'France', N'../Images/Coffee/Cafe-Au-Lait.jpg', N'A coffee beverage consisting strong or bold coffee (sometimes espresso) mixed with scalded milk in approximately a 1:1 ratio.')
    INSERT [dbo].[coffee] ([id], [name], [type], [price], [roast], [country], [image], [review]) VALUES (2, N'Caffè Americano', N'Espresso', 2.25, N'Medium', N'Italy', N'../Images/coffee/caffe_americano.jpg', N'Similar in strength and taste to American-style brewed coffee, there are subtle differences achieved by pulling a fresh shot of espresso for the beverage base.')
    INSERT [dbo].[coffee] ([id], [name], [type], [price], [roast], [country], [image], [review]) VALUES (3, N'Peppermint White Chocolate Mocha', N'Espresso', 3.25, N'Medium', N'Italy', N'../Images/coffee/white-chocolate-peppermint-mocha.jpg', N'Espresso with white chocolate and peppermint flavored syrups.
    Topped with sweetened whipped cream and dark chocolate curls.')
    INSERT [dbo].[coffee] ([id], [name], [type], [price], [roast], [country], [image], [review]) VALUES (4, N'Irish Coffee', N'Alcoholic', 2.25, N'Dark', N'Ireland', N'../Images/coffee/irish coffee.jpg', N'A cocktail consisting of hot coffee, Irish whiskey, and sugar, stirred, and topped with thick cream. The coffee is drunk through the cream.')
    SET IDENTITY_INSERT [dbo].[coffee] OFF
    I am still a beginner ~~ I need to understand what are these errors and how to solve them

    Hello,
    Welcome to MSDN forum.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your issue is about website, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is there any way to control the zoom factor so that when my SSIS Package is opened, it is entirely visible within Visual Studio?

    I have formatted my SSIS Package beautifully, if I do say so myself, so that all my tasks are visible at 50% zoom. However, when I close my project and then re-open it in Visual Studio, it defaults back to 100%...YUK!
    I did find this post which didn't seem to work...even to the point that no where within my xml could I even find the "PersistedZoom" Parameter. I even tried manually adding it, I couldn't find the exact syntax on it, and that didn't even work.
    1. In BIDS (Visual Studio) first close all open SSIS packages / xml files to avoid confusion ...
    2. Right click on the SSIS package and select the "View Code" menu item. (to open the actual xml)
    3. Search for all instances of "PersistedZoom" and change the value directly to the right of it to 100 (mine
    was 80 or 90 ...)
    4. Now save and close the XML file.
    5. Now open the SSIS package in the designer, you will notice that it is still scrolled to the bottom right!
    6. Now make any small change (I scrolled to the top-left and just slightly moved a task)
    7. Now save and close the designer
    8. Re-open the SSIS package in the designer! and what do you know it does not start scrolled down to the bottom right anymore!
    Let me know if you still have issues - but as I said I followed this same process on all my problem packages and they ALL now open correctly.
    I noticed that after doing all this the PersistedZoom property disappeared from the xml, which leads me to believe that if I zoom in and out of my packages again it will probably get stuck by opening to the bottom right again ...
    Can anyone help me out with this?
    Thanks for your review and am hopeful for a reply.
    PSULionRP

    There is no way to preserve view preferences.Just remember or annotate the zoom % used in the package.
    You may want to open an MS Connect item asking to add such a feature.
    I can tell you it may not be implemented because a package may be opened on different size monitors.
    Arthur My Blog

  • Getting Dynamic Context Sensitive Help API to work with Visual Studio 2012 and 64 bit?

    We have RH 9.
    Our developers are working on implementing RH's dynamic CSH API inside of our software product:
    http://help.adobe.com/en_US/robohelp/robohtml/WSa7dd8288c271d662-26f4398e12b0c229082-8000. html
    The instructions our developer found say:
    Call your Help projects with the function RH_ShowHelp. The source code for this function is contained in the support files which you import into your development project. Languages supported are Visual Basic, C/C++, JavaScript, and Java. The files are in C:\Program Files\Adobe\Adobe RoboHelp [version]\CSH API. The files are:
        CSH API\RoboHelp_CSH.cpp (C/C++, dependent on the .h)
        CSH API\RoboHelp_CSH.h (C/C++, dependent on the .cpp)
    I zipped up the CSH API from my RH 9 version and sent it to the developer. We're using Visual Studio 2012.
    But now the dev is asking, "Is there a newer version? This one doesn't compile in win32 without me making some tweaks, and doesn't work at all in x64..." and "Is RoboHelp10 an option? 9 doesn't seem VS2012 compatible or x64 compatible."
    Does anyone know if there are there is a later version of the API available that works for 64-bit / VS 2012?

    Hi,
    The RoboHelp 10 API should work for WebHelp created with RoboHelp 9. Since the RH10 API will now support Multiscreen HTML5 (introduced with RoboHelp 10), I imagine it will work with VS 2012. But I’ve not tried that. You can try the RH10 API, but Adobe won’t support it
    Alternatively: A colleague of mine created a custom C# API some time ago. That might work for you: http://www.wvanweelden.eu/blog/2012/08/03/custom-webhelp-apis
    Greet,
    Willam

  • Visual studio lightswitch takes very long time (hangs for 20 sec) when changing entities properties in screen design

    hi, I have lightswitch project that is growing up every day. Now it has 200 database table and about 450 default screens. When I first started the lightswitch project with few tables
    (about 50 tables), it responses very fast. Gradually when I created the screens, the response takes 10 seconds for any changes I made in the screens or on the tables (*.lsml). Now, it takes 20 seconds (-+2 sec) to be able to do the next change!. For example,
    changing the group name, entity input type, width, table summary property ,arrange fields in the groups, change display name (which I change the most),,etc. Just imaging that I can change 3 things on a minute! I am using lightswitch with VB coding , but no
    programing codes (yet), I uses only HTML screens, no extensions, connected with SQL express 2012 (but I think that has nothing to do with the slowness since the problem is on the screens design time), I have created the project from scratch three times, with
    visual studio 2013 ultimate update 3, update 4, and now with Update 5 CTP 1 !! Yet, the same result. Strange that the freezing time is always about 20 seconds!! Any idea why this is happening? Any resolution?! Regards, Hasan

    Hi Michael 
    again i appreciate your answer ... 
    i was trying to implement your suggested workaround of my problem, unfortunately, it won't work with me !  i cannot split the
    project to smaller modules because of:
    all screens are connected to each other's with buttons and clicks (view selected) 
    i have changed all the "display names" of tables fields (translation). i would have problem in translation whenever i
    need to add tables or fields in the database, then i need to repeat that for all modules. i know that i can use other translation method, but i have already translated thousands of words !
    i have spent 2 months in 2013 to learn MVC, but i did not like it. it is somehow complex for me. i am a volunteer developer (actually i
    am network designer ). 
    i may lose the authentication , as i need to log-in to each module separately.
    is there any root solution to this problem ; the VS Lightswitch (or IDE) slowness when there
    is a lot of screens? maybe in VS2015?
    i had great hopes for the lightswitch, and still it is the only IDE that i can use for the "Charity
    ERP" project.
    regards,
    Hasan

  • Fault messages in target web service (microsoft visual studio) -experience?

    Hi guys!
    We use async scenario : SAP_R3 (ABAP Proxy) -> XI -> Web Service (SOAP). Target web service is created in microsoft visual studio. Standard scenario worx fine. We send data from r3, the web service processes them. However, we want to use also fault messages in case, there will be exception rised in the target web service and let operator in sxmb monitor know, that there's a problem. These fault messages should be used as acknowledgement. But we have serious problem with implementing fault messages in the target web service in the visual studio. Does someone have experience with this?
    Thanx a lot for info!
    Olian

    Hi
    see the below links
    Consuming XI Web Services using Web Dynpro – Part II-/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    Consuming XI Web Services using Web Dynpro – Part I -/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0d7349b6-0901-0010-ddbe-ec43178a61ff
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee5bc490-0201-0010-e9b5-a258cf083bca
    Troubleshooting SOAP Message - XI - /people/varadharajan.krishnasamy/blog/2007/01/09/troubleshooting-soap-message--xi
    Troubleshooting - RFC and SOAP scenarios-/people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
    Regards
    Chilla

  • How to determine which CDockablePane in a group is currently active in Visual Studio 2013

    I understand that to activate a pane, I can do the following:
    dockablePane->ShowPane(TRUE, FALSE, TRUE);
    But, in a group of panes, how can I tell which pane is currently active?
    For instance, let's say there are 3 groups of panes on the screen.  The first group contains three tabs captioned "A", "B", and "C".  The second group contains "D", "E", and "F" and the
    third group contains "G", "H", and "I".
    How would I determine the active pane within each group?  (As an example for reference, within Visual Studio in the left pane group, I can currently see the contents of "Solution Explorer" while "Class View", "Property M...",
    "Resource Vi..." and "Team Explo..." are within the same group but not active.  In the bottom group, I can see the contents of "Output" while "Find Results 1" and "Find Results 2" are present but not active".  
    In the right group, I can see "MySource.cpp" while "MySource.h" is present but not active.  So, I need to know how to request from each pane whether they are the current tab within their container or not.
    Steve

    Hi Steve,
    Thanks for posting in MSDN forum.
    (As an example for reference, within Visual Studio in the left pane group, I can currently see the contents of "Solution Explorer" while "Class View", "Property M...", "Resource Vi..." and "Team Explo..."
    are within the same group but not active. In the bottom group, I can see the contents of "Output" while "Find Results 1" and "Find Results 2" are present but not active". In the right group, I can see "MySource.cpp"
    while "MySource.h" is present but not active. So, I need to know how to request from each pane whether they are the current tab within their container or not.
    This scenerio in your example, we don't need to know the current tab within which tab group. Actually I don't understand why do you need to know that? If you are using
    AFX_DOCK_TYPE::DT_SMART   model dock pane, the dock pane should be implemented in a internal MFC
    CSmartDockingManager
    class and it is not intended to be used directly from your code. . You could read the source code of this class at VS installed path-> VC->altmfc->src->mfc->afxsmartdockingmanage.cpp
    For the dock pane layout in VS interface, I remember there is a sample named Visual Studio Demo sample in Visual C++ 2008 Feature Pack. You can download it at here.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/b4e6cb6e-e2a8-4e02-9c67-0dc431618157/visual-c-2008-feature-pack-samples-where-to-find?forum=vcgeneral
    And the dock pane control implements the core functionality that controls docking layout in a main frame window by CDockingManager class.
    https://msdn.microsoft.com/en-us/library/bb983791.aspx
    A greate article about using CDockablePane:
    http://www.codeproject.com/Articles/493218/Understanding-CDockablePane
    Please tell us more details about what you want to do.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • How do I install iCloud on my mac

    I have recently installed Snow leopard and Lion and everything is working fine, but I can't access my cloud as an app like I can on my other mac.  I can get to the icloud, but I want to use 2 computers to upload files, etc.

  • MySQL Date_Format

    Hi Can anyone tell me how they'd format this MySQL statement to read dates stored in MySQL?  The dates are pre-1970 so I'm having trouble using PHP echo date. $query_rsGNresults = sprintf("SELECT * FROM gemnews_tab WHERE language LIKE %s AND entry LI

  • Add a favicon to iweb via the HTML snippet...how?

    Is there a way to add a favicon to iweb via the HTML snippet? My search on google has found many ways to do it by editing the published files, but this is more work than it is worth (since it needs to be done on every new publish). Any ideas? thanks

  • IMac G3 problems connecting to internet.Updating software

    I bought an old iMac G3 running Mac OS 9.2. I can not figure out how to connect it to the internet using ethernet. I have at&t internet with wireless and all that. But the operating system is so old that im lost fooling with it. Can anyone help. Also

  • Firefox version 22 screen tearing issue with video

    So I've updated to Firefox 22 and have recently started noticing this really annoying screen tearing issue when scrolling. its only when i use Firefox sometimes it happens when I'm watching videos sometimes it just happens on normal every day pages.