473,396 Members | 2,085 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,396 software developers and data experts.

borderless windows in vc++

Dan
i really need to create a window/dialog that just contains a bitmap and
nothing else - no window frame, caption or buttons, or any sign of a grey
background. so far ive only managed to get rid of system buttons and frames,
but i still can't get rid of a grey border that windows insists on showing.
i just want a splash screen type thing that ONLY displays the bitmap. any
help would be gratefully recieved. i think i must be being very, very dumb
:-(

Nov 17 '05 #1
3 1674
Hello Dan,
I assume that you are working on Windows Forms. You may follow the below
steps to set a form which looks like a splash form:
1) Open "Properties Window" from "View" menu option.
2) Click onto your form title and select it,
3) Set "FormBorderStyle" property to "None"
4) Set "Locked" property to "True"
5) Set "StartPosition" property to "CenterScreen"
6) Set "WindowState" property to "Normal"
7) Set "ControlBox" property to "False"
8) Set "ShowInTaskbar" property to "False"

Then, put a "PictureBox" control onto your form and set its properties as
below:
1) Set "BorderStyle" to "None"
2) Set "Image" property to choose your image to display
3) Set "SizeMode" property to "StretchImage"
4) Set "Visible" to "True"
5) Set "Dock" property to "Fill".

This settings will only show your image, there will be no visible border or
part of your Windows Form.
If you wish to close this Splash screen after a while, you may put a
"Windows.Forms.Timer" control. Set its properties as below:
1) "Enabled" to "True"
2) "Interval" to "3000" (Runs in every 3 seconds)
3) And write your code into the method of timer as below:
void timer_SplashClose_Tick(System::Object *sender, System::EventArgs *e)
{
//This method will close your form after 3 seconds when form is loaded.
this->Close();
}
--
~~~~~~~~~~~~~~~~~~~
İyi Çalışmalar
Alper AKÇAYÖZ (Bil Muh)

Wish You Good Work
Alper AKCAYOZ (Bil Muh)
"Dan" wrote:
i really need to create a window/dialog that just contains a bitmap and
nothing else - no window frame, caption or buttons, or any sign of a grey
background. so far ive only managed to get rid of system buttons and frames,
but i still can't get rid of a grey border that windows insists on showing.
i just want a splash screen type thing that ONLY displays the bitmap. any
help would be gratefully recieved. i think i must be being very, very dumb
:-(

Nov 17 '05 #2
Dan
sorry, should have told you i was using vc++ v6. i can't see these option
for the pic cotrol. is there anothere way?

thanks?

"Alper AKCAYOZ" wrote:
Hello Dan,
I assume that you are working on Windows Forms. You may follow the below
steps to set a form which looks like a splash form:
1) Open "Properties Window" from "View" menu option.
2) Click onto your form title and select it,
3) Set "FormBorderStyle" property to "None"
4) Set "Locked" property to "True"
5) Set "StartPosition" property to "CenterScreen"
6) Set "WindowState" property to "Normal"
7) Set "ControlBox" property to "False"
8) Set "ShowInTaskbar" property to "False"

Then, put a "PictureBox" control onto your form and set its properties as
below:
1) Set "BorderStyle" to "None"
2) Set "Image" property to choose your image to display
3) Set "SizeMode" property to "StretchImage"
4) Set "Visible" to "True"
5) Set "Dock" property to "Fill".

This settings will only show your image, there will be no visible border or
part of your Windows Form.
If you wish to close this Splash screen after a while, you may put a
"Windows.Forms.Timer" control. Set its properties as below:
1) "Enabled" to "True"
2) "Interval" to "3000" (Runs in every 3 seconds)
3) And write your code into the method of timer as below:
void timer_SplashClose_Tick(System::Object *sender, System::EventArgs *e)
{
//This method will close your form after 3 seconds when form is loaded.
this->Close();
}
--
~~~~~~~~~~~~~~~~~~~
İyi Çalışmalar
Alper AKÇAYÖZ (Bil Muh)

Wish You Good Work
Alper AKCAYOZ (Bil Muh)
"Dan" wrote:
i really need to create a window/dialog that just contains a bitmap and
nothing else - no window frame, caption or buttons, or any sign of a grey
background. so far ive only managed to get rid of system buttons and frames,
but i still can't get rid of a grey border that windows insists on showing.
i just want a splash screen type thing that ONLY displays the bitmap. any
help would be gratefully recieved. i think i must be being very, very dumb
:-(

Nov 17 '05 #3
Maybe below links may help you:

HOWTO: Insert a Splash Screen in a Dialog-based Application by Using Visual
C++ .NET
http://support.microsoft.com/?scid=k...990&sid=global

How To Insert a Splash Screen into a Dialog-Based Application
http://support.microsoft.com/kb/190684/

Adding a Splash Screen to Your Applications
http://www.codeguru.com/Cpp/W-D/disl...cle.php/c5029/

--
~~~~~~~~~~~~~~~~~~~
İyi Çalışmalar
Alper AKÇAYÖZ (Bil Muh)

Wish You Good Work
Alper AKCAYOZ (Bil Muh)
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Nikki | last post by:
Hi, Can anybody help me in solving this problem. I m developing an application in which the main application form is borderless. now i m not able to move the application form with the help of...
5
by: trint | last post by:
I've tried everything... function showRemote() { self.name = ""; // names current window as "main" var windowprops = "border=0,titlebar=0,toolbar=0,location=0,directories=0,status=0, " +...
3
by: Liz | last post by:
I need to implement dragging a borderless form by clicking/dragging on the form surface. Using the "standard" approach (setting "CanMove" flag on MouseDown, moving the form by the delta of the...
4
by: David Gouge | last post by:
Hi All, I have a borderless form that i can drag around fine when dragging anywhere on the form by using the following code: protected override void WndProc(ref Message m) { const int...
5
by: ThunderMusic | last post by:
Hi I'm currently developping a skinnable form by using a borderless form (Form.FormBorderStyle=None). Is it the right way to go in the first place? if it is. Assuming that when there is no border...
1
by: SeanR | last post by:
Hi, I wasn't happy with the customisability of the standard Windows form, so I decided to implement my own. Basically what I did was extend a borderless form and add my own borders and caption...
3
by: Rick | last post by:
I know I seen this before but IO cannot find it. How to you drag a borderless form in Vb.net 2005
8
by: James Arnold | last post by:
I currently have a borderless form, which I am subclassing to allow dragging & dropping: Protected Overrides Sub WndProc(ByRef m As Message) Select Case m.Msg Case 132 'Click & Drag Form...
5
by: sierra7 | last post by:
Hi I have been writing Access applications for some years now and have moved away from from the 'Switchboard' type of opening form to using a menubar accross the top of the screen and borderless...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.