Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how can i put controls in flash object in C#.net window application ??

Posted on 2011-03-03
2
Medium Priority
?
486 Views
Last Modified: 2012-05-11
i created flash control in windows form ....
now i want to know that how can i put button control in flash, is it possibe ??

please refer the below code ...

private void Flash_Load(object sender, EventArgs e)
        {
            Form objform = this.FindForm();
            //get form properties
            objGeneral.GetFormProperties(objform);
            objform.LocationChanged += new EventHandler(this.Flash_LocationChanged);
            objform.Resize += new EventHandler(this.Flash_Resize);

            //attach flash object to the windows form
            int length = Application.ExecutablePath.Length;
            string GetFlashPath = Application.ExecutablePath.Substring(0, length - 22).ToString() + "Flash\\" + "Six_Sigma_demo.swf";
            axShockwaveFlash1.StopPlay();
            axShockwaveFlash1.Movie = GetFlashPath;
            axShockwaveFlash1.Play();
        }

Open in new window


now i want to put button control in flash object , and when i click on button then login form open,but how can i do this ??
0
Comment
Question by:Parth48
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
starlite551 earned 2000 total points
ID: 35034123
A possible solution to your problem is:
1. You can create a Windows Form Custom User Control.
2. Add Flash object from ToolBox to it.
3. Add a Button Control to the designer surface.
4. Inside the click event of the Button control's object add the following code :

private void btnFlash_Click(object sender, EventArgs e)
{
       LoginForm lf = new LoginForm();
       lf.Show();       
}

Open in new window


5. Then add a reference to the .dll file that is generated from User Control's Project to your own project.
6. Finally Add the User Control to your Form.
0
 

Author Comment

by:Parth48
ID: 35034169
yes @starlite551: u r right , thanks for the help ....
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question