To calculate the area of a square and of a rectangle multiply the width by the height.
Formula : L x H
To calculate the perimeter of a square or a rectangle
Formula : (2 x L) + (2 x H)
To calculate the area of a circle you need the radius, which is half the diameter. Once you know the radius
Formula : Pi x (R x R)
To calculate the perimeter of a circle
Formula : (R x 2)...
User Profile
Collapse
-
-
The old way was to delete all the files from the directory and then delete the directory.
Dhould the directory contasin sub directories, then you will need to recure through them to ensure all files are deleted and then delete the directory. If the directory contains files then you will recieve an error.
Private Sub Form_Load()
Dim MyDir As String
On Error GoTo ErrHandler
MyDir = "D:\Temp"...Leave a comment:
-
Private Sub Text1_KeyDown(K eyCode As Integer, Shift As Integer)
If KeyCode = 13 Then '13 being the keycode for the enter key.
End 'Enter whatever code you want here!!
End if
End SubLeave a comment:
-
Hmmm.....
To obtain the area of a particular shape is to use a formular that depends on that shape.
Co-ordinants are just a reference number to a datum point.
What is the shape you want to determine the area of? Is it a square? is it a rectangle? is it a circle?, an oval, a trapezium?, a hexagon?
Forget about the word co-ordinates and let me know what the shape of the area is that you are trying...Leave a comment:
-
Area of a square is side A multiplied by side B
The area of a rectangle is Long side A multiplied by Short side BLeave a comment:
-
Keyboard/Mouse Hooks
Is there anyone here eperienced with using hooks? In particular JournalRecord and Playback hooks with Vista? -
I dont understand why you would want to add a text file to a combobox?
A combobox is for listing items, not file contents.
You may be better using a listbox.Leave a comment:
-
What is the area to calculate? Is it a squre, circle, cube, maybe the area of a bottle, the area of Texas?
You need to supply a little more info.Leave a comment:
-
It appears you want to add 2 lots of information.
One being the variable Data, and the other being the variable I.
Combo1.additem Data & ILeave a comment:
-
Where is .net
I am a newbie to VB.NET so I am starting from scratch.
I have Visual Studio 6 but have only installed the VB^ portion of the intallation disk. Do I need additional software or is VB.NET incuded with VS6?
If its included, What is it that I am looking for to install and run?
All help appreciated. -
Why wont JournalRecord record
Hi,
I am adding a hook for JournalRecord and JournalPlayback but for some reason my JournalRecordPr oc never gets called.
I am using Vista. I am also using other hooks that are working and calling functions, ie GetMessageProc. Below is the relevant lines of code.
Can someone please shed some light on what I am doing wrong.
Thankyou
lAppHookID = SetWindowsHookE x(WH_GETMESSAGE , AddressOf GetMessageProc,...
No activity results to display
Show More
Leave a comment: