Calculating Carpet Room Area

Dec 1, 2011

Calculating Carpet Room Area

CODE:

View 3 Replies


ADVERTISEMENT

Carpet Calculator - Rolls Required To Cover Room?

Sep 1, 2011

I'm trying to make a carpet calculator that will do the following:
1) How many metres of carpet are needed to cover a room.
2) How many rolls of carpet that will be.
3) How much full-width carpet will be left on the last roll.

The carpet is supplied in rolls that are 5 meters wide and 30 metres long. Any excess width is discarded. This means that rooms that are wider than 5 meters need several strips of carpet. The smallest space that will be carpeted is 1m x1m, the biggest is 20m x 20m. I only need whole meter lengths, so example if only 1.6meters of carpet were used to cover a room it would be rounded to 2 meters.

Here's the code that's giving me incorrect calculations. The number of rolls required to carpet the room seems to be the biggest miscalculation.
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
Dim width, length As Single 'Defines variables.
If IsValidInput(txtWidth.Text) Then
width = txtWidth.Text
[Code] .....

View 7 Replies

Calculating Font Size To Fit Given Display Area

Feb 16, 2012

I know that I can calculate the display area for a given font using
TextRenderer.MeasureText("Text", New Font(Arial, 12.0F)
I want to calculate the size of a font I should be using in order to fit a given display area. Is there a function that allows me to do that?

View 1 Replies

When A Player Types North In Room "Crash Site" They Get The Description Of Traveling To The Next Room "In Trail"?

Jul 27, 2010

I've run into another road block while programming my game. The problem is that when a player types North in room "Crash Site" They get the description of traveling to the next room "In Trail" as well as the description of traveling to the next room after that, "Deeper In Trail" before having to type north again. I've looked over the code several times, but can't find the problem....the conditions seem to be fine, but I'm guessing that's where the problem is..

Code:
ElseIf LCase$(txtInput.Text) = "go north" And Room = "Crash Site" Then
Room = "In Trail"

[code].....

View 14 Replies

Set The Viewable Area To A Smaller Screen Area?

Jun 11, 2012

Trying to set the viewable area to a smaller screen area and have it cycle through as the person moves using collision detection to move the backgroudn image. Here is the start but its off to a bad start so far.

Public Class Form1
Dim Mapx As Integer = 600
Dim Mapy As Integer = 2000

[code]....

Basically the forum size is set to 600x2000 but the client should only allow you to view 600x600. I want it to add +1 once you "collide with a invisable box I'll add and this will redraw the screen.

View 4 Replies

Specify Actual Usable Form Area Instead Of Outside Area?

May 12, 2010

I designed a form and managed to fit graphics inside it. Picture box is 465 pixels high. Form1 is 500 pixels high. SnapShot of the screen verifies that the 500 pixel height is the overal height. It includes the upper Bar and lower frame. Is there an instruction to set the From's inner pixel size and not overal?

View 2 Replies

Create A Chat Room?

Dec 23, 2011

create a chat room? My current hosting is a linux server with mysql. I want to make a client that can connect to the database.(already done) and if the user exists, to open a chat form. I want this to be multithreaded, that way I can have up to 500 people chatting with each other at the same time, from different locations. (realistically will usually be around 50)I have found some winsock type examples, but I dont understand how I can adapt that to work with a linux server... Can anyone help give me examples? I guess I basically want an IRC.(Which I dont know how to implement.)

View 2 Replies

User To Know The Room Temperature?

Apr 23, 2012

I am trying to provide a GUI which helps the user to know the room temperature.I am using an 8051 microcontroller with rs232 cable in order to provide the serial communication.

View 3 Replies

VS 2005 Room On Tab Control?

May 5, 2009

I have a tab where i'm adding more and more controls to it... I have no problem on my computer i can reszie my screen and just refit them but other users may not want to how can i make my tab have scroll bars to if my controls don't all fit it will just be a scroll away??

View 5 Replies

Chat Room Dropping Connection?

Jul 30, 2009

I have created a instant messenger program that works great except for 1 of our computers that is in our vpn but is an offsite location. The computer is able to connect but loses its connection after a few minutes.

View 1 Replies

How To Use In A Server To Client Chat Room

Mar 6, 2009

I have been looking for a really detailed tut on how to use in a server to client chat room. I looked on google but they just post the script which helps alittle but I need a lot of detail to make a working chatroom.

View 2 Replies

Room Availability Calendar Blocking

May 26, 2011

I am developing a hotel software product, and one of the features required is to be able to display the room numbers in the hotel, and then the status of them for each day of the month.

I am trying to create something similar to a DataGridView control where at the top the column names are the dates of the month, and to the left is the room numbers as rows. Please see the below screenshot of the function I wish to have. However I do not know what control or function they use to create this grid below (it is from an existing product). I need to not just be able to join multiple cells together when it is the same person in the room for multiple days, but also allow drag and drop ability.

Currently I have a DataGridView control and am able to simulate the below screenshot, however with a datagridview control I am unable to join cells across multiple columns nor allow drag and drop ability between rows.

View 6 Replies

Room Booked View DataGridView?

Jun 15, 2011

I need to create a DataGridView that will show all the bookings from each room within an SQL database.This will show the rooms down the left hand side and then the time slots in 30 min intervals as the columns.I dont want to use any thrid party controls as i need to do it for college.I have 2 tables called Rooms and Bookings this is the code i have so far

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Sets conn as new connection
Dim conn As New SqlConnection

[code]....

View 6 Replies

Making Chat Room Window And Do A Post Or Something To Log-in?

Oct 14, 2009

I want to make my own little chat room window. [url] But I want to do a post or something to log-in. Not just filling out the form values one by one. I've looked at some sources, but I'm overly confused. Anyone have some direction to help guide me, or even some examples?

View 1 Replies

VS 2008 : Error - No Room Is Available To Display Rows?

Jun 22, 2010

I am using this code to have current days work show at top of list:(It's working for me so I need to continue using it)

Dim FirstJobOfDay_SP As Integer
Dim Today As String
Today = DateString

[code]....

I have changed my application. Now it has two separate datagridviews each using the code above (seperate bindingSource and GridView). One each in it's own splitcontainerpanel one above the other. My intent was to allow the user to view both at once or grab the divider and slide the panels up or down to only reveal the grid they want to view.Trouble is, when one grid it completely collapsed I get an error "No room is available to display rows".

View 3 Replies

Web Based Chat Room With VB.NET Behind Code In ASP.NET Framework?

Sep 11, 2002

Is there any way to build a web based chat room application by using VB.NET as behind code and put it with ASP.NET on the web so users can login the account and start to chat without keep refreshing the browser or frame and have a real time transaction, I know that I have to use .NET.Socket namespaces, but don't know exactly how. I have seen many examples of windows based applications, but I need to know how to put it on the web.

View 5 Replies

What Control Should Be Use In Making A Room Mapping System

Feb 25, 2010

what control should i use in making a room mapping system? i just cant figure out what controls i should use. i plan to use the datagrid but i don't know how to fill the color of cell.

View 3 Replies

Chat Room - Sending Messages To Specific Clients?

Nov 19, 2009

How would I create a multi-tcp chat room. Im having trouble handling them. I know you can store the connections as arrays or store then in hash tables. Is there a better way to data to a specific connected client. My way was to just broadcast the message to all the connected with the clients name (EX: Client1||MessageHere) || is the split. The client reads the message and sees if client name matches if it does then it will display it other then that it will not. I found out that my server was sending out useless data with this method. So is there a better way to handle/Send messages to a specific client?

View 2 Replies

Extend The Client Area Of Form To To The Non-client Area?

Nov 19, 2009

I guess thats what I need to do, Im trying to allow the user to right click on the top of my form, and my custom Context Menu Strip is displayed, not windows context menu strip. I guess somehow i would need to get the size and draw a rectangle on the non client area and see if the user has right clicked in that rectangle? if so how would I get the area of the non client area?

View 7 Replies

Examination Scheduling (filtering Conflict Of Assigning Proctor And Room)

Jan 15, 2012

am doing my thesis entitled Automatic Exam Scheduling System. this works when button "GENERATE" is click. that would initialize the automatic assigning of proctors and rooms to classid.....plz help...i can't filter the conflicts of proctors and rooms since it is automated.

View 2 Replies

Silverlight Project With Tabcontrol Hosting Canvas Objects : Can't Get Vertical Bar To Hide Even When Lots Of Room

Aug 11, 2011

Silverlight project with tabcontrol hosting canvas objects. I want to wrap my entire tabcontrol with a scrollviewer so that on a short display you can scroll vertically to see the whole area on my canvas.When I run my project my scrollviewer vertical bar is always showing even when there's more room vertically than needed for a scrollbar.

All I am trying to accomplish here is a min resolution of 1280x768 to be scrollable and anything bigger than that have the scrollbars hide. My laptop is only 768 tall, but my canvases were developed with 1280x1024 in mind. So I would like a way to set this up so that everyone can scroll or just see the canvas all at once depending on their resolution.

Anyone have any ideas why it is always visible? I've tried setting canvas width and height. I tried setting stretch on alignments on the outer grid. Saw both those tips while searching other issues similar to mine.

Some code:

<Grid x:Name="LayoutRoot" MinHeight="768" MaxHeight="1024" MinWidth="1024" MaxWidth="1280" Background="#FF6A6868" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.775*"/>

[code]....

....lots of child canvas items in my "Main Floor" canvas. Child canvas objects contain lots of path objects. None which are taller or wider than the main floor canvas width/height.

<sdk:TabItem Margin="0" Header="Mezzanine">
<Canvas x:Name="Upstairs" HorizontalAlignment="Left" Height="1000" UseLayoutRounding="False" VerticalAlignment="Top" Width="1280">

..another tab. Same deal with child canvas objects.

View 1 Replies

Make A Basic Client And Listener Chat Room - : Error1Method 'Private Sub CliInfo' Does Not Have A Signature Compatible With Delegate

Dec 9, 2009

Im trying to make a basic client and listener chat room but im having problems with method invoker.

Error: Error1Method 'Private Sub CliInfo(CliMess As String)' does not have a signature compatible with delegate 'Delegate Sub MethodInvoker()'

Imports System.Net.Sockets
Imports System.Threading
Imports System.Text[code]......

View 5 Replies

VS 2010 Animation - Add An Effect Where A Panel Sweeps Out Of The Way To Make Room For Another Panel?

Nov 24, 2011

I would like to add an effect where a panel sweeps out of the way to make room for another panel. This is sort of like a sliding effect, and I think at one point in time this could be seen on Apple's website under their product pages. I came up with some code, but it isn't working.

[Code]...

View 1 Replies

DB/Reporting :: Calculate Rate For 3 Days In Different Rate Like Public Holiday,weekend And Normal For 1 Room?

Aug 19, 2009

how to calculate rate for 3 days in different rate like public holiday,weekend and normal for 1 room

View 2 Replies

VS 2008 Broadcast / Specific (one Person) A Live Voice Over A Tcp Connection For Voice Chat Room?

Feb 25, 2010

How would i broadcast/specific(one person) a live voice over a tcp connection for my voice chat room im making.

View 1 Replies

Hotel Booking System Programme - When Booking Button Is Clicked It Can Search A Database And Find The Best Suited Room

Jun 22, 2010

I have created a hotel booking system programme. However, I am puzzled as to how when the booking button is clicked it can search a database and find the best suited room (RoomType) and make sure that it is available (Date of Departure < system.date).

This data is held in two tables (Access):
Booking:
BookingID (Primary Key)
CustomerID (Foreign Key, Table:Customer)
Date of Arrival (Date)
Date of Departure (Date)
RoomID (Foreign Key,Table:Room) Room:
RoomID (Primary Key)
RoomType (Text)
RoomPrice (Currency)
Floor (Number)

This has all got to be done within a single button click. Any ideas as to how I can place this into my vb code?

I have a rough query for picking a room that is best suited:

Code:
SELECT roomID
FROM Room INNER JOIN Booking ON Room.RoomID = Booking.RoomID
WHERE Room.[Room Type] LIKE '" & Room_TypeTextbox.Text & "'"
AND Booking.[Date of Departure] < Now()

I have been trying for a while to get it to select a single matching record as there is a high chance that this query will return multiple records but im unsure on how to deal with that.

View 16 Replies

"No Room Is Available To Display Rows"

May 4, 2010

"No room is available to display rows." (VB .Net)

I am getting above exception when trying to set the grid property "FirstDisplayedScrollingRowIndex".

Form1 and Form2 are MDIchild form. Form1 has a datagridview, and form2 has a command button. On click of the command button the grid gets populated and everytime I click, certain number of rows get added to the grid at the end. After populating the grid i am trying to set the scrollingindex to the first row of the last set of rows added.

When form1 is closed or open and i perform the click event, the index gets set properly without giving any exception. But when I minimize form1 and perform click event, i get exception "No room is available to display rows." is getting diaplyed.

View 1 Replies

Calculating Bit Masks In VB?

Jan 7, 2009

I am trying to figure out how bitmasks are calculated in vb... I have the following constants and their bit values:

[Code]...

View 4 Replies

Calculating Commission In VB?

Apr 1, 2011

I'm really new to VB. This is only the 3 app I've created, and I'm stuck.I need to code an app that displays total commission earned on sales at different levels. The commission percentage goes up as sales go up.

Should I write a If/else/else/else/else/then statement or something else?There are 5 different commission levels in the problem. I have my interface designed, but obviously that's the easy part.

View 1 Replies

Calculating GCF And Reducing

Jan 27, 2011

I understand the basics of using VB.NET, what I don't understand is what I need to tell the computer to do. I'm supposed to create a subprogram to calculate the greatest common factor and another subprogram to reduce the fraction from the answers retrieved from the first subprogram. My teacher said something about using Mod to calculate it, and also attempted and failed to explain ByVal and ByRef parameters. I don't even know where to begin other than the parameters I have for each, and even those have a high chance of being completely wrong.[code]

View 1 Replies







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