Solved

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

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now