Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 132,679 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,195 people online right now. Registration is fast and FREE... Join Now!




why image is not update in other form , on 2nd form closed event ?

 
Reply to this topicStart new topic

why image is not update in other form , on 2nd form closed event ?, on Closed event of 2nd form wanna update image on form1

nomanforu
post 4 Jun, 2008 - 10:49 PM
Post #1


New D.I.C Head

*
Joined: 29 May, 2008
Posts: 2

Code are as follows plz tell me what is the fault y image is not updating .
CODE

protected override void OnClosed(EventArgs e)
        {
            if (this.appWorkspace.ActiveDocumentWorkspace != null)
            {
                appWorkspace.ActiveDocumentWorkspace.SetTool(null);
            }

            base.OnClosed(e);

            //n send image to frmedit in cc13
            CCI3.Forms.frmEdit s = new CCI3.Forms.frmEdit();
          //  s.mSetPicture(PictureBox, "true");
   //s.VarEditImg
     //s.VarEditSig        
            s.PicImage.Image = null;

          
           s.PicImage.Image = Image.FromFile(@"C:\Temp\Temp1.jpg");
           s.PicImage.Refresh();

           s.picSig.Image = null;

           s.picSig.Image = Image.FromFile(@"C:\Temp\Temp2.jpg");
           s.picSig.Refresh();
//s.Con
           s.Showimg();
          
            CCI3.Myimg g = new CCI3.Myimg();
            g.Showimg2();


            //CCI3.Forms.frmEdit ss = new CCI3.Forms.frmEdit();
            //ss.setEditPictures(@"C:\Temp\Temp1.jpg", @"C:\Temp\Temp2.jpg");
            



        }
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 8 Jun, 2008 - 06:53 AM
Post #2


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,933



Thanked 118 times

Dream Kudos: 8525

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Remove that from the OnClosed event and put it into the forms OnClosing Event, then this will be handled as the form is closing
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:40AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month