Interface design question
Interface design question
Interface design question
Interface design question
Interface design question
Interface design question Interface design question Interface design question Interface design question Interface design question Interface design question Interface design question Interface design question
Interface design question Interface design question
Interface design question
Go Back  Xtreme Visual Basic Talk > > > Interface design question


Reply
 
Thread Tools Display Modes
  #1  
Old 05-18-2012, 12:59 PM
celtic celtic is offline
Centurion
 
Join Date: Mar 2009
Posts: 132
Default Interface design question


Hi all.

I was wondering if I could elicit some tips on how to procede with an interface design approach.

That is. What is a good way to go about establishing a "work area" where one can have multiple "floating forms" in this area.

Can you have a form which occupies the entire windows desk top and the other forms "float" in this space? the "floating" forms would need to interact with each other where pressing buttons etc on them would affect other forms on the "workspace")

Or what would be a good way to start accomplishing that? Or is there a better way to get the same effect?

Thank you in advance for any suggestions.
Reply With Quote
  #2  
Old 05-18-2012, 03:53 PM
snarfblam's Avatar
snarfblamInterface design question snarfblam is offline
Senior Contributor

Forum Leader
* Expert *
 
Join Date: Apr 2005
Location: USA
Posts: 896
Default

It sounds like you are trying to describe an MDI form. Or do I misunderstand?
__________________
C# _VB.NET _
Reply With Quote
  #3  
Old 05-18-2012, 09:23 PM
celtic celtic is offline
Centurion
 
Join Date: Mar 2009
Posts: 132
Default

Ah. Yes. That's it.

Thank you snarfblam. Now that I know the name, I can read up on it.

Thanks again
Reply With Quote
  #4  
Old 05-18-2012, 09:53 PM
hDC_0Interface design question hDC_0 is offline
Contributor

* Expert *
 
Join Date: Feb 2004
Posts: 559
Default Screen Working Area(s)-methods to get extents, determing rect(s) w/multiple monitors

Quote:
Originally Posted by celtic
What is a good way to go about establishing a "work area" where one can have multiple "floating forms" in this area.
Can you have a form which occupies the entire windows desktop and the other forms "float" in this space?
Actually the windows desktop already has an established "work area" which roughly represents
the portion of the screen not obscured by the system taskbar and/or by application desktop toolbars.

To find out more about using the old SystemParametersInfo API for this purpose,
try searching for "SPI_GETWORKAREA = 48".
Of course using an API does involve a unsafe PInvoke-ing, so the other more ".Net friendly" approach is to make use the .Net framework.

Under the 1.1 version of the .Net framework you could use System.Windows.Forms.Screen.

However under current .Net versions its probably better to use Screen.GetWorkingArea.

The reason I say "roughly" is that there could be multiple monitor screens involved.

That's why you may want to use the Screen.AllScreens Property
and a For..Each loop to get an array of all the screens connected to the system:
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnGetScreenInfo.Click
    Dim Index As Integer
    Dim UpperBound As Integer
    ' Gets an array of all the screens connected to the system.
    Dim Screens() As System.Windows.Forms.Screen = _
        System.Windows.Forms.Screen.AllScreens
    UpperBound = Screens.GetUpperBound(0)
    For Index = 0 To UpperBound
        ' For each screen, add the screen properties to a list box.
        ListBox1.Items.Add("Device Name: " + Screens(Index).DeviceName)
        ListBox1.Items.Add("Bounds: " + Screens(Index).Bounds.ToString())
        ListBox1.Items.Add("Type: " + Screens(Index).GetType().ToString())
        ListBox1.Items.Add("Working Area: " + Screens(Index).WorkingArea.ToString())
        ListBox1.Items.Add("Primary Screen: " + Screens(Index).Primary.ToString())
    Next
End Sub
..if you intend to have a multi-monitor spanning workspace.
Reply With Quote
  #5  
Old 05-19-2012, 08:59 AM
celtic celtic is offline
Centurion
 
Join Date: Mar 2009
Posts: 132
Default

Thank you hDC_0

I think I will stick to one monitor.

Looks like a useful information on the desktop workspace and list of all the monitors on the system. Thank you
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Interface design question
Interface design question
Interface design question Interface design question
Interface design question
Interface design question
Interface design question Interface design question Interface design question Interface design question Interface design question Interface design question Interface design question
Interface design question
Interface design question
 
Interface design question
Interface design question
 
-->