Hack Forums
[.NET] Easy Challenge - Move And Resize Borderless Form - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Easy Challenge - Move And Resize Borderless Form (/showthread.php?tid=4389523)

Pages: Pages 1 2 3


Easy Challenge - Move And Resize Borderless Form - Only3 - Aug 11, 2014

i saw many threads asking for it

[Image: 8c24d759b6587b6dd3d6c3b1fb07ca97.gif]

let see how simple u can do it

start point
[Image: 7Pgap0L.png]

^^ that simple

🙂


* - RKYDA - Aug 11, 2014

An example : http://pastebin.com/hvVuqKmN


* - Only3 - Aug 11, 2014

RKYDA u can do it much simple
tip - google the challenge


* - LordCoder - Aug 11, 2014

Are you joking or laughing at our faces?


* - Only3 - Aug 11, 2014

(Aug 11, 2014 07:10 AM)LordCoder Wrote:  Are you joking or laughing at our faces?

😁 i add for u start point let see u laughing 🤣


* - LordCoder - Aug 11, 2014

A way to resize a borderless form without code:
1. Remove Me.Text (Put "").
2. Change Me.ControlBox = False
3. Change Me.FormBorderStyle = Sizable

Done. Move code is easy to search on Google:
Code
Private dragging As Boolean = False
Private dragCursorPoint As Point
Private dragFormPoint As Point

Private Sub FormMain_MouseDown(sender As Object, e As MouseEventArgs)
    dragging = True
    dragCursorPoint = Cursor.Position
    dragFormPoint = Me.Location
End Sub

Private Sub FormMain_MouseMove(sender As Object, e As MouseEventArgs)
    If dragging Then
        Dim dif As Point = Point.Subtract(Cursor.Position, New Size(dragCursorPoint))
        Me.Location = Point.Add(dragFormPoint, New Size(dif))
    End If
End Sub

Private Sub FormMain_MouseUp(sender As Object, e As MouseEventArgs)
    dragging = False
End Sub



* - Only3 - Aug 11, 2014

let me reply with ur own reply

(Aug 11, 2014 07:10 AM)LordCoder Wrote:  Are you joking or laughing at our faces?

ppl have hard time to understand simple things > YOU
also ur move code is longer then my move and resize code


* - LordCoder - Aug 11, 2014

(Aug 11, 2014 07:43 AM)Only3 Wrote:  let me reply with ur own reply
ppl have hard time to understand simple things > YOU
also ur move code is longer then my move and resize code

Nobody cares if it's longer or not, I think you don't understand. This thread is pointless and useless. Oh and btw:
Code
blahblahshit = False
also needs to be declared so your code is longer.


* - BubbleDoo - Aug 11, 2014

(Aug 11, 2014 10:00 AM)LordCoder Wrote:  Nobody cares if it's longer or not, I think you don't understand. This thread is pointless and useless. Oh and btw:
Code
blahblahshit = False
also needs to be declared so your code is longer.

How is it useless, ofcourse he could've just posted his way, but I'm kinda sure that people would've said 'Everyone knows this..' and things like that, while when he asks for it, nobody knows it. Anyway, you don't have to define something in order to set it as false?


* - Corios - Aug 11, 2014

I really really wish we had a moderator here that would just mute Only3. He's so useless to this section -.-


* - SIM-1456245 - Aug 11, 2014

Come on man, stop it, will ya ? Don't you understand that this is NOT a challenge, you can find this on any beginner YouTube tutorial, any. If you are going to be doing challenges, do something a bit harder.


* - LordCoder - Aug 12, 2014

(Aug 11, 2014 06:37 PM)BubbleDoo Wrote:  How is it useless, ofcourse he could've just posted his way, but I'm kinda sure that people would've said 'Everyone knows this..' and things like that, while when he asks for it, nobody knows it.
3 answers were provided, we cannot guess what's his code.

(Aug 11, 2014 06:37 PM)BubbleDoo Wrote:  Anyway, you don't have to define something in order to set it as false?

Then what are you setting as False? The air? Think a bit before posting.


* - Only3 - Aug 12, 2014

(Aug 11, 2014 07:16 PM)Electroalek Wrote:  Come on man, stop it, will ya ? Don't you understand that this is NOT a challenge, you can find this on any beginner YouTube tutorial, any. If you are going to be doing challenges, do something a bit harder.

😁 haha u didnt post any code and the title EASY CHALLENGE 🤣


* - Cornflower Blue இڿڰۣ-ڰۣ— - Aug 12, 2014

(Aug 12, 2014 03:51 AM)Only3 Wrote:  😁 haha u didnt post any code and the title EASY CHALLENGE 🤣

Why don't you do a hard challenge? Afraid you can do it your self?


* - Only3 - Aug 12, 2014

(Aug 12, 2014 04:00 AM)Cornflower Blue Wrote:  Why don't you do a hard challenge? Afraid you can do it your self?

well no1 handle meidum and u want hard even simple u cant handle 😏