donlego Posted July 3, 2011 Posted July 3, 2011 hi .. it try to create runtime form with unitabsheet as parent of the runtime form this my code procedure TMainForm.do_CreateTab(acaption: string); var atab: TUniTabSheet; aform: TUniForm; begin atab := TUniTabSheet.Create(self); with atab do begin Caption := acaption; PageControl := UniPageControl1; PageControl.ActivePage := atab; end; aform := TUniForm.Create(UniApplication); with aform do begin Caption := acaption; Parent:=atab; show; end; end; it's work in desktop mode but in browser mode has an error access violation at address 00445AE4 in modeule project1.exe write of address bla bla.. is there something wrong with my code or ?? thanks ... Quote
Administrators Farshad Mohajeri Posted July 3, 2011 Administrators Posted July 3, 2011 hi, In web mode Forms can not be child controls. It is not supported. Use Frames or Panels instead. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.