C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |



My Profile

Gifts

Active Members
TodayLast 7 Days more...









A Full Screen Form with no Task Bar


Posted Date: 11 Jul 2008    Resource Type: Code Snippets    Category: Application windows, menus & toolbars

Posted By: Sabu C Alex       Member Level: Gold
Rating:     Points: 7



Using this code snippet you can create a form suiting your screen size.

The code sample below is executed on a Form's Load Event in VB.NET. This is the most appropriate time to resize the form. Because, at compile time we may not know the exact screen size as the run time environment could always be different.

The code also hides the taskbar when it is active thereby gaining complete focus from the user. This is done by setting the form's TopMost property.


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Size = SystemInformation.PrimaryMonitorSize
Me.Location = New Point(0, 0)
Me.TopMost = True
End Sub




Responses

Author: UltimateRengan    16 Jul 2008Member Level: Diamond   Points : 1
hi,
this code also

Me.Size = SystemInformation.PrimaryMonitorMaximizedWindowSize
Me.Location = New Point(0, 0)
Me.TopMost = True

whats the different b/w PrimaryMonitorMaximizedWindowSize and PrimaryMonitorSize?
if you know ----


Author: Sabu C Alex    17 Jul 2008Member Level: Gold   Points : 1
PrimaryMonitorMaximizedWindowSize not hiding taskbar

PrimaryMonitorSize hides taskbar also


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
No Task Bar  .  Hide taskbar When Form is active  .  Hidden Taskbar  .  Full Screen Form with Taskbar hidden  .  Full Screen Form  .  Form Full Screen  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: MessageBox handling
Previous Resource: Example on Globalisation using C#.Net
Return to Discussion Resource Index
Post New Resource
Category: Application windows, menus & toolbars


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

email fax service

Contact Us    Privacy Policy    Terms Of Use