![]() |
| ||
| Related to Forms Property Hi Friends I M Using vb6, i have a problem in this that when i execute my s/w so only, any single form becomes open at a time but i want that multiple forms must work together, Please Help Me. |
| ||
| Re: Related to Forms Property I think we are going to need a better explanation of what you want to do, because from reading your OP I can think of several things and some of them seem to be contrary to what you little sentance says... So are you wanting to create a wizard like application in that the user goes from one form to the next filling out options? Are you wanting several forms displayed at same time and when information changes on one it changes on the others? Are you asking how to pass information from one form to another? |
| ||
| Re: Related to Forms Property Quote:
Okay, when displaying several forms (and this is just a quick example) you can do something like this (however this reuses the same form so is not directly related to what you want to do with different forms but as for a visual example it works)... Option Explicitbut if you have done something like this... Option Explicitthen each form will display on top of one another and you will not be able to access any of the forms underneath until you close the top one. Soooo, what does this mean you ask???? Well, when showing your multiple forms you probably want to do something like this... Private Sub Command1_Click() Now, if you want to have a form that stays behind others you can do this... Private Sub Command1_Click()This will keep forms 2, 3, and 4, on top of Form1 but you will still be able to interact with form1. Okay, now for passing information from one form to another.... The most direct method is to pass information from whatever controls event in the form that has focus is to directly call any of the following in the other form... Control like text box to utilize its change event Private Sub Command1_Click()Or a public declared sub/function... Public Function MyForm1PublicFunction(MyStringToPass As String) As String 'do stuff End Function [/code] and it would be called like so... Private Sub Command1_Click()And the last direct way would be to modify the display from the form that has focus by using the direct method above... '... Good Luck |
| ||
| Re: Related to Forms Property Thank's For Reply, It Is Working Now |
| All times are GMT -4. The time now is 2:14 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC