Hello, I saw an example(not designed with .Net)
which has a TextBox on the title bar of the window
(next to system buttons - min, max, close )
can I do that in .Net and any how to do that?
any help or code is appreciated.
Printable View
Hello, I saw an example(not designed with .Net)
which has a TextBox on the title bar of the window
(next to system buttons - min, max, close )
can I do that in .Net and any how to do that?
any help or code is appreciated.
There is no managed way to do that, so you'd do it essentially the same way it was done in your unmanaged example.
aha, do you think that GDI+ can make sense for me?
I mean to put that control in there.
Firstly, GDI+ will draw shapes but it's not going to help you create a TextBox. Secondly, the title bar is part of the non-client area of the form so GDI+ can't help you. To access the non-client area you need to use unmanaged code, which is why I said so in my last reply.
I'm not a real good programer, but couldn't you hide the "real" Title bar and make your own on the form. You would have to create all the functionality of the real one, but would be able to add your own stuff.
This is not easy. and as jmcilhinney correctly mentioned, there is no managed way to do this, that means we will need APIs
I did something similar, but I added a button to the window's title bar - the whole logic surrounding it will be the same.
There are plenty of examples on the internet on how to do this, If you say you couldn't find an example, you simply haven't looked hard enough. Check out this thread :
http://www.codeguru.com/forum/showth...itlebar+button