Solved

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

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 66
API v SOA 8 37
How to use spatial data types in SQL Server Database project 2 40
PowerShell: ForEach ($y in $x.licenses | where {....} 3 53
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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

735 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