C# Form application position wont go 40 pixels from right
Thats right if you are good coder and wanna help noobies what a better way than tell me this answer. I had trying to figure it out now for about 5 hours now and cant find anything usefull from internet or from my head. Thank you

< >
Näytetään 1-15 / 18 kommentista
Are you using a style sheet with padding
I feel like I said this already, but if you have a problem related to coding then it's best to ask on stack overflow.
If you post your code maybe I can help sir, but I can't promise anything.
BatushkaTabushka lähetti viestin:
I feel like I said this already, but if you have a problem related to coding then it's best to ask on stack overflow.
If you post your code maybe I can help sir, but I can't promise anything.

stackoverflow suck man go try it
What are you trying to do exactly?

You can set a position for your form with the Location property like this:
this.Location = new Point(100, 100);

And if you also set the StartPosition property to FormStartPosition.Manual, then your form will move to the coordinates you gave:
this.StartPosition = FormStartPosition.Manual;
lAmBIack lähetti viestin:
Thats right if you are good coder and wanna help noobies what a better way than tell me this answer. I had trying to figure it out now for about 5 hours now and cant find anything usefull from internet or from my head. Thank you

Is this a RTL reading-order margin or are you trying to ensure the width of the form?
"From the right" of what? Screen edge? Client coords or ?
Is this a raw C# application or is it within a specific IDE for a specific deployment target?

You need to be a little mroe specific about the issue you experience.
beign honest Im making gta v menu with my friend and we got kinda battle going on and im trying to make that **** mod go right side and it must be always in same position 40 y and x pixels from top right no matter what monitor you have.
THANK YOU
Visual Studio 2017, Windows 7 - 10 only
ou wow what a *** joke I found something by accidently double clicking a menu wow
no helps taken anymore and have a nice day you all piece of brown worn cake
Tämän ketjun aloittaja on ilmaissut julkaisun vastaavaan alkuperäiseen aiheeseen.
im so confused
lAmBIack lähetti viestin:
beign honest Im making gta v menu with my friend and we got kinda battle going on and im trying to make that **** mod go right side and it must be always in same position 40 y and x pixels from top right no matter what monitor you have.
THANK YOU

I have no experience with modding GTA or the requirements for its systems so there may be easier ways to achieve this or this may not be applicable in context.

Typcially, though, one would use DesktopLocation property and if there is a StartPosition property, this must be set to manual to allow change.

For example (in a method of "this" form)

this.StartPosition = FormStartPosition.Manual;

this.DesktopLocation = new Point(Screen.PrimaryScreen.Bounds.Width - (this.Width + 40), 40);
I made it like this

private void nyyppaMenu_Load(object sender, EventArgs e)
{

int x = Screen.PrimaryScreen.WorkingArea.Width;

this.Location = new System.Drawing.Point(x-340, 40);

}

and damn im going to find offsets which means things in memory that control like health and armor in GTA V... I found yesterday healt and if I locked it my health was locked into full example but obviosly if some1 takes all health from you you die and get hp back but anyways you die
thanks to my friend
< >
Näytetään 1-15 / 18 kommentista
Sivua kohden: 1530 50

Lähetetty: 4.1.2019 klo 8.20
Viestejä: 18