shado360 Posted February 7, 2011 Author Share Posted February 7, 2011 Hi there! I have a question about the startup position of a form. I want my chatbox's form to load onto the bottom left hand corner of the picScreen. How do I do this.Thanks,PaïnP.S: I have tried frmChat.Left = frmMain.PicScreen.Left & frmChat.Top = frmMain.picHotbar.Top + 400 (Didn't work T_T) Link to comment Share on other sites More sharing options...
Robin Posted February 7, 2011 Share Posted February 7, 2011 Second calculation needs the position of the main form as well, otherwise it'll simply set it to the height of the picHotbar but on the main screen.```frmChat.top = frmMain.top + frmMain.picHotbar.top + 400``` Link to comment Share on other sites More sharing options...
shado360 Posted February 7, 2011 Author Share Posted February 7, 2011 That didn't work:``` frmChat.Left = frmMain.picScreen.Left frmChat.top = frmMain.top + frmMain.picHotbar.top```Thanks for your help,Païn Link to comment Share on other sites More sharing options...
Robin Posted February 7, 2011 Share Posted February 7, 2011 Did you just ignore what I said? >_>You need the form's position AND the component position. Link to comment Share on other sites More sharing options...
shado360 Posted February 7, 2011 Author Share Posted February 7, 2011 I did that! Look: frmChat.Left = frmMain.picScreen.Left frmChat.top = frmMain.top + frmMain.picHotbar.top ^ ^ form's position comp. position Link to comment Share on other sites More sharing options...
Robin Posted February 7, 2011 Share Posted February 7, 2011 And what are you doing for the .left? -_- Link to comment Share on other sites More sharing options...
shado360 Posted February 7, 2011 Author Share Posted February 7, 2011 Oh, ok, I'll try that. Srry.~Païn 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