Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,186 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,072 people online right now. Registration is fast and FREE... Join Now!




game form help

 
Reply to this topicStart new topic

game form help, can you load a form in a window already open

hyteck
28 Aug, 2007 - 04:00 PM
Post #1

D.I.C Head
**

Joined: 15 Apr, 2007
Posts: 89


My Contributions
in visual basic can you open a form in a window already open .... like if you had a game and you went to a new land and the land was a form could you load that land as the form thats already open

if someone could tell me a site or give me a snip to work with that would be grate

thanks
User is offlineProfile CardPM
+Quote Post

m2s87
RE: Game Form Help
29 Aug, 2007 - 08:06 AM
Post #2

D.I.C Regular
Group Icon

Joined: 28 Nov, 2006
Posts: 390



Thanked: 1 times
Dream Kudos: 1225
My Contributions
QUOTE(hyteck @ 29 Aug, 2007 - 03:00 AM) *

in visual basic can you open a form in a window already open .... like if you had a game and you went to a new land and the land was a form could you load that land as the form thats already open

if someone could tell me a site or give me a snip to work with that would be grate

thanks

Well, depends what you want to do with it. Anyhow I think, syntax in vb6 for it, might have been something like:
CODE

Sub make_new_instance_of_an_existing_form()
   dim x as new Form_land

   with x
      .visible=true
      .show()
      rem set other properties
   end with
end sub


Note that as the procedure closes, you might have left only events with what you can communicate with the form. You can however create a global variable before and then just assign memory to it.
User is offlineProfile CardPM
+Quote Post

hyteck
RE: Game Form Help
29 Aug, 2007 - 11:08 AM
Post #3

D.I.C Head
**

Joined: 15 Apr, 2007
Posts: 89


My Contributions
QUOTE(m2s87 @ 29 Aug, 2007 - 09:06 AM) *

QUOTE(hyteck @ 29 Aug, 2007 - 03:00 AM) *

in visual basic can you open a form in a window already open .... like if you had a game and you went to a new land and the land was a form could you load that land as the form thats already open

if someone could tell me a site or give me a snip to work with that would be grate

thanks

Well, depends what you want to do with it. Anyhow I think, syntax in vb6 for it, might have been something like:
CODE

Sub make_new_instance_of_an_existing_form()
   dim x as new Form_land

   with x
      .visible=true
      .show()
      rem set other properties
   end with
end sub


Note that as the procedure closes, you might have left only events with what you can communicate with the form. You can however create a global variable before and then just assign memory to it.


thanks ... i dont want to sound winey
it just opens form2 in a new window ......

i need it so when my player.location=x,y then it loads the land in the same window you are using ... not a new one ..... like in 2d rpgs when you go in a house
User is offlineProfile CardPM
+Quote Post

m2s87
RE: Game Form Help
29 Aug, 2007 - 04:14 PM
Post #4

D.I.C Regular
Group Icon

Joined: 28 Nov, 2006
Posts: 390



Thanked: 1 times
Dream Kudos: 1225
My Contributions
Sorry, i misunderstood you. You want to create a window inside a window? Well, have you tried MDI form?
User is offlineProfile CardPM
+Quote Post

hyteck
RE: Game Form Help
29 Aug, 2007 - 08:45 PM
Post #5

D.I.C Head
**

Joined: 15 Apr, 2007
Posts: 89


My Contributions
QUOTE(m2s87 @ 29 Aug, 2007 - 05:14 PM) *

Sorry, i misunderstood you. You want to create a window inside a window? Well, have you tried MDI form?

thanks ... this looks more promising .... but i dont know how to use mdi forms ... do you know a site that covers mdi forms ?

User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Game Form Help
29 Aug, 2007 - 08:52 PM
Post #6

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,983



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Heres a link for you regarding MDI Forms in VB6 smile.gif

MDI For Visual Basic 6.0 Users

Happy Coding!


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 01:14AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month