I am developing an application for the SUR40 Surface 2.0 table.
I am developing in MS Visual C# 2010 Express .Net Framework 4 Client Profile.
Now I need to embed a Flash file (*.swf) into the Surface Window.
I followed these steps and I am stuck at the (Drag the "Shockwave Flash Object" from the toolbox onto the Form (just like any other control)) step.
I couldn't find the Shockwave Flash Object so I tried some things.
After a right-click on the toolbox and select "Show All" the Shockwave Flash Object appears, but its locked. I cant move this Shockwave Flash Object to my Surface Window (see image).
My questions:
How can i unlock this toolbox item?
Is it possible to use Shockwave Flash Object on the Surface 2.0
Thanks in advance.
Try this
You need to install the latest version of Adobe Macromedia Flash Player . The component will be located at "%systemroot%\system32\macromed\flash11c.ocx". Then you'd better register manually it like this:
Regsvr32 flash11c.ocx
And then please follow these steps to add Shockwave Flash Object correctly on your form in VB 2005 Express:
In Solution Explore, right-click References and choose Add Reference.
In COM tab, add Shockwave Flash (e.g. Flash11c.ocx)
Right-click Toolbox -> Click "Choose Items", in COM tab, choose Shockwave Flash Object, then you can see the control in the Toolbox.
Drag and drop the Shockwave control on the form, you may get the error message "Failed to import the ActiveX control. Please ensure it is properly registered", ignore it and click OK.
Right-click the project in Solution Explorer, choose "Rebuild". When the project rebuild succesfully, you are able to add the Shockwave control on the form this time.
Specify .swf file for the Movie property of Shockwave control.
or
Check this link Fun With C# and the flash External API
Try this:
Right-click on toolbox and press reset button, it will clear all controls added by you.
Click choose item and do not uncheck any checked option.
Simply click on your desired .dll control file and press ok, it will add you control and will not disable asp.net controls
Related
Goal.
I am trying to build an auto-captioning software for downloaded videos. I need to watch the video, and listen to the audio, and see what the speech recognizer reads and make any changes that I need to. So I decided that the Windows Media Player Component would work best to watch and playback the video.
Expected Result
I should be able to just go to ToolBox >> Right Click >> Choose Items... >> COM Components >> Check the Windows Media Player checkbox >> OK. and have the component show up in my Toolbox.
Actual Result
The "All Tools" tab expands in my toolbox, but my "axWindowsMediaPlayer1" is nowhere to be found. There is no error message, in fact, I get a box telling me it was added successfully. But again, I try to find it but it is nowhere to be found.
What I've tried
Closing Out of Visual Studio 2019 and reopening it.
Switching from 4.0 to 3.1.
Adding the form from system32 with the Wmp.dll file.
Reseting the Toolbox.
Creating a new tab in the toolbox and trying to add it there (which results in the tab removing itself).
Removing all components from the toolbox (which didn't work any of the times I tried).
Reading the Microsoft's Documentation about adding the Windows Media Player again.
It works for me (VS 2019 v16.9.4; .NETFramework 4.8).
Open Visual Studio 2019
Click
In VS menu, click File
Select New
Select Project
Click Windows Forms App (.NET Framework)
Click Next
Enter desired project name. For Framework, select .NET Framework 4.8
Click Create
Open Solution Explorer
In VS menu, click View
Select Solution Explorer
Open ToolBox
In VS menu, click View
Select Toolbox
Add Windows Media Player to Toolbox
Click All Windows Forms
Select Choose Items
In Toolbox, click "Windows Media Player", hold mouse button down and drag control onto Form1.
I am trying to implement web browser according to this article from msdn.
http://code.msdn.microsoft.com/vstudio/Professional-WebBrowser-dac9c5d0#content
But I have trouble with point 4.2 Adding The NuGet features. I successfully installed the DockPanel Suite via Manage NuGet Packages. This application is WinForms in Visual Studio 2012. After this instalation I should see the DockPanel component in toolbox, but I cannot find it. I tryed everything but still nothing.
What you need to do is:
Open Solution Explorer.
Open the References folder of your project.
Find the reference named 'WeifenLuo.WinFormsUI.Docking'.
Right-click the reference, and then click Properties.
In the Properties window, find the Path item.
Double-click the value of the Path property in order to do a 'Select All,' on it, and then do a Copy to the clipboard.
Right-click the Toolbox, and then choose Choose Items from the menu.
Click Browse on the .NET Components tab.
Paste the path in the Browse dialog box's File name field, and then click Open.
A new checked item, DockPanel, should be visible in the list. Ensure that the check box next to it is checked, and then click OK.
After following these directions, then a DockPanel item should be visible, and you can just drag it to the Designer.
Please note, these directions are for Microsoft Visual Studio 2010 Premium.
I'm creating in a Windows forms application using VS2008. I need to add ActiveX controls to it. But unable to do so.
this example is what i try to achieve LINK sub topic "Interop with ActiveX Controls"
The following are the steps provided to achieve it, but i cant find the below mentioned options in my Visual studio.
(1) When you have a form displayed, right-click the Toolbox and select "Choose Items".
(2) Click the "COM Components" tab.
(3) Locate your ActiveX control and tick the box for it anc click
"OK".
(4) Now it should appear on the toolbox; drag and drop it onto your
form and set its properties.
Open the windows form file that you want to add an Activex control.
Right click on any tool on the tool box.
That menu contains "Choose Items".
Click on it and you can see the COM Components tab on the pop up window.
Select any COM component that you want to add.
Then it appears on the tool box.
Drag and drop it on to the form.
I'm trying to follow this tutorial for an Accordion control in WPF:
http://www.c-sharpcorner.com/UploadFile/dpatra/538/
I am not super familiar with VS. I'm running VS2010, I right click on the Reference->Add Reference, go to the .NET tab, and I do not see any System.Windows.Controls. Am I missing something in order to follow this tutorial? Thanks.
It looks like you are trying to add a reference to a custom DLL form the WPF toolkit. To do this you will need to browse to the DLL on disk.
Select "Add Reference" from the project menu
Click on the Browse Tab
Navigate to the DLL on disk
Select it and hit OK
I'm using Visual Studio 2005 for a project I'm working on right now. I've created a new, custom control that inherits from 'UserControl'. Now I need to add that control to another Windows Form within the same project. I thought that the IDE would place this custom control into the Toolbox (as I know it's done in the past when I was using Visual Studio 2008), however, it did not. Now, I'm unsure how to get the control added to my form correctly and/or how to make it show up as it should in the Toolbox. The "Auto Toolbox Populate" option under Tools is set to 'True', so I really don't know what else needs to happen at this point. The help of anyone who's had any experience with this would be greately appreciated. Thanks a lot!
You may first build your custom control and create a dll. Then,
Right-click on the Toolbox panel -> Select 'Choose Items' -> Go to '.NET framework components' tab in the 'Choose Toolbox Items' dialog box that appears - > Browse to the dll of your custom user control -> Click OK.
Now the user control will be displaying in your tool box.
Hope this helps...
Try this
Open Solution
Build project
Open your form
Reset the toolbox
Drag the user control from solution explorer to the toolbox
Close the toolbox and all open documents
Open toolbox then the form
User control should appear
worked for me.