CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Tech Boards
Computer Programming
Source Code & Tutorial
Vs Basic Border
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="iGArabZz" data-source="post: 18054" data-attributes="member: 40713"><p>Many people use the metro framework to make there tools look nice, as I do love the design, most tools look the same and lack originality, so here is a little way to spice things up! Get creative and make your master piece stand out with borders!</p><p></p><p><img src="Http://i67.tinypic.com/t7my47.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p></p><p>[CODE]using System;</p><p>using System.Collections.Generic;</p><p>using System.ComponentModel;</p><p>using System.Data;</p><p>using System.Drawing;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Threading.Tasks;</p><p>using System.Windows.Forms;</p><p></p><p>namespace WindowsFormsApplication6</p><p>{</p><p> public partial class Form1 : Form</p><p> {</p><p> int border;</p><p> int MoveX;</p><p> int MoveY;</p><p> public Form1()</p><p> {</p><p> InitializeComponent();</p><p> </p><p> }</p><p></p><p> private void pictureBox1_MouseDown(object sender, MouseEventArgs e)</p><p> {</p><p> border = 1;</p><p> MoveX = e.Y;</p><p> MoveY = e.Y;</p><p></p><p> }</p><p></p><p> private void pictureBox1_MouseUp(object sender, MouseEventArgs e)</p><p> {</p><p> border = 0;</p><p> }</p><p></p><p> private void pictureBox1_MouseMove(object sender, MouseEventArgs e)</p><p> {</p><p> if (border == 1)</p><p> {</p><p> this.SetDesktopLocation(MousePosition.X - MoveX, MousePosition.Y - MoveY);</p><p> }</p><p> }</p><p> }</p><p>}[/CODE]</p><p></p><p>Very basic, but can be made useful!</p></blockquote><p></p>
[QUOTE="iGArabZz, post: 18054, member: 40713"] Many people use the metro framework to make there tools look nice, as I do love the design, most tools look the same and lack originality, so here is a little way to spice things up! Get creative and make your master piece stand out with borders! [IMG]Http://i67.tinypic.com/t7my47.jpg[/IMG] [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication6 { public partial class Form1 : Form { int border; int MoveX; int MoveY; public Form1() { InitializeComponent(); } private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { border = 1; MoveX = e.Y; MoveY = e.Y; } private void pictureBox1_MouseUp(object sender, MouseEventArgs e) { border = 0; } private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { if (border == 1) { this.SetDesktopLocation(MousePosition.X - MoveX, MousePosition.Y - MoveY); } } } }[/CODE] Very basic, but can be made useful! [/QUOTE]
Verification
Post reply
Forums
Tech Boards
Computer Programming
Source Code & Tutorial
Vs Basic Border
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top