473,320 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

C# :changing the caption on a task bar for a form with no title bar

I designed a custom title bar for my application, using my own buttons for maximize, minimize and close. The border style of the form is sizeable.

I disabled the regular title bar by setting the ControlBox property to false and assigning an empty string to the text property. But I would still like to have a caption for my application in the taskbar.

The icon of the application will be displayed, but as soon as I change the text property (even at runtime) the task bar is displayed. I am developing with VS 2005.
Jan 17 '08 #1
3 3325
Plater
7,872 Expert 4TB
Set the border style to none? You lose the dragging anchors for re-sizing, but you can put whatever you want for the title to have the taskbar entry have text, without having a title bar.

Not sure you can have your cake and eat it to on this one. At least not while using .NET stuff (some win32 function calls from DLLImports might be able to do it though)
Jan 18 '08 #2
Thank you for your answer. I had set the border style to none in the beginning, but I did not want to lose the resize option.

I could add some controls (like small picture boxes) and handle mouse events to resize the control, but if anyone knows a more efficient or elegant way to solve this, I would be glad to know.
Jan 18 '08 #3
Norka
1
Hi,
I have similar problem. I added resize functionality, but when I set form text to " ",
the task bar still displays application icon, but no text. How can I set the application title in the task bar?
Jan 22 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: amber | last post by:
Hello, How can I change the title of my form, based on a value of a textbox on the form? And in what I assume is a similar question, how can I have the caption, or even column header in a...
3
by: supster | last post by:
I'de like to know how to change the title bar text of a window that my program does not own. I remember doing this a long time ago in C++ and the Windows API calls were ugly, I hope its gotten...
2
by: John Dann | last post by:
In VB.Net I have a Form1 main form that instantiates various class objects. I want to change eg the title text of Form1 from within one or more of these classes. The solution kindly suggested...
2
by: Trammel | last post by:
Hi. I have been trying to make a simple application that will sit in the background and alert me of any changes in window focus (IE: Pop-up windows) on my system. I have used...
32
by: deko | last post by:
I have a popup form with a textbox that is bound to a memo field. I've been warned about memo fields so I'm wondering if I should use this code. Is there any risk with changing the form's...
2
by: Casey Miller | last post by:
I have a site, http://www.onemorewebsite.com, that has a menu on the left side and a picture on the right side with a middle div for content in the middle. When I mouse over the menu, the picture...
1
by: mplus_2000 | last post by:
I have recently inherited a database. The switchboard (and other forms) displays the name of the database on it (top, center). Currently the name that appears is Reviews. There are plans to roll...
2
by: eljainc | last post by:
Hello, I would like my program to display the caption on the form (top of form on title bar) in a different font. I would ideally like to have one part of the form caption in one font, and...
5
by: letshin | last post by:
Hello! I have been trying to write a script that changes the title tag of my images. This is because I'm using a script to generate an image gallery, which I linked to a lightbox. I need to put a...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.