|
-
Jun 9th, 2004, 01:43 AM
#1
Thread Starter
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|