12 Replies - 1528 Views - Last Post: 24 February 2012 - 09:44 PM
#1
vb code to launch a new form when button is clicked
Posted 22 February 2012 - 10:40 AM
what i used before when i created a userform in excel is this:
Private sub LogBut_Click()
logForm.show
End sub
i tried the above and changed .show to .load but it ddn't work. I'm totally lost... Please help..
thanks,
roan
Replies To: vb code to launch a new form when button is clicked
#2
Re: vb code to launch a new form when button is clicked
Posted 22 February 2012 - 10:46 AM
#3
Re: vb code to launch a new form when button is clicked
Posted 22 February 2012 - 11:03 AM
This post has been edited by nK0de: 22 February 2012 - 11:04 AM
#4
Re: vb code to launch a new form when button is clicked
Posted 22 February 2012 - 11:19 AM
#5
Re: vb code to launch a new form when button is clicked
Posted 22 February 2012 - 11:32 AM
nK0de, on 22 February 2012 - 11:03 AM, said:
thanks! i'll check it out
#6
Re: vb code to launch a new form when button is clicked
Posted 22 February 2012 - 11:56 AM
In any case - assuming your two forms are label something like 'form1' and 'form2' you would want to create an instance of your form2 and then 'show' it.
Something like this:
'-- form1's button click start Dim frm2 As New Form2 frm2.Show() '-- form1's button click stop
#7
Re: vb code to launch a new form when button is clicked
Posted 22 February 2012 - 03:11 PM
#8
Re: vb code to launch a new form when button is clicked
Posted 23 February 2012 - 10:10 PM
modi123_1, on 22 February 2012 - 11:56 AM, said:
In any case - assuming your two forms are label something like 'form1' and 'form2' you would want to create an instance of your form2 and then 'show' it.
Something like this:
'-- form1's button click start Dim frm2 As New Form2 frm2.Show() '-- form1's button click stop
thanks a lot! it's working...
#9
Re: vb code to launch a new form when button is clicked
Posted 23 February 2012 - 10:16 PM
trevster344, on 22 February 2012 - 03:11 PM, said:
yeah, that's right.. That's why am havin a hard time with vb2010, i'm used to excel's vba codes which i've learned from school 10-12 years ago when i was still in college. hehehe, it's quite embarassing though.. when i made the userform in excel everything was working perfectly but when i tried vb2010,I gt lost! but thanks a lot anyway! i have a lot to learn..
#10
Re: vb code to launch a new form when button is clicked
Posted 23 February 2012 - 10:28 PM
#11
Re: vb code to launch a new form when button is clicked
Posted 24 February 2012 - 04:27 AM
trevster344, on 23 February 2012 - 10:28 PM, said:
thanks for the support! i really appreciate it.
another request, can you tell me where i can find a tutorial here on how to transfer values from my textboxes, radiobuttons, and listboxes to a listview... i've been searching for the tutorial but can't find it. made 3 forms, 1 for my login w/ pword and my reliever's, 1 with the listview(transaction log) and one with the textboxes,etc.., my only problem right now is transferring the values to the listview and inserting a countdown timer and countup timer..
thanks in advance!
#12
Re: vb code to launch a new form when button is clicked
Posted 24 February 2012 - 06:48 AM
(hint there's a nice example after the treasure trove of information on the various methods of a list view)
http://msdn.microsof...=vs.100%29.aspx
#13
Re: vb code to launch a new form when button is clicked
Posted 24 February 2012 - 09:44 PM
modi123_1, on 24 February 2012 - 06:48 AM, said:
(hint there's a nice example after the treasure trove of information on the various methods of a list view)
http://msdn.microsof...=vs.100%29.aspx
Thank you so much! I think you really are a good mentor, u can give advise and solution and also point where i can learn things that i need to know.. Thank u!
|
|

New Topic/Question
Reply




MultiQuote







|