| | |
Open a form by variable
![]() |
Hi esdat...specify more what the problem and show the effort friend
.
ps : (welcome to daniweb)met datang di daniweb pak.
.ps : (welcome to daniweb)met datang di daniweb pak.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
i think what he means is creating a function that would open a form through a varialble..
this is only my opinion about what he said...
Sample:
on the Click event of the button, i wanna close a form.. he prefers to call a function.
is that what you want? edsat?
this is only my opinion about what he said...
Sample:
on the Click event of the button, i wanna close a form.. he prefers to call a function.
•
•
•
•
call CloseForm(variable)
sub Closeform(variable)
'the variable would trigger the open event of the form...
end sub
Last edited by cometburn; Feb 26th, 2008 at 4:04 am.
Proud to be Philippine made...
Are you trying to do this
vb Syntax (Toggle Plain Text)
Private Sub Command1_Click() Dim f As New Form1 f.Show End Sub
Share your Knowledge.
hmmm. i got a same think like debasisdas
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
I made a menu with ListView. when i doubleclick selected item on that menu, it must call form that i put the formname on a variable that call nAction
Private Sub ListMenu_DblClick()
Dim nAction As String
nAction = ListMenu.SelectedItem.SubItems(1)
?......
load a formname nAction ?
End Select
thank's
Private Sub ListMenu_DblClick()
Dim nAction As String
nAction = ListMenu.SelectedItem.SubItems(1)
?......
load a formname nAction ?
End Select
thank's
vb Syntax (Toggle Plain Text)
Private Sub ListView1_DblClick() Select Case ListView1.SelectedItem.Text Case "form1" form1.Show Case "form2" form2.Show ... Case Else MsgBox "ga ada yang diload" End Select End Sub
Last edited by Jx_Man; Feb 26th, 2008 at 6:49 am.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
Similar Threads
- How to define global variable in C# (C#)
- 'Object variable or With block variable not set' Error (ASP.NET)
- html/php form for .htaccess validation (PHP)
- How do I pass data in string from a form to another? (Visual Basic 4 / 5 / 6)
- PHP e-mail copy to viewer themselves ??? (PHP)
- Open window (Visual Basic 4 / 5 / 6)
- Perl/CGI (Saving Data) Part III (Computer Science)
- Populating a fields on a form base on a selected item from a droplist. (PHP)
- Fun with Forms (PHP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: know when print job is finished
- Next Thread: Retrieve from a database
| 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 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 save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






