Solved

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

Posted on 2011-03-03
2
481 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 500 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create a Dropdown list with sub group 10 43
Need help for captcha 2 41
Shared Service Environment 2 54
history of pages 7 51
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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

732 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