Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

12 Experts available now in Live!

Get 1:1 Help Now