bintin Posted February 5, 2013 Author Share Posted February 5, 2013 I'm slowly learning VB6 and i'd like if it someone could guide me in the right direction, how would I make a picture box visible when someone enters a certain map or joins the game for the first time? ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)Thank you. Link to comment Share on other sites More sharing options...
Matt Posted February 5, 2013 Share Posted February 5, 2013 I'm glad to hear that you're making the effort to learn VB6! Assuming you know how to make a picturebox visible, the easiest way to do it would be once the frmMain loads, the picturebox shows. Link to comment Share on other sites More sharing options...
bintin Posted February 5, 2013 Author Share Posted February 5, 2013 Yeah I know how to do that it's just getting it to only become visible in a certain map or when someone first joins the game. ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
Matt Posted February 5, 2013 Share Posted February 5, 2013 > Yeah I know how to do that it's just getting it to only become visible in a certain map or when someone first joins the game. ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)Ah! Missed the "for the first time" bit.To make it visible when you're in a certain map, put in the sub which detects keypresses and check to see if the player is on a specific map.```If Player(myindex).map = MapNumberHere thenPicturebox.visible = trueend if``` Link to comment Share on other sites More sharing options...
bintin Posted February 5, 2013 Author Share Posted February 5, 2013 That makes a lot of sense! Thank you ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
boyesjs03 Posted February 5, 2013 Share Posted February 5, 2013 Right, i have a question of a related manner.If I have a gui open and have buttons that open frames inside this how do i bring these frames to the front so i can visually edit them?I am also new to Vb6 Link to comment Share on other sites More sharing options...
Matt Posted February 5, 2013 Share Posted February 5, 2013 As far as I've learned, you need to cut and paste them in the Form Editor. There might be another way, but this is the only way I know. Link to comment Share on other sites More sharing options...
bintin Posted February 5, 2013 Author Share Posted February 5, 2013 What are you trying to 'visually' edit? buttons, the GUI layout? Link to comment Share on other sites More sharing options...
Lavos Posted February 5, 2013 Share Posted February 5, 2013 > Right, i have a question of a related manner.> > If I have a gui open and have buttons that open frames inside this how do i bring these frames to the front so i can visually edit them?> > I am also new to Vb6Start reading up on everything with the syntax…....[http://msdn.microsoft.com/en-us/library/aa267180%28v=vs.60%29.aspx](http://msdn.microsoft.com/en-us/library/aa267180%28v=vs.60%29.aspx) Link to comment Share on other sites More sharing options...
boyesjs03 Posted February 5, 2013 Share Posted February 5, 2013 Do I just place this in a new Private sub and that will brin the specified frame to the front? Link to comment Share on other sites More sharing options...
boyesjs03 Posted February 5, 2013 Share Posted February 5, 2013 Spectre, Im trying to edit te gui layout in general, not changing the buttons fuctions or anything. Link to comment Share on other sites More sharing options...
Wortel Angels Posted February 5, 2013 Share Posted February 5, 2013 If its still the question with show an pic one time at the first login make an player variablePlayer(index).FirstLogin = 0```If Player(Index).Firstlog = 0 thenpicWelcome.visible = trueEnd If```That will make the pic visible if youre logging in -> If you click OK or something on it```picWelcome.visible = falsePlayer(index).FirstLogin = 1``` Link to comment Share on other sites More sharing options...
boyesjs03 Posted February 5, 2013 Share Posted February 5, 2013 ZOrder only changes the order of the frames in game: not in vb6…So just to put it straight,Im trying to edit the guild admin interface for the options part but when I load the frmGuildAdmin it just shows the users part, so how do I edit the options part? Link to comment Share on other sites More sharing options...
Lavos Posted February 6, 2013 Share Posted February 6, 2013 > ZOrder only changes the order of the frames in game: not in vb6…> > So just to put it straight,> > Im trying to edit the guild admin interface for the options part but when I load the frmGuildAdmin it just shows the users part, so how do I edit the options part?*facepalm, u should read more often for the sake of not throwing ppl off. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now