Unable To Complete In Roughly 15 Mins Give Or Take?

Jan 8, 2012

after reading a topic that Chris Rutland wrote about student in final year (link)[URL]...So i was able to complete this in roughly 15 Mins give or take. it also said multiples of three and five. Which i would have understood as 3 * 3, 5*5 as so on, but when I thought about it they would never match within 1 - 100 so I took I must have misunderstood so I then done it as 3 + 3 and 5 + 5 and so on. Which would then give matches for FizzBuzz. So my question is from my code below what would you do different. Could any of you write this with less lines and if so how.

[Code]...

View 3 Replies


ADVERTISEMENT

Writing The Code To Start Clock At 4o Mins & Count Down By 1 Second To 0 Mins?

Dec 10, 2009

I am having trouble writing the code to start clock at 4o mins & count down by 1 second to 0 mins, have MessageBox("time up"), then go to minus time , e.g. -5:22.

View 13 Replies

Unable To Use Auto-complete TextBox Correctly?

Sep 13, 2010

I have a small problem with my AutoComplete Textbox in that it doesn't replace what I type with the item from the drop down list. This is hard to explain so I will start off with the AutoComplete of the combobox and how it works.

If I create a combobox with the following listitems (pay attention to case as this is the actual problem)

Item1
Item2
Production1
Production2

Now I can set my AutocompleteSource to ListItems and when I begin typing into a combobox I get a list of matches (Using SuggestAppend)So if I type i (lowercase) I get a list containing Item1 and Item2 with tem1 added and selected for overtyping in my combobox text. Now if I press Tab or Enter, My combobox.text is updated with Item1 with the proper casing from the list even though I typed a lowercase i. This is not how it is working in the textbox. Using the following code:

Dim mySource As New AutoCompleteStringCollection
mySource.AddRange({"Item1", "Item2", "Production1", "ProductionItem2"})
TextBox1.AutoCompleteCustomSource = mySource
TextBox1.AutoCompleteSource = AutoCompleteSource.CustomSource
TextBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend

When I begin typing in the textbox, again, the list drops down. And again, when I type a lowercase i, I get a list containing Item1 and Item2 with tem1 filled in to my textbox. Now if I press enter or tab, my textbox is filled with item1 instead of Item1 as it did with the combobox.

My question is:Is there a way to ensure that the text in the textbox matches the actual case of the item in the customsource? I can click the item in the dropdown and it appears in the textbox just fine. But I don't want to force my users to have to do that.

View 6 Replies

Reset The Time To Say 00:00:00 (hrs:mins:sec)?

May 20, 2009

I want to create a Timer such that I can reset the time to say 00:00:00 (hrs:mins:sec) and be able to stop, reset and start the timer as needed. I have actually created one from the scratch but it seems like it is long on code. Any ideas on how best to do this?Only performance counts!

View 19 Replies

VS 2008 Counting Down From 30 Mins?

Feb 7, 2010

I've done what I thought was a lot of work with DateTime and Timespan but what I am trying to do now I cannot figure out. It seems simple enough but I can't think of the code I need to make it work >.<

Currently I am using a timer to tic on 1000ms to count down a timespan. However, what I would like to do is set a timer for 30 minutes. I would like to display the minutes:seconds of the timer on a label and perform actions when the minutes and seconds are specific values, say minutes = 5 AND seconds = 0 to perform an action when the timer reaches 5 minutes exactly.

My goal is to have a 30 minute timer that performs actions at specific times, then when the timer reaches 0:00 it restarts at 30:00 This seems like such a simple task but I cannot for the life of me figure out where to start.

View 5 Replies

Hide Form1 For 15 Mins Before It Shows?

Jan 11, 2009

how to hide form1 for 15 mins before it shows ((In VB 2008)) but it is still running?

View 5 Replies

Whenever Run Application And Close It / It Stays In Memory / Pops Up Again After Approx 5 Mins

Dec 14, 2011

I have developed a application on vb.net platform. After installing, whenever I run the application and close it, it stays in the memory and pops up again after approx 5 mins.

View 2 Replies

Using Timespan To Calculate Hours, Mins And Secs From Secs?

Apr 27, 2009

23430 seconds = 06:30:30 (hh:mm:ss)52230 seconds = 14:30:30 (hh:mm:ss)The problem occurs when my total seconds goes over 24 hrs. So for example,95430 seconds should equal 26:30:30 (hh:mm:ss) however comes out at 02:30:30.Here is the sample code, note I have tried using TotalHours, TotalMinutes TotalSeconds however this does not give the correct result. I potentially need to be able to calculate upto 1000 hours - e.g 3601839 should equal 1000:30:30 (hh:mm:ss)

Dim ts
As TimeSpan = TimeSpan.FromSeconds(95430)
Dim hours

[code].....

View 6 Replies

VS 2008 - Website Scanner - Scan A Website Every 15 Mins

Apr 6, 2009

What I want is: To scan a website every 15 mins or so, (craigslist in this case), and email myself any new posts that come up. I know I need to use WebClient, but I never used that before. Another question would be how to only email when a new post is up and not receive the same email every 15 mins.

View 2 Replies

Give An App Its Own Sandbox?

Jan 11, 2010

How can I make my program operate in a sandbox for security? I am using Visual Basic 2008 Express.

View 6 Replies

How To Give A Header

Oct 15, 2009

i am new to this forum, hope u people will help me out.i need to add header to a text file which is created using my code.

View 4 Replies

How To Give A Thread A Name

Jul 23, 2011

I have a question. I'm using visual studio 2010 and I am making a windows application and I set the framework for the app to .net 3.5..I have some threads in my app and when I run it on my output screen it says: ' The thread '<no name>' (0x***) has exited with code 0 (0x0).Does anyone know how to change the '<no name>' ? MatthiWare N°1 .NET Freeware & Shareware site! Title: Project leader, Owner @ MatthiWare Current project: MW Virtual Desktop Contact: Admin@matthiware.net.ms Website: MatthiWare " MatthiWare... What else?!? "

View 2 Replies

App Freezes When Should Give Error

Aug 24, 2009

I have a datagridview which fetches data from a local SQL server. Now, I have a setting called My.Settings.database_url which indicates the hostname of the SQL server.

Now, the problem is that if the host name is incorrect, instead of getting an error, the app just freezes. So what must I change in order to fix that?[code]...

View 2 Replies

Give A Message As Modal?

Jun 23, 2011

Sometimes the app is working in a long time process, and I wnat to tell the user something like "Wait a moment, please"

I though to use a modal form but if I show this form, the process I said is not initiated.

How can I give this kind of messages?

View 3 Replies

Give A Value To Multiple Variables?

Aug 12, 2009

Is there a way to give a value to multiple variables (integers in this case), instead of all at once?

For instance, I have Dim aceVal, twoVal, threeVal, fourVal, fiveVal, sixVal, sevenVal, eightVal, nineVal, tenVal As Integer and, pending listbox selection, I'd like to assign threeVal fourVal and sixVal all values of -1.

View 3 Replies

Give Different Variables In Strings?

Mar 9, 2011

I need to create a variable which can symbols for only "1, 2, 3, 4, 5, 6, 7, 8 or 9 " so that I can use to check for a certain text.[code]...

View 9 Replies

Give Int Value To Text In Combobox

Nov 30, 2009

I have a 2 combox's with the following items, Excellent,Good,Average,Fair,Poor in them and a textbox with a user defined numeric value

I would like to be able to do the following:

perform a calculation based on values in each box , example

combox1 = Excellent
combox2 = Good
textbox = 1000

[Code].....

View 3 Replies

Give Messagebox A Timer?

Sep 30, 2009

I'm trying to figure out how to give Messagebox a timer. I found that people said i need to make a new form with a timer, How do i go about doing that?

Public Class IntegerMath
Private Sub BtnIntMath_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnIntMath.Click

[Code].....

View 2 Replies

Give Scroll Bar To A WPF Treeview?

Apr 1, 2011

I have used the

<ScrollViewer CanContentScroll="True">
<TreeView ...>
</TreeView>
</ScrollViewer>

but not properly working I want a new one

View 2 Replies

Give The Dtpicker Date - 1?

Aug 25, 2009

Now using VS 2008

Before I used VB 6, now I Upgraded to VB 2008.

VB6 Code

sdate = DateToString(dtpicker1 - 1)
edate = DateToString(dtpicker2)

Above code is working fine.

After Upgraded to VB 2008

sdate = DateToString(dtpicker1._Value)
edate = DateToString(dtpicker2._Value)

If I Put

sdate = DateToString(dtpicker1._Value - 1)

It is showing Error.

How can I write a code like dtpicker1 - 1

View 3 Replies

Gridview : Give Underline To Each Row?

Oct 7, 2010

I have a grid view in my application i want to give underline to each row i dont want entire border to be shown?

View 4 Replies

How To Give A Pagefeed To The Printer

Jun 22, 2010

:idea:I'm a bit stuck I wrote a printing part.But cant find how to preform a pagefeed

rivate Sub PrintBTN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintBTN.Click
copieen = 1

[code]......

View 2 Replies

How To Give Filters To DataGridView

May 2, 2012

I have a DataGridView to display the content of my database. I Queried the required fields to a Dataset and Used this as DataSource for the Datagridview. Now i want to add dropdown filters to each column as we see in Excel Sheets. Is it possible and how.

Any how i require dropdown for the columns i also tried from below link to set the BindingSource.Filter = value but i did not find this property for Datagridview[URL]..

View 6 Replies

How To Give Focus To A Process

May 25, 2009

how do you give focus to a file open with process.start?

View 7 Replies

No Value Give For One Or More Required Parameters?

Dec 5, 2010

Dim Sql = "UPDATE employee SET [password]='" + TextBox2.Text + "', [Question]= '" + ComboBox1.Text + "', [Qans]= '" + TextBox4.Text + "', [employeeName]= '" + TextBox6.Text + "', [employee_MI]= '" + TextBox7.Text + "', [employeeLname]= '" + TextBox5.Text + "', [Birthdate]= '" + DateTimePicker1.Text + "', [Occupation]= '" + TextBox11.Text + "', [Address]= '" + TextBox12.Text + "', [Gender]= '" + ComboBox2.Text + "', [CivilStatus]= '" + ComboBox3.Text + "', [Citizenship]= '" + TextBox8.Text + "', [Telephone]= '" + TextBox9.Text + "' WHERE username = " + TextBox1.Text + ""

[code].....

View 3 Replies

VB 2008 :: How To Give A Lbl.X An Integer Value

Dec 18, 2009

This is a part of my code of a VB GUI

[Code]...

how do write the value of the integer TotalPrice to lblPrice ?

View 3 Replies

Application Should Give Indication While Shut Down?

Jan 9, 2011

I need to set my application to save entry (e.g LoggedOff) to database if application shuts down abnormally, like power failure or anything else like that.

What event should be fired to achieve this?

View 2 Replies

Button Property To Give 3D Appearance?

Dec 25, 2010

I am a beginner who used to use VB5 seven years ago, but am now trying to get up to speed using Visual Basic .NET 2010 Express in XP.

A difference I have noted is that in VB5 my buttons appeared to be three dimensional (raised) due to shading, etc. With VB2010 my buttons are plain 2D. I have not been able to find a property to give them the 3D appearance.Is this a limitation of using VB Essentials? If not, what properties give buttons the appearance of 3D?

View 1 Replies

C# - Give A Specific Name To Column In Linq

Oct 18, 2011

I have following query,

[Code]....

how to do it in linq queries ??? also is it possible to combine firstName and lastname in select query in Linq ? just like we do in SQL Queries like : select me_first_name + ' ' + me_last_name as 'Full Name' from me_employee how can i achieve this task in linq?

View 3 Replies

Give A Treeview Background Image?

Oct 4, 2011

I've heard this is possible, and my code to mimic this possibility is not throwing an error but it's also not a part of the intellisense architecture.

[code]...

View 2 Replies







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