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
ADVERTISEMENT
Dec 1, 2011
Calculating Carpet Room Area
CODE:
View 3 Replies
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
Oct 26, 2010
I need to create a program that rolls a dice a user generated number of times and give the frequencies of the numbers that come up.I cannot for the life of me figure out how to get the frequencies?
View 5 Replies
Apr 8, 2011
I have a class set up to hold values on a registration form (VB.NET, MVC), and among the properties is a Password property:
[Code]...
View 3 Replies
Sep 2, 2009
Was wondering if anyone had an example of where / how i can download cover art based on artist / song name. I used to download an xml file from amazon ... but this is no longer supported by them
View 1 Replies
Feb 3, 2012
how i get just cover(no tags) picture of a mp3 file in vb.net?
View 1 Replies
Feb 2, 2010
I cant not get my faxdoc to send a cover page? I can not figure this out. Please help!!!
I have tried.FaxDocumentObj.CoverPageType = FAX_COVERPAGE_TYPE_ENUM.fcptSERVER
FaxDocumentObj.CoverPage ="C:Documents and SettingsabbyDesktopFax Coversgeneric.cov"
and this FaxDocumentObj.CoverPageType = FAX_COVERPAGE_TYPE_ENUM.fcptLocal
FaxDocumentObj.CoverPage =
"C:Documents and SettingsabbyDesktopFax Coversgeneric.cov"
Is there a way of setting the local path if I use Type Local? Can a cover page be something other than .cov? I was hoping to use .rtf. The only thing that will allow me to send is None and I don't get a fax cover page..
View 8 Replies
Feb 16, 2012
Any body who have an experiences of have make the song player with picture cover for file extension like .mp3, .mp4, .avi, and .3gp. This will to complete my song search tiny project. I've been tryed to read any thread but not enough information and some turtorials source code got an error code and file references. First of all we clicking on Add Song button and then we choose the song file like .mp3, .mp4, .avi, or 3gp After insert the song files already. Next we go to clicking on Add Image button to choose the favorite image so the image will be shown on Picturebox the last we click on Save done.
[Code]...
View 1 Replies
Jun 11, 2009
I've made some changes to code in order to add rows to a database and now am unable to download the cover image from Amazon.
Here's the code:
Try
'---get the book cover image as a byte array---
Dim ms As New System.IO.MemoryStream()
picCover.Image.Save(ms, picCover.Image.RawFormat)
[code]....
View 2 Replies
Sep 11, 2011
I have a program and wish to generalise its appearance at startup on different machines. This worked OK until I moved it onto a Windows 7 unit with a 22" screen. The front page covers less than 2/3 of the screen. I know I've asked the system for 'working area' but could not find a reference to the entire screen which other applications seem able to use. How can I catch up with them? The code is from VB in VS2005. Is this my limitation?
[Code]...
View 4 Replies
Nov 18, 2011
I want to make a form fullscreen and cover including the taskbar. Can anyone help me with this?
[XCODE]
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
Me.WindowState = FormWindowState.Maximized
Me.TopMost = True
End Sub
[/XCODE]
View 3 Replies
Aug 15, 2010
I want to make a software for game zone when running user should only see the form and also how to remove closebox.
View 1 Replies
Jun 13, 2012
This is a problem like the puzzle - "find minimum number of coins to completely cover a piece of paper".
The difference is:
in my case RADIUS of the coins is variable (but all coins should have same radius).
Real scenario:
1. I need to draw circular shapes on a rectangular image.
2. Number of circles (N) is CONSTANT/ User input
3. Size of image (S) is CONSTANT/ User input
4. The program should find the MINIMUM RADIUS (R) that is needed to draw N number of circles on an image of size S, so that, the image is completely hidden behind the circles.
This is NOT a puzzle/assignment that I'm trying to solve.This is part of a larger project that I'm working on.
I don't need any drawing code. I just need the code/algo to find the radius.
View 22 Replies
Mar 26, 2012
You did it very good and i will ask you step by step to fulfil my knowledge and keeping it as the sample for the learners who love to know the Visual Basic language especially with the song program. Could you please add the cover picture to audio file path in Add A New Song Form as in the picture below.
View 1 Replies
Dec 30, 2010
i'm using VB 2010 and i'm trying to make a transparent images but without success .i draw 2 GIF pictures in Photoshop and save it as transparent.i put that GIF's in 2 pictureboxes on the form and the background of the pictures is really transparent, but when i try to put one picture in the top of the other one, the first picture cover the second one with the background color (and becuase it's transparent it's like the form color)
View 2 Replies
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
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
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
Aug 1, 2011
I'm using a TabControl and have overridden the DrawItem event to produce my own background and foreground colors for the header text. It looks good but there's still grey color around each header. I thought maybe the Padding property could be set to (0,0) but that seemed to have no effect.
View 2 Replies
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
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
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
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
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
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
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
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
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
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