|
-
Oct 23rd, 2002, 12:50 AM
#1
Thread Starter
Hyperactive Member
Form Location
can some one help me i nee to get the Forms Location on Screen
the X and Y posisions so it can
Example :
if the Form is at the Top Left Of the Screen at 0,0
X = 0 Y =0
Please Help
-
Oct 23rd, 2002, 12:56 AM
#2
Addicted Member
Hi
maybe you could try this
Me.Left()
Me.Top()
-
Oct 23rd, 2002, 01:04 AM
#3
Thread Starter
Hyperactive Member
ya ill try that if anyone know of a better way to Dock Forms so they Dock Togather im Open and NO the "Magic Control" is not the Kinda docking im looking for
-
Oct 23rd, 2002, 01:44 AM
#4
Frenzied Member
What 308holes here is asking for really is STICKY FORMS!
-
Oct 23rd, 2002, 12:13 PM
#5
Thread Starter
Hyperactive Member
-
Oct 23rd, 2002, 12:29 PM
#6
So did the Me.Left/Top not work? If it returns 0 or something like that then it is probably returning the relateive to the client. You can translate it to a point on the screen with the Me.PointToScreen:
VB Code:
Dim p As Point = Me.PointToScreen(New Point(Me.Left, Me.Top))
-
Oct 23rd, 2002, 03:08 PM
#7
Thread Starter
Hyperactive Member
-
Oct 23rd, 2002, 03:18 PM
#8
Thread Starter
Hyperactive Member
OK that didnt work i just need something to make my forms stucky!
-
Oct 23rd, 2002, 03:35 PM
#9
Well what do you have so far? What didn't work about it? Does it give you an error?
It seems like once they are sinked up the first time then you can move them through the LocationChanged event.
-
Oct 23rd, 2002, 03:51 PM
#10
Thread Starter
Hyperactive Member
ya i have to get them linked fist tryed the me checked to see if their Lefts and Bottoms where = or = to +10 to link them but it wont do it
-
Oct 23rd, 2002, 05:20 PM
#11
Thread Starter
Hyperactive Member
OK i Found but i dont know Delphi can some on convert it ?
http://delphi.about.com/library/weekly/aa070301a.htm
-
Oct 23rd, 2002, 10:44 PM
#12
Thread Starter
Hyperactive Member
*BUMP* COME ONE SOMEONE HAS TO KNOW !!
-
Oct 23rd, 2002, 11:45 PM
#13
Hey that code docks the form to the sides of the screen not to the sides of other forms. Is that what you want?
If not and you want it to stick to other forms, then which forms? Other ones in your project? Just random any form?
I tried converting that code but I must have missed something because it didn't work.
-
Oct 24th, 2002, 12:01 AM
#14
Thread Starter
Hyperactive Member
i want it to stick forms from the same program togather
-
Oct 24th, 2002, 12:53 AM
#15
Try this. If its not what you want hopefully it'll be a start at least. I didn't really comment much. Push the button on the form to create more forms and they will snap to any of each other. The buffer const is the distance they must be in to snap together.
-
Oct 24th, 2002, 02:12 AM
#16
Thread Starter
Hyperactive Member
ya that works is their a way to override the mouse so it lts gooo because the form flickers like a MOFO
-
Oct 24th, 2002, 02:50 AM
#17
I don't know I didn't get any flicker and I don't know what 'gooo' is.
-
Oct 24th, 2002, 03:13 PM
#18
Thread Starter
Hyperactive Member
lol was kinda late
the Form jumps back and forth on my screen because the mouse is still in control of the forms movement and when the forms try to dock they jump back and forth from the dock to the mouse
-
Oct 24th, 2002, 04:31 PM
#19
Can't help you withthe flicker I'm not really getting flick, except maybe one quick one when it first snaps into place. It happens too fast to do anything about. Although there is a but if the forms are different sizes here is a fixed version for that.
-
Oct 25th, 2002, 06:50 AM
#20
Frenzied Member
Maybe i'll write an OCX for this.
-
Oct 25th, 2002, 10:22 AM
#21
Did you really mean OCX, even though .NET doesn't make OCX as its controls?
-
Oct 25th, 2002, 09:39 PM
#22
Frenzied Member
Originally posted by Edneeis
Did you really mean OCX, even though .NET doesn't make OCX as its controls?
Can't i use an OCX (written in VB6) in .NET though?
-
Oct 25th, 2002, 10:35 PM
#23
I believe most of them work but they may not be stable.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|