ricardosms's Profile User Rating: *****

Reputation: 73 Whiz
Group:
Author w/DIC++
Active Posts:
314 (0.27 per day)
Joined:
02-April 10
Profile Views:
5,277
Last Active:
User is offline May 06 2013 04:15 AM
Currently:
Offline

Previous Fields

Country:
PA
OS Preference:
Windows
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
1100
Icon   ricardosms has not set their status

Posts I've Made

  1. In Topic: Converting a word to an integer

    Posted 17 Jun 2012

    Except for few exceptions like eleven, twelve, they pretty much follow a pattern. You could try a lookup table or a dictionary.
  2. In Topic: Passing data between functions

    Posted 8 Jun 2012

    Define the variables

    Imports...
    Private Class MyProgram
    
    Dim Addr1, Addr2, City, State, Zip  As String
    Dim X, Y AS ...
    Private Sub MyProgram_Load...
    .
    'Some Code.
    .
    End Sub
    
    Private Function Info() As... 'Functions Return A Value, Otherwise Use a Sub
    
    Addr1 = Addr1.Text
    .
    .
    .
    End Function
    
    
    


    In the body of the class, before defining any function, so they have a global scope. You can read or change their value on any placce of your code.
  3. In Topic: Passing Values between forms in Visual Basic

    Posted 6 Jun 2012

    There are all kinds of events connected to the controls on your form. Check the attached image. On the left is a combobox where Button1 is selected. On the right is a dropped down combobox that shows a partial list of the events asocciated with button1. All of them can be used by you. BTW this is the development environment from VB.Net express 2010.

    Attached File  Events.jpg (266.35K)
    Number of downloads: 9


    If you click the left one you will have a list of all the controls on the form, including the form, also a list of variables, they are objects. If you select one of them, then click on the right combobox, there you will see the events associated with it.
  4. In Topic: Passing Values between forms in Visual Basic

    Posted 5 Jun 2012

    Events are something happening.
    Raising an event is like clicking a button, or resizing a form or moving the mouse on top of a label, or changing a color or a font. These are events.
    The way the program respond to them is controlled by the handlers. If you have a button click, you could have a subroutine that responds to it; the connection is made by the clause "Handles Button1.Click" or "Handles Me.SizeChanged", etc, so the program knows what to do when that button is clicked or that change had occurred. The subroutine could have arguments that provide some extra useful information, but the response to the event is what exists between the line:

    Private Sub ...
    
    


    and the line
    End Sub
    
    
  5. In Topic: Passing Values between forms in Visual Basic

    Posted 5 Jun 2012

    Let's say you have Form1(frmMain) and Form2(frmSettings). On Form1(frmMain) you have two integer variables:
    XScale and YScale.
    If you are on Form2(frmSettings) and have there two textboxes txtX and txtY and a button btnOK, you can access and change the values on frmMain like this:

        Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
            frmMain.XScale = val(Trim(txtX.Text))
            frmMain.YScale = val(Trim(txtY.Text))
        End Sub
    
    

My Information

Member Title:
D.I.C Regular
Age:
60 years old
Birthday:
November 2, 1952
Gender:
Location:
Canada
Interests:
Learning about anything.
Plant genetics and gardening.
Good food.
Giving precise instructions to the computer.
Full Name:
Ricardo A. Conte-Oro
Programming Languages:
Tried Fortran,Basic,Assembler,C,VB.
Never past the beginner's level.

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    ricardosms Icon

    12 Apr 2012 - 03:14
    It goes both ways.
    Thank you.
  2. Photo

    DimitriV Icon

    09 Apr 2012 - 20:23
    Excellent. You've helped me out a lot and showed me things I never thought I'd know.
  3. Photo

    ricardosms Icon

    08 Apr 2012 - 15:20
    Just learning, like everyone else
  4. Photo

    DimitriV Icon

    06 Apr 2012 - 21:43
    Skills bro. Knocking out heaps of awesome tutorials!
  5. Photo

    _HAWK_ Icon

    18 Oct 2011 - 19:48
    Where you been man!
Page 1 of 1