5
Answers

Positioning forms

garuka

garuka

15y
4k
1
Hi All,
I want to do two things.
1. I have a MDI and when a specific form  load it should position in the middle of the MDI. For example login window should load in the middle of MDI.

2. I have a MDI and I can load some windows inside that. And I some of those windows load other windows too. I want to position them in the middle of window which is used to call them

Please post some sample code on how to do this.

Answers (5)
1
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 12y
The terms publish and deploy mean the same thing. So you might need to be more clear about what you mean. In other words, what do you mean by "setup file" and "publish my app"?

Also, what does "gets an error" mean? What error? My guess is that it is an access violation. If the file is put into the "Program Files" directory then that is the problem.

There are very many articles about how to do this.
0
Dillon Goeda

Dillon Goeda

NA 22 6.8k 12y
Thank you very much, I appreciate it
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 12y
So yes, the access denied is due to installing the text file in the "Program Files" directory. You just need to read articles about creating a setup file that installs the text file in the user's Documents folder or someplace appropriate. I am sorry that I do not know the details and it would be worthwhile reading relevant articles.
0
Dillon Goeda

Dillon Goeda

NA 22 6.8k 12y
By publish I mean, Double click on properties in my solution then go to publish. By creating a setup file I mean go to file»New»Project»Setup Wizard. And the error get is "access denied" when it is installed in program files