Re: VB.net forms, how far is too far?

  • From: "Tyler Littlefield" <tyler@xxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sat, 24 Jan 2009 06:41:21 -0800

you can just skip the right click and hit f4 on it, whether in the tree view 
that shows the files, or in design view.

  ----- Original Message ----- 
  From: Ricks Place 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Saturday, January 24, 2009 3:08 AM
  Subject: Re: VB.net forms, how far is too far?


  Here is the first in a quick series of doing forms layout I have thrown 
together. Please comment on it so I can make it better each time someone uses 
it for future folks. Here we build a quick Windows project and modify the 
default Form1.vb file so it appears as a large black background to add controls 
to. It is basically a full screen Form based on a screen resolution of 1024 by 
768 or there abouts.
  When you build a form you want it to be able to be displayed on a computer 
screen. Most screens will fit a Form based on the Resolution. So if your 
Resolution is 1024 by 768 the form can be 1024 horizontally and 768 vertically. 
  Anyway here is the article. I don't have a spell checker so it is what it is 
- just a quickoverview. There are several other steps and the next step will 
position controls on this form giving a simple and quick manual way to 
visualize what is going on.
  After that I am working on Steps to demonstrate using the TableLayoutPanel 
and perhaps the Flow control as well. Anyway, here is step 1.
  Step 01: Create the Form:
  Start a new project in Visual Studio or one of the Express Modules, I will be 
using Vb.net in Visual Studio 2005.
  Project Name: FormsLayout
  Project contents by default are MyProject Folder and the Form1.vb object.
  Right MouseClick on Form1.vb, select view Forms Designer and Designer comes 
up.
  Under View Menu select Properties Window or hit the w key to bring up the 
properties Window for this form.
  Arrow down the list of properties and set:
  Backcolor = Black:
  Continue arrowing down the list of properties.
  When you get to font:
  tab twice to the Elipsis, 3 decimal points ...,  Windoweyes calls it quote 
browse unquote ,  and hit enter:
  The Font Dialog comes up. Tab once past the Style combo box to the size combo 
box and arrow down to 12 to set the font size to 12 pt.
  Tab to the OK button and hit enter to return to the Properties Window list of 
properties for this form.
  Arrow down to Forecolor and either select or type in white.
  Arrow Down to size and set it to 1000, 700
  Continue arrowing down to Start Position and tab to Browse, hit enter and 
select Center Screen and hit enter.
  You are returned to the Properties Window list of properties for the form.
  Hit CTL+F4 to exit the properties window and return to the Forms Designer for 
this form.
  Hit CTL+F4 again and answer yes to the prompt to save the changes.
  Hit Alt+F4 to exit project if you want and answer yes to save prompt.
  At this point:
  We have a project called FormsLayout:
  It has one Form called Form1.vb.
  If we hit ctl+f5 to run the project a centered black rectangle would 
basically fill the screen. This is our form. It has no controls on it so it 
just looks like the screen has turned black except for a little space around 
the edges and a line along the top that might say something like Form1 which is 
the  TitleBar.
  We will add and position our controls inside this black box 
  in subsequent steps.
  Finally, the 12 font size is a nice readable size but you can use 10 as well, 
8 is too small in my opinion for easy reading. The calculations in the 
following steps are based on the default sizes provided by Microsoft and 
picking 10 or 12 will give you default sizes close to what I ran across on my 
machine so the numbers will be close.
  Rick USA
    ----- Original Message ----- 
    From: Christy Schulte 
    To: programmingblind@xxxxxxxxxxxxx 
    Sent: Friday, January 23, 2009 5:09 PM
    Subject: VB.net forms, how far is too far?


    Working on some vb.net assignments for school, using visual studio 2008. 
I've figured out how to place controls on the form using the jaws scripts and 
it works wonderfully, but I'm having a bit of trouble visualizing my layout. 
Basically, I'm not quite sure based on the numbers just how far over on my 
screen the control really is. If a control has its left edge at 300, is that 
halfway across? a fourth of the way? way the heck off the screen? I've noticed 
that once a control gets to a certain point and you add a new control, VS puts 
it back at 0,0 instead of to the right and down from where you were, but not 
sure if that really means anything. Any experienced VS users who could give me 
a bit of help conceptualizing this would be very much appreciated. Thanks!
    Christy

Other related posts: