How to change picture box into sentence

I need to make 3 picture boxes disappear when one of them is clicked and a sentence to appear in their place. For example if picture box 1 is clicked they all three disappear and the sentence "you have chosen picture box 1 appears"

Put a label and three pictureboxes on your form from the Toolbox.
The code below alters the label for the name of a picturebox clicked on and the picturebox's "disappear". Clicking on the label will make the label text return to "Waiting" and the picturebox's will "reappear". The label is
centered in the form whenever its text is changed.
Option Strict On
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.Location = New Point(CInt((Screen.PrimaryScreen.WorkingArea.Width / 2) - (Me.Width / 2)), CInt((Screen.PrimaryScreen.WorkingArea.Height / 2) - (Me.Height / 2)))
Label1.Text = "Waiting"
Label1.Left = CInt((Me.ClientRectangle.Width / 2) - (Label1.Width / 2))
End Sub
Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click
Label1.Text = "Waiting"
Label1.Left = CInt((Me.ClientRectangle.Width / 2) - (Label1.Width / 2))
PictureBox1.Visible = True
PictureBox2.Visible = True
PictureBox3.Visible = True
End Sub
Private Sub PictureBox_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click, PictureBox2.Click, PictureBox3.Click
Label1.Text = DirectCast(sender, PictureBox).Name & " was selected."
Label1.Left = CInt((Me.ClientRectangle.Width / 2) - (Label1.Width / 2))
PictureBox1.Visible = False
PictureBox2.Visible = False
PictureBox3.Visible = False
End Sub
End Class
La vida loca

Similar Messages

  • How to change 'z' key into 'A' key with key blinding?

    How to change 'z' key into 'A' key?
    Although txt.setText("A") can set the text field with 'a', but it is not original input from keyboard because it cant trigger the key listener.
    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Main
    {   public static void main(String[] args)
        {   JFrame f = new JFrame("Test");
            Test GUI = new Test();
            GUI.setOpaque(true);
            f.setContentPane(GUI);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setVisible(true);
    class Test extends JPanel
    {   JTextArea txta = new JTextArea(10,20);
        JTextField txt = new JTextField(10);
        JScrollPane sp_txta = new JScrollPane(txta);
        public Test()
        {   this.setPreferredSize(new Dimension(400,300));
            setLayout(new BorderLayout());
            txta.setEditable(false);
            add(sp_txta, BorderLayout.CENTER);
            add(txt, BorderLayout.PAGE_END);
            Action testAction = new AbstractAction()
            {   public void actionPerformed(ActionEvent ae){ txt.setText("A"); }
            txt.getInputMap().put(KeyStroke.getKeyStroke('z'), "test");    //Change z into A
            txt.getActionMap().put("test", testAction);
            txt.addKeyListener
            (   new KeyListener()
                {   public void keyPressed(KeyEvent e){ txta.append(e.getKeyChar() + " key is pressed \n"); }
                    public void keyReleased(KeyEvent e){ txta.append(e.getKeyChar() + " key is released \n"); }
                    public void keyTyped(KeyEvent e){ txta.append(e.getKeyChar() + " key is typed \n"); }
    }Edited by: 835972 on Feb 11, 2011 8:11 AM

    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.With r.keyPress method, it only can perform single key pressed at a time. Do you have any idea how to perform multiple key pressed at a time?The javadoc for Robot.keyPress suggests ( "+The key should be released using the keyRelease method+" ) that the key remains "pressed" until you keyRelease(...) it. So, press the keys sequentially:
    theRobot.keyPress(KeyEvent.VK_Q);
    theRobot.keyPress(KeyEvent.VK_W);
    // At this stage both Q and W are pressed "in same time"
    ... // do stuff
    theRobot.keyRelease(KeyEvent.VK_W);
    // At this stage, only Q is pressedI suspect that in real life, unless you're a very gifted musician, you don't really press keys "at the same time" (under the time resolution of a keyboard, which I imagine is around a few milliseconds).

  • I have just installed Illustrator CS6 yesterday, but I found it was in French. Could help me figure out how to change the language into English?

    I have just installed Illustrator CS6 yesterday, but I found it was in French. Could help me figure out how to change the language into English?
    I got my series number from my Institut (which is in Paris, FR). I do not use Creative Cloud.
    When I was installing the software, I cannot select a language.
    Could you help me with my problem? Do I have to get a different series number?

    lunc,
    You will have to get a new application in English, to replace the French one.
    You, or your Institute will have to get help from Adobe, I am afraid.
    You may try a chat here,
    Get help with orders, refunds, and exchanges (non-CC, chat open between 5AM and 7PM PST/PDT on workdays)
    http://helpx.adobe.com/x-productkb/global/service-b.html
    or (have your Institute) talk to Adobe in France
    http://helpx.adobe.com/adobe-connect/adobe-connect-phone-numbers.html
    If you fail to get any help, please report back here, and I will ask a special forum staff friend to try to find the right one at Adobe to have things sorted out.

  • Ibooks 3.1 how to change horizontal scroll into vertical scroll

    update to ibooks 3.1, the scroll mode is changed into horizontal scroll, now in my .epub books it cut so many picture in two parts and display in two pages...how to change , back to vertical mode...

    I find this maybe is the new feature only for books with Asia-Pacific words....english books is right with vertical scrolling mode...but chinese books whit horizontal scrolling mode
    why apple doesn't make a set up to change between this ..

  • How to change the box width of a template

    Hi,
    I want to set a Lower margin for the last row in the template of a described width.
    I am trying to change the widh of box in the template. but
    even after saving and activating the form the chages are lost the next time i logged in to the ECC.
    its defaulted to 15 TW.
    Can anybody suggest how to change this widht ?
    Thanks and Regards,
    Amit Bhagwat

    Hi
    Table Painter is used to design layout of Templates & Tables.
    http://help.sap.com/saphelp_nw04/helpdata/en/4b/83fb4edf8f11d3969700a0c930660b/frameset.htm
    You can say its nothing but graphical format of template.
    Template is to display a table whose layout and size (number of lines and columns) is determined before the runtime of the application program. For this reason, a template is also called a static table
    Regards
    Anji

  • Help - how to change Check Box color?

    Hi All!
    Can anyone help and tell me how to change the color of a Check Box (inside the little square where users check or un-check) from the default white color to, say, gray?
    Thanks in advance.
    aguo

    1) Quit multi-posting questions
    2) JavaScript is not Java.

  • How to change picture message priority for selecting pictures?

    I recently was making a picture message for a friend, and when I selected the add attachment icon it brings up the screen for you to select from your "gallery" or your "files"
    Then you select which one and hit always select this option or only once.
    I accidentally hit the files section and hit always select that option and honestly I don't want to have to go through all of my files every time to find my picture and would rather have it be gallery every time.
    Does anyone know how to change this?
    Thank you.
    It is a droid razr maxx hd.

    Settings > Apps >scroll over to the All tab > scroll down to files and select it. Touch the clear defaults button.

  • How to change Transport request into local object $temp.?

    Hi experts,
    I would like to know to how to change a Transport request into and local object.
    I have already assigned Infopackage to TR, but its not required. We dont want this infopackage to be transported to prod. So how can i change that as a local object.
    Please put our valuable inputs.
    Thanks in advance.
    Regards,
    Dubbu

    Go To that Infopackage ,
    Extras Menu----Object catalog entry.  There you can change package name.
    or
    In SE09---Under the transport requests you can search for the infopackage name and delete from the TR.
    Regards,
    Srikanth
    Edited by: srikanth on Feb 19, 2009 2:26 PM
    Edited by: srikanth on Feb 19, 2009 2:27 PM

  • How to change Error Message into warning message

    Dear Friends,
    I am getting an error
    The qty stored that was entered is adjusted
    Message no. XU 040
    at the time of GRN. I am maintaining batch specific Unit of Measure.
    Please tell me how to change this error message in to a warning message.
    Thanks
    Prashant Atri

    Hello Prashant,
    This is satndard SAP messagge which is maintained in customizing;
    SPRO>>Logistics - General>>Batch Management>>Define Attributes of System Messages
    Here you can convert this messages to warning message. I urge you to please check with abaper as this may be hardcoded message and it may have implications on valuation and posting.
    In the above IMG path you can do the changes
    Br,
    Tushar
    Edited by: Tushar Patankar on Jan 1, 2011 5:36 PM

  • How to Change Open item into Non open item for GL

    Dear All,
                    I have created a GL in FS00 and clicked the open item management for it. 1 entry is posted to that account.Then i have reversed the entry and want to change the Gl from open item to non open item .The message appears as the balance is zero but open item exists.Please suggest how to make it non open
    Moderator: Please, search SDN

    Hi,
    Check the below threads which are useful.
    Open item management status change
    How to change Line item to open item management in G/L transaction?
    Thanks
    Aravind

  • TS3354 HOW TO CHANGE HD MOVIES INTO REGULAR MOVIE

    how to change hd movies on itunes to regular movies

    iTunes automatically syncs HD videos (if they exist in your library) unless you check "Prefer standard definition videos" in the iTunes iPad Summary tab.

  • How to change the image into byte and byte array into image

    now i am developing one project. i want change the image into byte array and then byte array into image.

    FileInputStream is = new FileInputStream(file);
    byte[] result = IOUtils.toByteArray(is);
    with apache common IO lib

  • How to change a LOV into a Checkbox in OIE (iExpenses)

    Hi again Gurus!
    I needing some help here.
    I needed to add a checkbox at page in OIE (iExpenses)
    /oracle/apps/ap/oie/entry/lines/webui/DetailsPG
    so first i did was add an descriptive flexfield segment into Payables - "Expense Report Line"
    inside Global Data Elements i set a field pointing to an standard value set named "Yes_No"
    so now when i go in that page, the new fields appear OK.
    the problem is that this new field looks like an input text with a LOV.
    but i want to change this look to a checkbox because is a Yes/No and will look better
    is there is any chance to do this?
    how?
    thanks a lot!!!!
    and im sorry for my poor english

    Hi,
    I am not sure how you have configured the flex field,
    I think the VO associated with the data is EO based, use one of the Attribute1 to Attribute15.
    Make sure that attribute is not being used by some other customization.
    And just add a new field of type Chexbox via personalization and then associate the VO instance and VO Attribute (say Attribute15)
    and then check the value is getting saved in the Attribute15.
    Thanks,
    With regards,
    Kali.
    OSSI.

  • MASTER DATA: HOW TO CHANGE SHIP TO INTO SOLD TO

    Hi Gurus,
    can you please help?
    i need to change a ship to party into a sold to party. can you tell me how to do it?
    thanks
    C.

    Hi,
    If u want to change a SP to SH then use XD07.. to change the a/.c grp..

  • How to change Cisco EPC2425 into bridge mode

    Hi,
    I need help regarding how to chage ECP2425 into bridge mode. I have Wireless NAS drive router which has its own DHCP and NAT service. At the moment my Wireless Timecapsule (NAS Drive) is in bridge mode and connected to EPC2425 with ethernet cable. Everything is fine. But in order to access my timecapsule over the internet, I need to use its (timecapsule)'s NAT service. For this, I need to put EPC2425 which is my first point of access from internet, into bridge mode or atleast disabled its (EPC2425) NAT service. Unfortunately, I am not been able to find NAT or Bridge mode option on EPC2425. I will appreciate if anyone can help me out in this case. I need to change my EPC2425 router into bridge mode or gateway mode.
    Thank you very much                  

    Hi Azhar,
    Thank you for your question.  However, this community is for Cisco Small Business Products and the DPC/EPC2425 is not a Cisco Small Business Product.
    Your product is an internet service provider (ISP) supported product.  In other words you need to contact your ISP or technology reseller that you purchased this from to help you with your question.
    http://www.cisco.com/web/consumer/support/modem_DPC2425.html
    http://www.cisco.com/web/consumer/support/prod_modems.html
    Regards,
    Cindy Toy
    Cisco Small Business Community Manager
    for Cisco Small Business Products
    www.cisco.com/go/smallbizsupport
    twitter: CiscoSBsupport

Maybe you are looking for