How can i pass anything that i display on a new form pictureBox to display it on form1 pictureBox1 ?

I did a new form. and to show the new form i'm doing in Form1:
ScanningClouds sc = new ScanningClouds(Next_File);
sc.FormClosing += sc_FormClosing;
sc.Show();
And in the new form i have a pictureBox in the designer and i display things on it the new form code is a bit long.
Now instead showing everything on the new form pictureBox i want to display it on the form1 pictureBox1.
How can i do so when i click the button to show the new form instead it will not show the new form but only pass anything to the form1 pictureBox1 and show it on the form1 pictureBox1 ?
This is the new form constructor:
public ScanningClouds(string InitGifFile)
InitializeComponent();
pen = new Pen(Color.Red, 3);
formloadfirsttime = true;
numericUpDown1.Value = 200;
brush = new SolidBrush(Color.Red);
trackBar2.Minimum = 1;
trackBar2.Enabled = false;
bmpnew = new Bitmap(512, 512);
label1.Text = "";
radar_scale = Properties.Resources.radar_scale_heb;
label1.Width = radar_scale.Width;
label1.Height = radar_scale.Height;
label1.Image = radar_scale;
path_exe = Path.GetDirectoryName(Application.LocalUserAppDataPath);
ScanClouds = Path.Combine(path_exe, ScanClouds);
if (!Directory.Exists(ScanClouds))
Directory.CreateDirectory(ScanClouds);
ConvertedBmpDir = Path.Combine(ScanClouds, ConvertedBmpDir);
if (!Directory.Exists(ConvertedBmpDir))
Directory.CreateDirectory(ConvertedBmpDir);
radarImagesDirectory = Options_DB.Get_Radar_Images_Download_Directory();
radarImagesDirectory = Path.Combine(path_exe, radarImagesDirectory);
dir1 = new DirectoryInfo(radarImagesDirectory);
trackBar1FileInfo = dir1.GetFiles("*.gif");
trackBar1.Minimum = 0;
trackBar1.Maximum = trackBar1FileInfo.Length -1;
trackBar1.Value = trackBar1.Maximum;
b = new Bitmap(InitGifFile);
b1 = new Bitmap(InitGifFile);
pictureBox1.Image = b;
ConvertedBmp = ConvertTo24(InitGifFile);
mymem = ToStream(ConvertedBmp, ImageFormat.Bmp);
startButton.Enabled = true;
pauseButton.Enabled = false;
It's getting file name now and i'm converting it to bmp and put it in the pictureBox.
But instead the local new form pictureBox1 i want to display it on the form1 pictureBox1.

Once again we can refer to BonnieB's blog on the subject.
http://geek-goddess-bonnie.blogspot.com/2011/01/passing-data-between-forms.html
http://geek-goddess-bonnie.blogspot.com/2012/12/passing-data-between-forms-redux_31.html
I think that method 3 on her first post is the one you're looking for.

Similar Messages

  • HT2240 i already bought a quicktime pro version but lost the key some how. how can i get back that key, without buying a new one?

    i already bought a quicktime pro version but lost the key some how. how can i get back that key, without buying a new one?

    thank you Malcolm J. Rayfield for your replay. but this didn't help, because i bought the "pro" bevore that.

  • A few months back I Dropped my iPhone 4 and I cracked my screen and now i cant unlock my phone due to touchscreen not working plus there are blured lines across the screen and I can't see anything that it displays. Now when I try too connect my iPhone 4 t

    A few months back I Dropped my iPhone 4 and I cracked my screen and now i cant unlock my phone due to touch screen not working plus there are blurred lines across the screen and I can't see anything that it displays.
    Now when I try too connect my iPhone 4 to iTunes on my computer at home an error message comes up saying that I have to unlock my iPhone 4 for it to communicate to my device.
    But the problem is that I can't unlock my iPhone 4 because I'm unable to see the key pad and my touch screen no longer responds when I touch it.
    I just want to reset my iPhone 4 back to its Factory Settings & start all over from the beginning.
    How can I unlock my iPhone 4 with iTunes on my computer or any other option you suggest me trying.
    Thank you in advance,
    SiHero

    If you have had a "local guy "repair your iphone you will not get any support from Apple for warranty OR post warranty
    If Verizon return it to Apple it wil not be handled by Apple
    If Verizon also use unauthorised repairers you may be lucky
    (Apple do not sell parts to local guys or anyone else )

  • Since I updated I can't open anything that comes in a pop upwindow i.e. pdf or mail window. How can I solve or go back to the previous version - it worked just fine.

    Since I updated I can't open anything that comes in a pop upwindow i.e. pdf or mail window. How can I solve or go back to the previous version - it worked just fine.

    I am not sure what your problem is, can you give more details.
    One possibility is you may be in full screen mode, for details on fixing that see the [[menu bar is missing]] article.
    If you are missing various toolbar items, see the [[back and forward or other toolbar items are missing]] article.
    If your problem is something else please give more details.

  • CS4 extended. Capture One vs Photoshop . How can I be sure that photoshop use my Display icc  Color Munki Color Profile?

    CS4 extended, OS10.7.5 . When I process an image in Capture One Pro  and then open it in Photoshop CS4 extended and compare to my original image in Capture I can see a big difference . ( Darker in C1 and flat in CS4)     I contacted Phase One and they said that the problem was probably due to photoshop who do not recognise my  Color Munki Display icc profile . How can I be sure that photoshop use my Display icc Color Munki Profile? Thanks !!!

    Hello Station_two,
    Thanks for you response.
    Yes . that's what I did as I created an icc profile with Color Munki .
    My problem is  when you look at the left image   ( Capture One )  and  the same images processed  and open in Photoshop ( Right image ) I can see a big contrast difference ...
    Now, let's assume that photoshop work automatically with my icc Color Munki  in display panel , why the image in  Capture One do not look the same ?  Is it a question of setup in C1 ? In c1 ICC /Process recipe  I have Adobe rgb (1998)  selected.... 
    Thanks!

  • In Automator, how can I pass a shell script output to Display Notification?

    In Automator, how can I pass a Run shell script output to Display Notification?

    Soemthing like this will work

  • How do i reset my security questions? I can't find anything that will let me change them

    I need to reset my security questions but i can't find anything that says reset questions here.

    The reset link will only show if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account. If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple in your country to get the questions reset - which will normally be by phone as they need to confirm your id and that it's your account.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the HT5312 page that you posted from to add a rescue email address for potential future use

  • HT2534 but i have problem in step 13.  i can't see  step(13) because the red box that has this message "please contact itunes support to complete this transaction" apears. plz help me how can i pass this step

    but i have problem in step 13. i can't see step 13 because the red box which has this message " please contact itunes support to complete this transaction" apears. plz help me how can i pass this step

    You will need to do what it says, contact iTunes support. Click the Support tab above, then the Get Started link in the Contact Apple Support area and you'll be guided.
    Regards.

  • How can I pass arguments from one MIDlet to another MIDlet

    Hi everybody !
    Can anybody help me in knowing that how can I pass the parameters from one
    MIDlets to another one in same application.
    I am devloping a application in which I am using more than two MIDlet and I
    want to transfer Parameter from one MIDlet to another one.
    I just explain what I have done....
    I made a MIDlet "A" and "B" in the same project using NetBeans IDE.
    In MIDlet "A" I create the Object of MIDlet "B" so that the constructor of
    MIDlet "B" is called and parameter can be transferred.
    But when I run the program it shows me two MIDlet on the screen, that I
    doesn't need.
    Suggestion are most welcome....
    Thanks in advance
    Regards
    Bhagwat

    If you create two MIDlet in a midlet suite, it will display as you mentioned means you can't change the display style.

  • How can I pass the value to another frame?

    Hi all,
    The following is part of my coding of a frame. Once i click on the jButton2, the selected value will be stored into a variable named NAME and the value will be displayed by a label in same frame. At the same time, a new frame named TESTING3 will be set to visible.
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt)
    // TODO add your handling code here:
        String name = (String)jList1.getSelectedValue();
        jLabel1.setText(name);       //display the value in a label in same frame
        new testing3().setVisible(true);     //a new frame set to visible
    }      Question: How can I pass the value to TESTING3 frame and display it on that frame?
    Thanks,
    ning.

    just make an archive that save that variable and them get them from de clase were you save it
    public class sav {
    String n;
    public sav {
    n="";
    public void addn(String x){
    n=x;
    public String shown(){
    return n;
    and them save it from the frame
    sav sun = new sav();
    sav.addn(f);
    them call it from the other frame
    sav sin = new sav();
    String s = sin.shown();
    label.setText(s);
    and i think thats you want to do if its not please explain me better
    bye

  • How can I pass a value to the command prompt?

    I was wondering how can I pass a value to the command prompt with Windows and Linux? I'm more interested in Linux's system than Windows though. Is there a way to return info from the command prompt?

    Here is a snippet from http://mindprod.com/jglossexec.html that explains how in detail.
    Runtime.getRuntime().exec("myprog.exe") will spawn an external process that runs in parallel with the Java execution. In Windows 95/98/ME/NT/2000/XP, you must use an explicit *.exe or *.com extension on the parameter. It is also best to fully qualify those names so that the system executable search path is irrelevant, and so you don't pick up some stray program off the path with the same name.
    To run a *.BAT, *.CMD, *.html *.BTM or URL you must invoke the command processor with these as a parameter. These extensions are not first class executables in Windows. They are input data for the command processor. You must also invoke the command processor when you want to use the < > | piping options, Here's how, presuming you are not interested in looking at the output:
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat" );
    Runtime.getRuntime( ).exec ("cmd.exe /E:1900 /C MyCmd.cmd" );
    Runtime.getRuntime( ).exec ("C:\\4DOS601\\4DOS.COM /E:1900 /C MyBtm.btm" );
    Runtime.getRuntime( ).exec ("D:\\4NT301\\4NT.EXE /E:1900 /C MyBtm.btm" );
    There are also overloaded forms of exec(),
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null);
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null, "C:\\SomeDirectory");
    The second argument can be a String [], and can be used to set environment variables. In the second case, "C:\\SomeDirectory" specifies a directory for the process to start in. If, for instance, your process saves files to disk, then this form allows you to specify which directory they will be saved in.
    Windows and NT will let you feed a URL string to the command processor and it will find a browser, launch the browser, and render the page, e.g.
    Runtime.getRuntime( ).exec ("command.com http://mindprod.com/projects.html" );
    Another lower level approach that does not require extension associations to be quite as well set up is:
    Runtime.getRuntime( ).exec ("rundll32 url.dll,FileProtocolHandler http://mindprod.com/projects.html" );
    Note that a URL is not the same thing as a file name. You can point your browser at a local file with something like this: file://localhost/E:/mindprod/jgloss.html or file:///E|/mindprod/jgloss.html.
    Composing just the right platform-specific command to launch browser and feed it a URL to display can be frustrating. You can use the BrowserLauncher package to do that for you.
    Note that
    rundll32.exe url.dll,FileProtocolHandler file:///E|/mindprod/jgloss.html
    won't work on the command line because | is reserved as the piping operator, though it will work as an exec parameter passed directly to the rundll32.exe executable.
    With explicit extensions and appropriately set up associations in Windows 95/98/ME/NT/2000/XP you can often bypass the command processor and invoke the file directly, even *.bat.
    Similarly, for Unix/Linux you must spawn the program that can process the script, e.g. bash. However, you can run scripts directly with exec if you do two things:
    Start the script with #!bash or whatever the interpreter's name is.
    Mark the script file itself with the executable attribute.
    Alternatively start the script interpreter, e.g.
    Runtime.getRuntime( ).exec (new String[]{"/bin/sh", "-c", "echo $SHELL"}";

  • How can I pass dynamic value as a user input parameter in discoverer?

    Hi,
    I have a requirement for a discoverer report like this: The report will display only details for Suppliers that have expired (or soon to be) Insurance details. That is the Expiration Date is less than or equal to the day the report is being run plus any days specified in the Number of Days in the Future Parameter.
    The sample code as:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    AND pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>
    order by pca.expiration_date asc
    Now the parameter is Number of Days in the Future (Enter the number days in the future to extract the data. This will default to 0).
    Is it possible in discoverer to do so as in query i do that like a condition as pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>.
    How can I pass <No. of Days in the Future> as a user input parameter in discoverer?
    Please help.

    Hi,
    All you need to do is to create the condition in the discoverer instead of in the query.
    Create a custom folder containing the following sq (note that i removed the condition)l:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    Then create a discoverer report using this folder using all fields.
    Create a new calculation as (use this exact syntax):
    Sysdate + :No_of_Days_in_the_Future
    Create a new condition:
    pca.expiration_date <= <your calculation>
    To complete it add a sort as you did in the SQL.
    That's it.
    Tamir

  • How can I pass empty value in URL Parameter

    Hi,
    I am passing different URL parameters to one page, to filter
    the recordset on that page. How can I pass an empty value in the
    URL parameter so that the recordset in unfiltered?
    The URL parameter is based on one field of the database:
    ContentType. So, the link would be to
    default.asp?ContentType=Event
    and then all records that have the ContentType field in the
    DB as Event are displayed. Is it possible to use this system to
    pass an empty parameter so that all records are displayed?
    Thanks
    Ian

    ?ContentType=All
    <% if (ContentType == "All")
    Build recordset w/o filtering
    ASP is rusty, but those are the basics.
    "iandobie" <[email protected]> wrote in
    message
    news:e8im80$q7m$[email protected]..
    > Hi,
    > I am passing different URL parameters to one page, to
    filter the recordset
    > on
    > that page. How can I pass an empty value in the URL
    parameter so that the
    > recordset in unfiltered?
    > The URL parameter is based on one field of the database:
    ContentType. So,
    > the
    > link would be to
    > default.asp?ContentType=Event
    > and then all records that have the ContentType field in
    the DB as Event
    > are
    > displayed. Is it possible to use this system to pass an
    empty parameter so
    > that
    > all records are displayed?
    > Thanks
    > Ian
    >

  • HT201343 When I mirror my macbook pro to my apple tv the only thing that shows up is one video that's on my desktop.  How can I watch something that's online on my laptop, on my apple tv?

    When I mirror my macbook pro to my apple tv the only thing that shows up is one video that's on my desktop.  How can I watch something that's online on my laptop, on my apple tv?

    Are you using mirroring or using airplay within iTunes? If you are truly mirroring then you can view anything that is displayed on your computer through Apple Tv
    Or provide more info on your issue

  • How can we pass the master report value in to detail  report

    Hi All,
    My question is how can I pass the master report value in to detail (Child) report filter?
    I mean I have one master report if I click on employee name then I have to pass the employee id in to details report filter. Then detail report will display data for that particular employee.
    How can I achieve this one in OBIEE?
    Please help me to resolve this issue. Thanks in advance for your time and support.

    In that case, you should look at using Go Url. In your column formula for the employee name, create a hyperlink to the detail report and pass the employee id.
    Take a look at this post: Re: Dyanmic display of the Image Link URL
    Thanks!

Maybe you are looking for

  • Problem with ana 3.6 Installation on solaris 10

    Hi, I'm going to install Cisco Ana 3.6.5 on Solaris 10 and this is my first experience. here are the information about my installation: OS: Solaris 10 64-bit Oracle 10g 10.2.0.3 I have installed Oracle and now when i try to install ana gateway , i ge

  • Timestamp in Oracle Forms10g

    Dear ALL, Can any one tell me how can i use the timestamp data type column in Oracle Forms 10G. when i create table with a time stamp as datatype and then when i make Data block by wizard i am getting FRM-10009 error message. My table structure is as

  • How to get current quater as  variable in Report title

    Hi Experts, I am trying to get current quater to be displayed as variable in the reports title. @{Quater[Q]} Can someone provide me exact syntax to get this one in Report title page... Thanks V

  • Is there a way to unprotect songs?

    I have songs from my old hardrive that i tried importing into the itunes library. They are in Windows Media Audio (wma) format. they are protected in this format. is there a way to unprotect them and get them into itunes format so i can get them on t

  • Time Machine Not AVAILABLE !!! Why EVERYTIME I upgrade, this happens and I have to always start from scratch!!!!!

    Apple is SO good on some things and SO TERRIBLE on others. EVERYTIME I get a new macbook pro and/or upgrade to the new OS, my time capsule Time machine backup ALWAYS screws up.... It is so frustrating. So when I try to back up, it says the " the back