CefSharp WinForm - Borderless drag on DIV

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CefSharp WinForm - Borderless drag on DIV

Postby langbergio » Tue Sep 06, 2016 1:56 pm

Hello guys, im fairly new to programming c#. Im experienced in html. My project is a c# WinForm. Here's my question.
Can you make a Borderless Form, and create dragging (And by dragging, i mean, moveing the form window around, like a normal titlebar) on a <div> tag? All in all, create your OWM titlebar. Ive seen people do it, but i do not understand the code. Cloud someone help me figure this out, then i'll be very happy!
Thanks......
langbergio
Newbie
 
Posts: 1
Joined: Tue Sep 06, 2016 1:53 pm

Re: CefSharp WinForm - Borderless drag on DIV

Postby amaitland » Tue Sep 06, 2016 10:11 pm

This forum is for `CEF` specific questions, see https://github.com/cefsharp/CefSharp#contact Please read this and choose the appropriate place to ask followup questions.

What your asking is possible, there is a `WPF` example in the project source, it's called a draggable region. Search the code for OnDraggableRegionsChanged. There is no `WinForms` example, by all means contribute one when you have something working. You can likely port the concept from `WPF`.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: CefSharp WinForm - Borderless drag on DIV

Postby PRAGMA » Sun Oct 29, 2017 8:46 pm

PRAGMA
Newbie
 
Posts: 1
Joined: Sun Oct 29, 2017 8:45 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 86 guests