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

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

Code with HuSyN

Code with HuSyN

Күн бұрын

Пікірлер: 109
@balasenk
@balasenk 7 жыл бұрын
Hello team, am the fan of you guys, every video's is interesting and design is awesome,. Thanks.
@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); }
@leobarbosa173
@leobarbosa173 7 жыл бұрын
I'm from Brazil, Rio de Janeiro, I really enjoy these tutorials :):):)
@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.
@ralphipeyrna6989
@ralphipeyrna6989 6 жыл бұрын
i need it but with ismdicontainer active in the form, is this possible?
@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 3 жыл бұрын
@@darius8171 can you give me the code
@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?
@roul3688
@roul3688 5 жыл бұрын
You are the man/woman! Thanks for this!
@CUiAcademy
@CUiAcademy 5 жыл бұрын
Man... :) :)
@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...
@НиколайТорощин-е6э
@НиколайТорощин-е6э 6 жыл бұрын
Спасибо большое, за ваши видео уроки!))
@CUiAcademy
@CUiAcademy 6 жыл бұрын
Спасибо, что посмотрели мои видео. :) :)
@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)
@essouaiedameur7642
@essouaiedameur7642 4 жыл бұрын
how can I add the bunifu package to my VS2019
@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
@TesearBlogspot
@TesearBlogspot 4 жыл бұрын
Why isn't working if the panel is dock=fill
@seikosantana2313
@seikosantana2313 Жыл бұрын
Nice! Can it maximize when being pulled to top of desktop?
@vac416
@vac416 5 жыл бұрын
Почему когда я ввожу в toolbox "drag", то у меня нет результатов?
@heko9122
@heko9122 4 жыл бұрын
how to resize when a panel or control with Dock = Fill on the form?
@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.
@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 4 жыл бұрын
@@CUiAcademy You don't have the project on your github profile.
@ayushpramanik808
@ayushpramanik808 3 жыл бұрын
How do we make the window bigger?, we can only make the window smaller
@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
@ezequiasrocha3037
@ezequiasrocha3037 5 жыл бұрын
The download isn't available anymore.
@xheptc9612
@xheptc9612 5 жыл бұрын
We create, We Design, We develop.
@xheptc9612
@xheptc9612 5 жыл бұрын
@- Vrex - lol
@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.. 🙂
@nesyta1749
@nesyta1749 6 жыл бұрын
How can you do that so that you can move these windows to MDIParent?
@lephonghaiful
@lephonghaiful 5 жыл бұрын
link dowload is dead, please refresh it.
@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; } }
@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.
@TERIHAX
@TERIHAX 4 жыл бұрын
it's not working for me.
@marcelo2108
@marcelo2108 7 жыл бұрын
Why are u using vs2015?
@CUiAcademy
@CUiAcademy 7 жыл бұрын
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 7 жыл бұрын
ohh! fine data about weight, thanks!
@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 ;)
@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.
@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
@abdalahali6746
@abdalahali6746 5 жыл бұрын
link to download source code dosent work plz any one have downloaded it send here thank you
@softmetric6140
@softmetric6140 4 жыл бұрын
Designing is ok, but we want the back-end. Because we want to develop more beautiful + functional applications.
@smsoorganization292
@smsoorganization292 6 жыл бұрын
hey i like your tutorials thank you and Jazakalahu khayr
@pedrohenriwue6327
@pedrohenriwue6327 7 жыл бұрын
must have Buniffu?
@CUiAcademy
@CUiAcademy 7 жыл бұрын
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 7 жыл бұрын
Thanks
@aylakhan4699
@aylakhan4699 7 жыл бұрын
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
@warmice8265
@warmice8265 4 жыл бұрын
Can I resize the form without using Bunifu ? Thanks. P.S. : Great video !!!
@z0rd.154
@z0rd.154 5 жыл бұрын
Можете дать ссылку на вашу программу на гитхабе? не как не могу найти :(
@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
@ユンユン-b8y
@ユンユン-b8y 3 жыл бұрын
I comment here to let you know that one more Vietnamese person knows you :v.
@AbsolutelyFake
@AbsolutelyFake 5 жыл бұрын
Did not work
@keaan5284
@keaan5284 4 жыл бұрын
Hello my teacher it is tool free?
@ZEkA10000
@ZEkA10000 4 ай бұрын
Okay, to use that thing you need to buy that...
@VlcAlexx
@VlcAlexx 4 жыл бұрын
Not working
@manjeetnandal1
@manjeetnandal1 5 жыл бұрын
But lack of source codes! Anyway, great sharing! Great thanks!
@carlmarionmanlapaz4697
@carlmarionmanlapaz4697 5 жыл бұрын
very informative. subscribed.
@TheAceAdventures3
@TheAceAdventures3 5 жыл бұрын
Perfect ! Thanks Dude ! From 2019
@imamhossain1818
@imamhossain1818 5 жыл бұрын
Thank you sir
@enessolmaz9548
@enessolmaz9548 4 жыл бұрын
Thanks bro 😊❤️
@hiddenhidden6340
@hiddenhidden6340 4 жыл бұрын
Hi sir please consider to prepare your designs first and then make a tutorial, Your half video is an advertisement.
@kyrollosemad5319
@kyrollosemad5319 5 жыл бұрын
can you mae a tutorial in vb.net please
@Thepostroun
@Thepostroun 4 жыл бұрын
nice
@mnlfrk
@mnlfrk 7 жыл бұрын
Fantastic
@FanmadesMv
@FanmadesMv 5 жыл бұрын
Magic number shit form stack overflow... not really what i was searching for but thanks anyway
@yokozuna021
@yokozuna021 5 жыл бұрын
Thank you so much!
@agusd3327
@agusd3327 4 жыл бұрын
thank you very much
@korichiTarzi
@korichiTarzi 7 жыл бұрын
good
@Thepostroun
@Thepostroun 4 жыл бұрын
thanks this video is so greaat!
@mohammadahsan5655
@mohammadahsan5655 3 жыл бұрын
Bhai yr bta do, mai b Pakistan sy hnn
@puro3186
@puro3186 5 жыл бұрын
3:40
@manjeetnandal1
@manjeetnandal1 5 жыл бұрын
Many useful! Many thanks!
@zeeshanmushtaq7039
@zeeshanmushtaq7039 2 жыл бұрын
😪please helpme
@mrsterbenblack9270
@mrsterbenblack9270 7 жыл бұрын
great work!
@alphacentauri6343
@alphacentauri6343 7 жыл бұрын
like before i watch
@Sixthflyer
@Sixthflyer 7 жыл бұрын
Well done!
@erithia--51
@erithia--51 4 жыл бұрын
tysm
@kyleb3316
@kyleb3316 3 жыл бұрын
my eyesssssss >.
@VaVathana-co3nh
@VaVathana-co3nh 7 жыл бұрын
fantastic
C# - Custom Notification Form in WinForm App C#
22:19
Code with HuSyN
Рет қаралды 114 М.
C# CustomList Using UserControl And FlowLayoutPanel
21:37
Chieng
Рет қаралды 122 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
How to obfuscate your .NET app and why it's pointless
10:27
Nick Chapsas
Рет қаралды 75 М.
Intro to Windows Forms (WinForms) in .NET 6
1:35:50
IAmTimCorey
Рет қаралды 241 М.
Custom TextBox - Border, Focus Color, Underlined Style - WinForm C#
19:09
RJ Code Advance EN
Рет қаралды 86 М.
Designing a Drawer / Sliding panel in Winform App C# (Skype Demo)
27:34
Creating a DragControl in WinForm App C# (Custom Tools Development)
10:01
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 912 М.
Design Circular Buttons in WinForm App C#
10:13
Code with HuSyN
Рет қаралды 131 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН