| | |
Form1.Show - is it a method?
![]() |
•
•
Join Date: Apr 2009
Posts: 13
Reputation:
Solved Threads: 0
I understand what SHOW does. I want the terminology of what it is. In Visual FoxPro, both SHOW and LOAD were considered event methods and they both gave the programmer the ability to add custom code. VB only allows me to add custom code to LOAD. So ... I am wondering what is SHOW if it is not an Event Method.
•
•
Join Date: Nov 2007
Posts: 140
Reputation:
Solved Threads: 15
Object Browser within VB6 says:
Say (for example's sake) I have a form called frmMainWindow.
I want to open the form as it is and display it onscreen, so I would do
I can make it modal (i.e. it becomes the foremost window of the VB application I created by doing
instead.
Now, if I had the same form (frmMainWindow), but wanted to pass some information into the form which I intend on using when displaying the form onscreen (and the data controls on it for example), I would first load the form
and then I would have exposed the public properties/subs/functions within the form so I can use them where I am.
Example:
There, I have loaded the form into memory, then used an example property, sub and function before displaying the form using .Show
I hope that has helped? If I have just pretty much repeated what you already knew, then I apologise
•
•
•
•
Sub Show([Modal], [OwnerForm])
Member of VB.Form
Displays an MDIForm or Form object.
•
•
•
•
Event Load()
Member of VB.Form
Occurs when a form is loaded.
I want to open the form as it is and display it onscreen, so I would do
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
frmMainWindow.Show
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
frmMainWindow.Show vbModal
Now, if I had the same form (frmMainWindow), but wanted to pass some information into the form which I intend on using when displaying the form onscreen (and the data controls on it for example), I would first load the form
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Load frmMainWindow
Example:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Load frmMainWindow frmMainWindow.ExampleProperty = "blah" frmMainWindow.ExampleSub bTest = frmMainWindow.ExampleFunction("info",1) frmMainWindow.Show vbModal
I hope that has helped? If I have just pretty much repeated what you already knew, then I apologise
![]() |
Similar Threads
- retreive value into textbox from form1 to form2 (ASP.NET)
- Problem on Multiple Forms (C#)
- Is this the correct Code ? (ASP.NET)
- pass the value to the text box (JavaScript / DHTML / AJAX)
- Change Button Name (C#)
- Threading, Delegates and the Invoke method. (VB.NET)
- Whats the code for a reset button.. (Visual Basic 4 / 5 / 6)
- Code examples for events (e.g. buttons) for a newbie (Visual Basic 4 / 5 / 6)
- Need Traffic to Your Site? Let us with 10 Years Experience Show You How! (Post your Resume)
- multiform windows appliction in VB . NET (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Check Box Control Array Problem
- Next Thread: Reading file names from a zip file
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






