| View previous topic :: View next topic |
| Author |
Message |
Mussy69 Grandmaster Cheater
Reputation: 0
Joined: 09 Mar 2007 Posts: 842 Location: Sydney
|
Posted: Mon Sep 10, 2007 4:35 am Post subject: [Microsoft Visual Basic 2008 Express Edition]Coding |
|
|
Please i would appreciate it if no "haha phail you'll neva find out"and all that
uhm how do you code a Credits box its not the same as VB6 cuz VB6 code is
| Code: | load frmAbout
frmAbout.Show VBModeless |
and ours is completely different not 1 off lose words are a code besides .Show in VB2008EE but similair as in frmAbout = AboutBox1 but i dont no what load and VBModeless codes are for VB08EE please someone? much appreciated im feeling good 2day so il +rep u
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Sep 10, 2007 1:57 pm Post subject: |
|
|
Make your new form that you want to use then just do something like...
Dim creditsForm2 as new Form2
creditsForm2.Show
I don't know VB, but it's something like that.
|
|
| Back to top |
|
 |
TheSorc3r3r I post too much
Reputation: 0
Joined: 06 Sep 2006 Posts: 2404
|
Posted: Mon Sep 10, 2007 3:41 pm Post subject: |
|
|
haha phail you'll neva find out
_________________
Don't laugh, I'm still learning photoshop! |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Mon Sep 10, 2007 4:07 pm Post subject: |
|
|
you have to realize VBModeless is an optional default constant meaning "0"
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
Mussy69 Grandmaster Cheater
Reputation: 0
Joined: 09 Mar 2007 Posts: 842 Location: Sydney
|
Posted: Mon Sep 10, 2007 5:16 pm Post subject: |
|
|
is VBModeless really necessary
_________________
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Mon Sep 10, 2007 6:30 pm Post subject: |
|
|
if it is 0 and it is default, is it necessary?
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
Mussy69 Grandmaster Cheater
Reputation: 0
Joined: 09 Mar 2007 Posts: 842 Location: Sydney
|
Posted: Mon Sep 10, 2007 11:22 pm Post subject: |
|
|
huh?
could u jus tell me the full code? plz +rep
_________________
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Tue Sep 11, 2007 2:11 am Post subject: |
|
|
shouldnt frmAbout.Show (modalLess) work as well as frmAbout.Show 1 (modal)?
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Tue Sep 11, 2007 2:12 am Post subject: |
|
|
shouldnt frmAbout.Show (modalLess) work as well as frmAbout.Show 1 (modal)?
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
Mussy69 Grandmaster Cheater
Reputation: 0
Joined: 09 Mar 2007 Posts: 842 Location: Sydney
|
Posted: Tue Sep 11, 2007 3:43 am Post subject: |
|
|
so i put
| Code: | Dim AboutBox1
AboutBox1.Show (moadlLess) |
am i ryte?
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Sep 11, 2007 12:11 pm Post subject: |
|
|
you aren't declaring the aboutbox1 as anything.
and you butchered "modal"
|
|
| Back to top |
|
 |
Mussy69 Grandmaster Cheater
Reputation: 0
Joined: 09 Mar 2007 Posts: 842 Location: Sydney
|
Posted: Tue Sep 11, 2007 11:54 pm Post subject: |
|
|
so like how do i declare it?
could you please give me a full working code?
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Sep 12, 2007 2:01 pm Post subject: |
|
|
Dim aboutBox as new AboutBox1()
aboutBox1.Show()
|
|
| Back to top |
|
 |
Mussy69 Grandmaster Cheater
Reputation: 0
Joined: 09 Mar 2007 Posts: 842 Location: Sydney
|
Posted: Wed Sep 12, 2007 4:55 pm Post subject: |
|
|
ok thanks il test it after school
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Sep 12, 2007 6:03 pm Post subject: |
|
|
Just tossing this in here since no one said it. Modal means to have an owner form so you cannot click off that form until its closed. As for VB2008? or what ever you are coding in, I cannot help much there, I don't touch .NET as its crap.
In VB6 the setup for using the modal option was:
<formname>.show vbModal, Me
Which would set the owner form to the form opening the new one.
If you can convert a VB6 project to VB2008, you can try this small example I just tossed together:
http://rapidshare.com/files/55266795/Example.rar.html
Good luck.
|
|
| Back to top |
|
 |
|