Suppress Window Form Caption Bar

G

Guest

Hi,

I am looking for a way to suppress the Caption bar of a window form. Is
there anybody who knows how to do it?

Another question is that if there is a date picker control like
DateTimePicker in .NET but I can set the value of the textbox to be blank?

Thanks,
Mike
 
P

Piotr Dobrowolski

Hi,

I am looking for a way to suppress the Caption bar of a window form. Is
there anybody who knows how to do it?
[PD] Set form ControlBox to false and Text to "".
 
G

Gary Chang[MSFT]

Hi Mike,
Another question is that if there is a date picker control
like DateTimePicker in .NET but I can set the value of
the textbox to be blank?

I don't know where can get such a control. But I suggest you can combine a
plain textbox and a normal DateTimePicker control to workaround this
requirement.

Just use a non-border textbox to overlap the target DateTimePicker control.
That textbox should have the same height with the target DateTimePicker
control but a bit shorter that it, in order to avoid covering the dropdown
button of the DateTimePicker control. Then add the code to copy the
DateTimePicker's value string to the textbox in its ValueChanged event
handler. Also you would like to add some other event handler to customize
that textbox.

Then you will have a DateTimePicker control which has an 'independent
textbox' as you wish. :)


Wish this helps!

Best regards,

Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top