C# - Arranging Many Windows Forms On Screens

Jan 14, 2011

Issue : Is there any efficient way to arrange many independent Windows Forms in .Net? I have to display many forms at the same time in my application. It is a graphic charting application, and the number of forms depends of what the user wants, so it has to be dynamic. Is it possible to arrange it like with MDI Layout ?

Example: For example, if user chooses 12 output chart forms, I would like to have them auto-arranged 4x3 on the default screen. Ideally, User could even choose many target screens among the monitors he has.

Why not use MDI: I do NOT want MDI, since my application is multi-screen and I want to leave the opportunity to the user to put his external output chart windows scattered over different screens wherever he wants. But I would though like to have a default arrangement of output windows, without calculating manually screen and forms width/heights by dividing and stuff (Already doing this, it's a real pain). I would like to spare myself this ant-work and focus on business logic.

What I am looking for: If somebody knows an open source library or tool or cool method that could be great. By the way, I found a very useful and handy tool that could help people having the same needs I am formulating here: It is named AquaSnap, but unfortunately code is not Open Source. PS: Again, I Know how to do it "by hand" and assign monitors to forms. It is not the kind of answers I am looking for.

View 1 Replies


ADVERTISEMENT

VS 2008 Arranging MDI Child Forms?

Jun 18, 2009

I have these codes to load 2 MDI child forms from my menu...

Private Sub Form1ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Form1ToolStripMenuItem.Click
Dim f As New Form1

[code]....

but still nothing happens.

View 5 Replies

Interface And Graphics :: Default Image For Splash Screens And About Screens

Aug 29, 2008

I am using VB 2008 Express: The template forms for splash and about screens have a background image

consisting of 3 circles (orange, green and blue).I would like to use this image throughout my app,

but can't find it anywhere.Does anyone know where this is located in the visual studio program

structure?

View 2 Replies

2 Forms 2 Diferent Screens?

Jun 25, 2010

I want to develop a score card to s small stadium it will have 2 42'' LCD i one lcd i want to put the team's name and score

the lower screen i wan to to elapsed time, remain time and first or second time is it possibel Visual basic 2010 (visual studio 2010 Pro), to display on form in one screen and the other form on the other screen

It must be to setup, so that the user does nothing but to put the name of the team's, the the score?

View 3 Replies

Forms :: Check If A Computer Has Multiple Screens?

Jan 25, 2012

How can I check if a computer has multiple screens?And is it possible to move form to other screens aswell?

View 3 Replies

Operator '*' Is Not Defined For Types 'System.Windows.Forms.VscrollBar' And 'Systems.Windows.Forms.VscrollBar

Oct 29, 2011

I am trying to use values from form1 in my project, in form2, but Im not sure how to do it. I've tried

txtboxTotal = (Form1.vsbLength * Form1.vsbWidth) * Pattern

But I get: operator '*' is not defined for types 'System.Windows.Forms.VscrollBar' and 'Systems.Windows.Forms.VscrollBar.'

View 14 Replies

Implicit Conversions From 'System.Windows.Forms.Control' To 'System.Windows.Forms.Webbrowser'

Sep 8, 2010

I have the code which checks if there is a selected tab

Private Function GetBrowser() As WebBrowser
If TabControl1.SelectedTab IsNot Nothing Then
For Each c As Control In TabControl1.SelectedTab.Controls
If TypeOf (c) Is WebBrowser Then
Return c

[Code]...

View 2 Replies

Arranging The Checklist Order?

Aug 8, 2009

i am currently doing a checkboxlist that is retrieved from database. is there any way where i can sort the checklist items in a way like those checked itmes will be displayed at the back then those that are not checked will be moved to the top.

View 4 Replies

Dynamically Arranging Controls In .net?

Jun 21, 2010

I am looking for the best way to dynamically arrange the location of labels (or any control for that matter) during runtime in a Windows Forms application using VB.net or C# in VS2008.I have a control that displays messages created by users.This control has a panel docked at the top which holds the header information for each message, called pnlHeader There are 8 labels: 4 of them display static descriptions (e.g. "To", "From", "Created Date", "Completed Date")And the other 4 display the relevant data for those descriptions. (Passed in during runtime from a MS SQL 2005 DB).Static labels are named: lblCreatedDateLbl and dynamic ones: lblCreatedDate The application runs on monitors of various size and resolution, therefor I would like for all of the labels to arrange themselves with equal spacing in pnlHeader, based on the current width of the panel.

At first, I had simply created the labels in the Designer and used Anchors (half of the lables were set to (Top, Left) and the other half to (Top, Right)). This solution worked for most scenarios, but did not always provide a consistent solution, so I decided to add the controls in code instead.

I thought it would be easier to work with the labels by creating a panel for each corresponding pair. So pnlCreatedDate would hold lblCreatedDateLbl and lblCreatedDate I wrote 2 methods: 1 to define each label and add it to the relevant panel: Sub AddLabels
and another to determine the width of the panels and set the correct location: Sub SetLoc Currently, AddLabels runs in the constructor after InitializeComponent() and SetLoc is called after the data has been passed in from the database.

I've tried making minor changes and tweaks to the width and size parameters, enabling and disabling AutoSize, but nothing returns a consistent solution, instead either all the description labels are misplaced, or do not appear at all or completely whack locations come up.

Private Sub AddLabels()
'Label Created By:'
lblCreatedByLbl.Location = New Point(0, 0)

[code]....

View 1 Replies

Re-arranging Columns In Excel?

Sep 26, 2011

Is it possible to take an Excel spreadsheet and move some columns around? Basically I receive spreadsheets that need to be re-formatted and have the columns shifted, some also need to be deleted. I have no idea how to go about this, is it even possible? It's always the same columns so it's not like it changes from file to file. I know it probably makes more sense to just create a macro but I thought I'd see what was involved in it anyway.

View 1 Replies

Re-arranging Elements In List(Of T)?

Apr 7, 2011

I got a list of objects. Each object has a property called Z (integer).There will come a point during run-time I will want to re-arrange such objects in my list depending on their Z property. The objects with lower Z go first in the list, and the ones with higher will go last.I have thought of a couple things, like making a new List, then loop through each object in the original list as many times as the amount of objects such list has (so if it has 10 objects, I would loop 100 times), and each iteration will check the Z values. When a cycle is done (for every 10 iterations), I will remove the object with the lowest Z number in cycle and add it to the new List. And so on until the 100 iterations are done.

View 3 Replies

Arranging Data Reading In From A Database

Jan 9, 2009

Private Sub frmAttendace51_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'clear data set of any existing data
objDataSet.Clear()
'fill schema
[Code]...

View 3 Replies

Arranging ListView By Dragging Items

Sep 20, 2009

I'm working on a little program that uses a ListView box. I'd like to know if you can arrange the list by dragging the items within the ListView box. Example: I'd like to be able to just drag the bottom item to the top, or the middle item to the bottom, and so on. I guess I'm just wondering if I can move items around using the mouse by dragging them around within the ListView box.

View 3 Replies

TreeView AutoSort For Arranging Nodes?

Nov 16, 2009

I am working in vb2008. The auto sort for the treeview doesn't sort the way I need. For example:
1
10
11
2
3
etc

Is there some way to get the treeview autosort to recognize that 10 > 2 so that I get my nodes arranged as:
1
2
3
...
10
11

View 4 Replies

VS 2010 Arranging Data Points?

Nov 4, 2011

I'm using mscharts, but my question might not need to be chart related to be answered.My chart contains 5 XY data points that will be shown in a spline (line graph). The X values are from text boxes 1-5, my Y values are from textboxes 6-10. I'm adding them to my chart by code.

[Code]...

My issue is I have to enter the data in order to make my line proper. Is there a way to first arrange the points, then add them to the chart. Otherwise if I add a lesser point in the middle, it "z's" the line.

View 3 Replies

Unable To Cast Object Of Type 'System.Windows.Forms.Button' To Type 'System.Windows.Forms.TextBox'

Apr 28, 2009

I have a panel with some controls in it (several textboxes, a slider, 2 buttons, and a small groupbox).. When I click a button, I want all of the textboxes within the panel to be readonly... So I have this code: [code] When I run it though, I get the following error:Unable to cast object of type 'System.Windows.Forms.Button' to type 'System.Windows.Forms.TextBox'.If I remove a button, it moves on to give me the same error but for a label..

View 4 Replies

Sort String - Arranging Line In Ascending Order

Sep 7, 2009

I have a line like this
18N694 P321 117461, 50374 50MIL;
XTAL_X1 P253 116711, 66524 39MIL;
HR_ICH_HUB_CLK66_R P1567 109761, 68424 39MIL;
P64H2_CLK66_R P2177 110161, 68424 39MIL;
CPLD_NET2 P1151 4711, 90424 75MIL;
V3_3_MGMT_PWR_RST# P3482 4711, 90024 100MIL;

From the above line I have to look the last word MIL. Then I need to arrange the line in ascending orders according to 30MIL,50MIL, 75MIL and 100MIL. Can I use IComparer? Because here I dont know how I can reach the word MIL and sort.

View 12 Replies

Basic Application(windows Forms) Doesn't Exit Properly After Navigating Through Forms

Jul 9, 2010

I have a basic three form application. It doesn't seem to close after navigating through forms. If I were to open the application, and the main form is displayed. If I press the X button, the application closes fine(Goes from processes) If I were to open the application, and then navigate from the main form to another form using me.hide & form1.show, and press the red X on Form1, the application again, closes fine.

[Code]...

View 6 Replies

Forms :: Visual Studio 2010 Windows Forms App Screenupdating Property?

Jun 4, 2011

.NET developing and have a simple question, i've been stuck on this for a while and searched many forums first with no solution so i'm posting myself. In VB for excel i've used Screenupdating=false to disable the screen updating however now i'm creating a visual studio 2010 windows forms application and its not showing up as a property. Here's the code i've tried.

[Code]...

View 4 Replies

Application That Has Multiple Front Ends Developed Using Windows Forms / WPF / ASP / Compact Framework Mobile Forms

Apr 9, 2010

I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.

Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?

View 3 Replies

Forms :: Startup A Second Windows Forms Inside The Parent Form?

Aug 26, 2010

I would like to know if its possible to start up a second windows forms inside the parent form. Ex: A button is pressed and a new form is showed. I would like to keep that new form inside the parent form, and have it not be able to go outside the parent form.

View 2 Replies

Forms :: String Cannot Be Converted To System.windows.forms.label

Mar 31, 2010

I am writing a program for my A-level coursework But for some reason I got this build error this has never occurred to me before, I have no idea why I can't use string for the name of my form.

View 8 Replies

Forms :: Windows Forms App Copy A File To A Preset Folder?

Jan 9, 2012

a program and i need to have a button put a file into a folder, i know how the button works i already have it doing some other stuff. i just don't know the code to copy and past it to a folder.

View 1 Replies

Inherits System.Windows.Forms.Form Is Missing In New Forms?

Mar 5, 2012

When I add a new, empty form to my VB.NET VS9 project, the linenherits System.Windows.Forms.Formis missing.What am I doing wrong here?I thought it would be added automatically.I experienced that some thing get weird if this line is not there (Form_Load is not firing, I think).

View 3 Replies

Winforms - How To Load Binary To Windows Media Player In Windows Forms

Jul 24, 2011

I've successfully saved video files into SQL server as varbinary. Now, my problem is, how can I play those videos in Windows Media Player (embedded in my Windows Forms).

View 1 Replies

Code Works In A Windows Forms Application, But Not In A Windows Service

Jan 19, 2010

I'm porting code that I wrote for use in a Windows Forms application to a Windows Service, but for some reason, the code that worked in the Windows Forms application is now throwing errors in the Service

View 7 Replies

Forms :: Disabling BackGround In Windows Application Same As Windows Cardspace

Sep 24, 2010

I am making a System Tray Application when i minimize my form its hide itself in the tray but whenever i click on the tray icon my form shows now when my form shows up i would like to disable my Background desktop same as CardSpace when its shows up.

View 1 Replies

Scroll In Windows Forms Treeview Only On Windows Server 2003

Apr 10, 2012

I have a problem with scroll in a treeview in a Windows forms application (Framework version 3.5).

The strange thing about the problem is that on Windows XP, Windows 7 and Windows 2008 the scroll works as excepted, but in Windows Server 2003 SP2 the scrolling doesn't work. Enable/disable Visual Styles doesn't seem to make a difference on Server 2003.

Steps to reproduce the error:

1. Add a treeview to a form and add x nr of root items (and 1 sub item to each item).

2. Expand a number of nodes. The non-standard thing here is that we are changing the node integral height because we display a usercontrol with the treenode (See example of the code below).

3. When you scroll afterwards, you cannot scroll to the bottom node. The scrollbar is all the way down, but we are not seeing the last node.

Public Shared Sub SetNModeHeight(ByVal Node As TreeNode, ByVal IntegralHeight As Integer)
'Create instance of tvitemex structure.

[Code]....

View 2 Replies

Forms :: Command Line Args In Windows Forms?

Aug 2, 2010

I was playing a game recently and saw that they could use args in the shortcut, and I decided to try to impliment this into my application...so far, I got: (runs this sub on load)

Sub startup_args()
If Environment.GetCommandLineArgs.Contains("+game") Then
Dim path As Array = Environment.GetCommandLineArgs

[code]....

just to see what it returns, but the application crashes. I also tried path.tostring(), but that didn't work. When I did:

If Evnironment.GetCommandLineArgs.Contains("+game") Then
Dim path as string = Environment.GetCommandLineArgs.tostring
MsgBox(path)

[code]....

but that returned the value "SString.Array[]"...

View 7 Replies

Forms :: Creating A Sub Main In A Windows Forms Project?

Sep 13, 2010

What is the vb.net equivalent to accomplishing this?

static void Main()
{
frmCalcView view = new frmCalcView();

[code].....

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved