| View previous topic :: View next topic |
| Author |
Message |
madmunky Newbie cheater
Reputation: 0
Joined: 08 Mar 2008 Posts: 21
|
Posted: Tue Mar 11, 2008 4:13 am Post subject: VB2008 Forms |
|
|
Can anyone explain how I open a form in inside my main window
I know i can do form2.Show() but that opens it in its own window I want to keep my top menu but change the content which is below without having loads of different windows.
Also with .Show() command how to you tell it when to show the window i.e. I want to make it in the center of my original window for the about box.
|
|
| Back to top |
|
 |
1929394839292057839194958 Grandmaster Cheater Supreme
Reputation: 130
Joined: 22 Dec 2006 Posts: 1509
|
Posted: Tue Mar 11, 2008 4:41 am Post subject: |
|
|
Quit VB.
It sucks so bad.
|
|
| Back to top |
|
 |
madmunky Newbie cheater
Reputation: 0
Joined: 08 Mar 2008 Posts: 21
|
Posted: Tue Mar 11, 2008 4:54 am Post subject: |
|
|
Why does it suck, cause no one knows how to use it?
Loads of people seem to use VB6 and Im guessing VB2008 can do everything VB6 can and more. I like the interface for VB2008 its just im a noob and need some help getting started.
I download Delphi 2007 but that look old and nasty and I dont think i could handle C++
|
|
| Back to top |
|
 |
Orbit Advanced Cheater
Reputation: 0
Joined: 09 Dec 2007 Posts: 74
|
Posted: Wed Mar 12, 2008 12:40 pm Post subject: |
|
|
| Code: | | form2.visible = true |
_________________
VB2008 Programmer  |
|
| Back to top |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Wed Mar 12, 2008 1:37 pm Post subject: |
|
|
I remeber reading it somwhere on the internet. I think search for
'vb.net parent and child forms'
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Wed Mar 12, 2008 1:43 pm Post subject: |
|
|
Use MDI / child forms
_________________
|
|
| Back to top |
|
 |
madmunky Newbie cheater
Reputation: 0
Joined: 08 Mar 2008 Posts: 21
|
Posted: Thu Mar 13, 2008 3:17 am Post subject: |
|
|
| Cheers for the replys, I ended up using Parent and Child with MDI the problem I have now it does anyone know how to link the child form to the size of the parent so it resizes correctly when the parent is resized?
|
|
| Back to top |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Thu Mar 13, 2008 8:33 am Post subject: |
|
|
| madmunky wrote: | | Cheers for the replys, I ended up using Parent and Child with MDI the problem I have now it does anyone know how to link the child form to the size of the parent so it resizes correctly when the parent is resized? |
You would have to use the form resize event. I tried to make a code but its was to complex, so all I can give you is the form_resize event.
| Code: |
Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
End Sub
|
|
|
| Back to top |
|
 |
|