How to Drag and Resize border-less Winform Application C#

  Рет қаралды 68,511

Code with HuSyN

Code with HuSyN

Күн бұрын

Пікірлер: 109
@balasenk
@balasenk 6 жыл бұрын
Hello team, am the fan of you guys, every video's is interesting and design is awesome,. Thanks.
@leobarbosa173
@leobarbosa173 6 жыл бұрын
I'm from Brazil, Rio de Janeiro, I really enjoy these tutorials :):):)
@semosemo3827
@semosemo3827 4 жыл бұрын
private const int cGrip = 16; private const int cCaption = 32; protected override void WndProc(ref Message m) { if (m.Msg == 0x84) { Point pos = new Point(m.LParam.ToInt32()); pos = this.PointToClient(pos); if (pos.Y < cCaption) { m.Result = (IntPtr)2; return; } if (pos.X >= this.ClientSize.Width - cGrip && pos.Y >= this.ClientSize.Height - cGrip) { m.Result = (IntPtr)17; return; } } base.WndProc(ref m); }
@НиколайТорощин-е6э
@НиколайТорощин-е6э 6 жыл бұрын
Спасибо большое, за ваши видео уроки!))
@CUiAcademy
@CUiAcademy 6 жыл бұрын
Спасибо, что посмотрели мои видео. :) :)
@roul3688
@roul3688 5 жыл бұрын
You are the man/woman! Thanks for this!
@CUiAcademy
@CUiAcademy 5 жыл бұрын
Man... :) :)
@leftofzen
@leftofzen 5 жыл бұрын
Yeah...try and resize the form via the top of the window using this technique. Goodluck ;) (It's possible but requires some more trickery than presented in this video)
@ralphipeyrna6989
@ralphipeyrna6989 6 жыл бұрын
i need it but with ismdicontainer active in the form, is this possible?
@softmetric6140
@softmetric6140 4 жыл бұрын
Designing is ok, but we want the back-end. Because we want to develop more beautiful + functional applications.
@neilluck1759
@neilluck1759 2 жыл бұрын
I hover my mouse over the form edges, but when I click, the edge doesn't grab and resize. Is there a fix for this?
@darius8171
@darius8171 6 жыл бұрын
Hey, thank you for tutorial. But could you tell how to resize windows until some specific size? For example: resize it till width=500 and height=700 (Try to resize Skype. It allows you to resize until specific size)
@CUiAcademy
@CUiAcademy 6 жыл бұрын
Hi @Darius... Thanks for watching my Videos.... Select your form and go to properties and here you'll find "Max Size" and "Min Size" property.... just put the minimum or maximum size according to your Requirement...... :) :)
@darius8171
@darius8171 6 жыл бұрын
Thank you!
@LucifiedPower
@LucifiedPower 2 жыл бұрын
@@darius8171 can you give me the code
@squad-failure
@squad-failure 4 жыл бұрын
I cannot implement this into my program, i don't know why isn't working, not throwing any errors but doesn't let it's self resize, and i did everything right from the tutorial... I removed my old code and tried with a brand new one, still not working...
@zayantorres4523
@zayantorres4523 5 жыл бұрын
Hi, idk if you will answer but how can I like, not resize it, but make drag Form1 around with the FormBorderStyle in **None**? with the mouse
@CUiAcademy
@CUiAcademy 5 жыл бұрын
Hi Z-Man... Pleaee watch my this video to learn how to create your own drag control in C# kzbin.info/www/bejne/iYm9f2xrpbqSqZI
@technologyknowledge5004
@technologyknowledge5004 2 жыл бұрын
Hello sir please make a video on "how to drag and resize borderless winform in powershell studio"
@technologyknowledge5004
@technologyknowledge5004 2 жыл бұрын
Please Sir
@mariokiric
@mariokiric 6 жыл бұрын
Very helpful tutorial! But my problem is, how I resize border-less Winforms in VB (Visual Basic) and not in C#, because there is no tutorial, how to do it :( Greetings from Germany!
@brazo98
@brazo98 6 жыл бұрын
Const WM_NCHITTEST As Integer = &H84 Const HTCLIENT As Integer = &H1 Const HTCAPTION As Integer = &H2 Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) Select Case m.Msg Case WM_NCHITTEST MyBase.WndProc(m) If m.Result = HTCLIENT Then m.Result = HTCAPTION Case Else MyBase.WndProc(m) End Select End Sub LG aus BRD
@brazo98
@brazo98 6 жыл бұрын
Und er hat die DLL mit eingefügt heisst Bunidragcontrol. Da fallen dann Lizenzgebühren an wenn das nutzen willst.
@mariokiric
@mariokiric 6 жыл бұрын
Brazo Ok, Vielen Vielen Dank! :D Wie sollte es dann aussehen ohne der DLL? Bin kompletter Anfänger ;)
@brazo98
@brazo98 6 жыл бұрын
Hier wirst du fündig das funktioniert tadellos: www.vbforums.com/showthread.php?568015-Move-and-Resize-a-Control-or-a-Borderless-Form-using-window-messages-(smooth!)
@mariokiric
@mariokiric 6 жыл бұрын
Brazo Danke ;)
@Hamiscool
@Hamiscool 3 жыл бұрын
When I resize my form, none of the content inside it changes size; just position. Any ideas? Nevermind, I just figured out that if you change the anchor of all of the content to "Top, Bottom, Left, Right" it works.
@essouaiedameur7642
@essouaiedameur7642 3 жыл бұрын
how can I add the bunifu package to my VS2019
@jhwils
@jhwils 5 жыл бұрын
The Link for source code is dead😰
@CUiAcademy
@CUiAcademy 5 жыл бұрын
Please download it from my github profile.... Link is given in the description of my other videos...
@matejpesl1
@matejpesl1 3 жыл бұрын
@@CUiAcademy You don't have the project on your github profile.
@AaricAaiden
@AaricAaiden 6 жыл бұрын
If you make the video on how to create a responsive application. it would be great. I want to create a responsive application in c# just like other softwares are responsive but i couldn't. i have watched many tutorials on KZbin but nothing worked exactly same as i want.
@zeeshanmushtaq7039
@zeeshanmushtaq7039 2 жыл бұрын
if (pos.X >= this.ClientSize.Width = cGrap && pos.Y >= this.ClientSize.Height = cGrip) in this if condition .... error ata ha error : The left-hand side of an assignment must be a variable, property or indexer please help
@CUiAcademy
@CUiAcademy 2 жыл бұрын
ClientSize.Width - cGrip and Height - cGrip. Its minus there after width and height, not equal sign. I hope it will fix your problem.. 🙂
@xheptc9612
@xheptc9612 5 жыл бұрын
We create, We Design, We develop.
@xheptc9612
@xheptc9612 5 жыл бұрын
@- Vrex - lol
@seikosantana2313
@seikosantana2313 Жыл бұрын
Nice! Can it maximize when being pulled to top of desktop?
@smsoorganization292
@smsoorganization292 6 жыл бұрын
hey i like your tutorials thank you and Jazakalahu khayr
@warmice8265
@warmice8265 4 жыл бұрын
Can I resize the form without using Bunifu ? Thanks. P.S. : Great video !!!
@ayushpramanik808
@ayushpramanik808 3 жыл бұрын
How do we make the window bigger?, we can only make the window smaller
@ユンユン-b8y
@ユンユン-b8y 3 жыл бұрын
I comment here to let you know that one more Vietnamese person knows you :v.
@ezequiasrocha3037
@ezequiasrocha3037 5 жыл бұрын
The download isn't available anymore.
@TesearBlogspot
@TesearBlogspot 4 жыл бұрын
Why isn't working if the panel is dock=fill
@aylakhan4699
@aylakhan4699 6 жыл бұрын
i like your all tutorials very much .i also share this video's with my friends this is really very very best tutorial and also good work brother ..
@brazo98
@brazo98 6 жыл бұрын
perfect thx a lot kindly regards
@heko9122
@heko9122 4 жыл бұрын
how to resize when a panel or control with Dock = Fill on the form?
@SeekersforSeekers
@SeekersforSeekers 5 жыл бұрын
i watched ur first video..this one and subscribe ur channel..
@CUiAcademy
@CUiAcademy 5 жыл бұрын
Stay Tuned for More Videos.. :) :)
@SeekersforSeekers
@SeekersforSeekers 5 жыл бұрын
@@CUiAcademy definitely i will be
@wakcy
@wakcy 4 жыл бұрын
private const int cGrip = 16; private const int cCaption = 32; protected override void WndProc(ref Message m) { if (m.Msg == 0x84) { Point pos = new Point(m.LParam.ToInt32()); pos = this.PointToClient(pos); if (pos.Y < cCaption) { m.Result = (IntPtr)2; return; } if (pos.X >= this.ClientSize.Width - cGrip && pos.Y >= this.ClientSize.Height - cGrip) { m.Result = (IntPtr)17; return; } }
@lephonghaiful
@lephonghaiful 5 жыл бұрын
link dowload is dead, please refresh it.
@mohammadahsan5655
@mohammadahsan5655 3 жыл бұрын
Form is not resizing, whats the problem ?
@CUiAcademy
@CUiAcademy 3 жыл бұрын
Please make sure you've added the line of code in the constructor of form i-e this.SetStyle(....
@mohammadahsan5655
@mohammadahsan5655 3 жыл бұрын
@@CUiAcademy Yes I have added. I am trying this from at least 2 days, mid and night. But its not working. I have watched many videos and copy paste the google code but no relief. Please can you share this form code in complete working condition. ????
@CUiAcademy
@CUiAcademy 3 жыл бұрын
@@mohammadahsan5655 please share you piece of code to salaarhusyn@gmail.com I will review it
@mohammadahsan5655
@mohammadahsan5655 3 жыл бұрын
@@CUiAcademy I am sharing the complete form
@mohammadahsan5655
@mohammadahsan5655 3 жыл бұрын
@@CUiAcademy I have send you the form by mohammadahsanissb.pk.2020@gmail.com Please resolve the issue.
@ZEkA10000
@ZEkA10000 3 ай бұрын
Okay, to use that thing you need to buy that...
@nesyta1749
@nesyta1749 6 жыл бұрын
How can you do that so that you can move these windows to MDIParent?
@ethanhill2016
@ethanhill2016 5 жыл бұрын
I am able to resize it but my content is not affected, how do i make it so the content is pushed?
@CUiAcademy
@CUiAcademy 5 жыл бұрын
Select your controls, go to properties and set Anchor property to None.. I hope it will work for you... :)
@ethanhill2016
@ethanhill2016 5 жыл бұрын
C# Ui Academy ok I have done that but now my label over laps my head panel after I resize it too small
@CUiAcademy
@CUiAcademy 5 жыл бұрын
@@ethanhill2016 Select your form, go to properties and set a Minimum Size for your Form.
@abdalahali6746
@abdalahali6746 5 жыл бұрын
link to download source code dosent work plz any one have downloaded it send here thank you
@vac416
@vac416 5 жыл бұрын
Почему когда я ввожу в toolbox "drag", то у меня нет результатов?
@manjeetnandal1
@manjeetnandal1 5 жыл бұрын
But lack of source codes! Anyway, great sharing! Great thanks!
@TERIHAX
@TERIHAX 4 жыл бұрын
it's not working for me.
@TheAceAdventures3
@TheAceAdventures3 5 жыл бұрын
Perfect ! Thanks Dude ! From 2019
@pedrohenriwue6327
@pedrohenriwue6327 6 жыл бұрын
must have Buniffu?
@CUiAcademy
@CUiAcademy 6 жыл бұрын
No, if you don't have the Bunifu file just remove the header panel from Ui and add this event method after Constructor, protected override void OnPaint(PaintEventArgs e) { Rectangle rc = new Rectangle(this.ClientSize.Width - cGrip, this.ClientSize.Height - cGrip, cGrip, cGrip); ControlPaint.DrawSizeGrip(e.Graphics, this.BackColor, rc); rc = new Rectangle(0, 0, this.ClientSize.Width, cCaption); e.Graphics.FillRectangle(Brushes.DarkBlue, rc); }
@pedrohenriwue6327
@pedrohenriwue6327 6 жыл бұрын
Thanks
@marcelo2108
@marcelo2108 6 жыл бұрын
Why are u using vs2015?
@CUiAcademy
@CUiAcademy 6 жыл бұрын
Hi Marcelo L.Ponce F.... There is no specific reason for using VS2015.... I am using this because the community edition was available for free download and it is pretty light weight as compared to VS2017, it works fine.... ;)
@marcelo2108
@marcelo2108 6 жыл бұрын
ohh! fine data about weight, thanks!
@carlmarionmanlapaz4697
@carlmarionmanlapaz4697 5 жыл бұрын
very informative. subscribed.
@Thepostroun
@Thepostroun 4 жыл бұрын
nice
@mnlfrk
@mnlfrk 6 жыл бұрын
Fantastic
@hiddenhidden6340
@hiddenhidden6340 4 жыл бұрын
Hi sir please consider to prepare your designs first and then make a tutorial, Your half video is an advertisement.
@MuhammadAslam-vb3se
@MuhammadAslam-vb3se 6 жыл бұрын
Sir how can i make winform drag able with box. without bunifu
@CUiAcademy
@CUiAcademy 6 жыл бұрын
Please watch my this video to learn how to create a drag Control in C#... kzbin.info/www/bejne/iYm9f2xrpbqSqZI
@keaan5284
@keaan5284 4 жыл бұрын
Hello my teacher it is tool free?
@alphacentauri6343
@alphacentauri6343 6 жыл бұрын
like before i watch
@korichiTarzi
@korichiTarzi 6 жыл бұрын
good
@z0rd.154
@z0rd.154 5 жыл бұрын
Можете дать ссылку на вашу программу на гитхабе? не как не могу найти :(
@VlcAlexx
@VlcAlexx 4 жыл бұрын
Not working
@AbsolutelyFake
@AbsolutelyFake 5 жыл бұрын
Did not work
@FanmadesMv
@FanmadesMv 5 жыл бұрын
Magic number shit form stack overflow... not really what i was searching for but thanks anyway
@imamhossain1818
@imamhossain1818 5 жыл бұрын
Thank you sir
@mohammadahsan5655
@mohammadahsan5655 3 жыл бұрын
Bhai yr bta do, mai b Pakistan sy hnn
@Sixthflyer
@Sixthflyer 6 жыл бұрын
Well done!
@kyrollosemad5319
@kyrollosemad5319 5 жыл бұрын
can you mae a tutorial in vb.net please
@mrsterbenblack9270
@mrsterbenblack9270 6 жыл бұрын
great work!
@manjeetnandal1
@manjeetnandal1 5 жыл бұрын
Many useful! Many thanks!
@yokozuna021
@yokozuna021 5 жыл бұрын
Thank you so much!
@Thepostroun
@Thepostroun 4 жыл бұрын
thanks this video is so greaat!
@enessolmaz9548
@enessolmaz9548 3 жыл бұрын
Thanks bro 😊❤️
@zeeshanmushtaq7039
@zeeshanmushtaq7039 2 жыл бұрын
😪please helpme
@agusd3327
@agusd3327 4 жыл бұрын
thank you very much
@kyleb3316
@kyleb3316 3 жыл бұрын
my eyesssssss >.
@puro3186
@puro3186 5 жыл бұрын
3:40
@erithia--51
@erithia--51 4 жыл бұрын
tysm
@VaVathana-co3nh
@VaVathana-co3nh 6 жыл бұрын
fantastic
Designing a Drawer / Sliding panel in Winform App C# (Skype Demo)
27:34
C# How to Auto Size Windows Forms & Controls
16:21
EETechStuff
Рет қаралды 13 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 105 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
IPC: To Share Memory Or To Send Messages
14:15
Core Dumped
Рет қаралды 48 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,7 МЛН
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
Custom Button - Rounded, Pill or Square Shape - WinForm C#
14:21
RJ Code Advance EN
Рет қаралды 162 М.
Custom TextBox - Border, Focus Color, Underlined Style - WinForm C#
19:09
RJ Code Advance EN
Рет қаралды 85 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 105 МЛН