Results 1 to 2 of 2

Thread: Data - Multiple Forms

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    INDIA
    Posts
    31

    Data - Multiple Forms

    Hi all,

    I have a small problem in VB.NET

    Problem:
    -----------

    I have 2 Forms(Form1, Form2) and a standard Module.

    In Form1 : 1 Picture Box (to display pic)
    1 RichTextBox (to display text file)
    1 CommandButton (to show Form2)

    In Form2 : 1 List Box (Holds image files names with path extracted from the folder)
    1 List Box (Holds the selected image file info)
    4 CommandButtons
    named as 1.Prev (to move to the Previous Image)
    2.Next (to move to the Next Image)
    3.Add (to add selected image to ListBox)
    4.Remove (to remoce unwanted image)

    Module: Consist of procedures

    Proc1:
    ShowImage

    Proc2:
    LoadImages(ByVal lstFileNames As ListBox, ByVal rtbRichText As RichTextBox, ByVal picImage As PictureBox)

    Now u can identify that "picImage" and "rtbRichText" are from the Form1 and "lstFileNames" is from Form1.

    In form1 load i want to call this Procedure so that first image will be displayed in the form1 image after clicking the form1.CommanButton Form2 will be displayed.

    In Form2 if user clicks "Next" then next image has to be displayed in the Form1.PictureBox using LoadImage procedure.

    But unfortunatly i am not able to do this can u tell me how to do this.

    Thanks in advance

    Regards

    Nag K.
    Nagendra K

  2. #2
    Lively Member ayan's Avatar
    Join Date
    Jan 2004
    Posts
    112
    like this? if not, sorry...
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width