473,791 Members | 3,186 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calculation in visual basic....

I am trying to build a program for the first time in Visual Basic. I work
for a public utility and we will use to track our crews during large outages.
It is a simple program with 16 lines of text boxes and a check box. I also
have the current time listed using the timer function. I would like for the
program to do three things:

1) Time stamp a time text box when text is edited or the check box is
checked.
2) Change the font on the entire line when the check box is checked.
3) Set of some kind of alarm (i.e. flashing font or sound) when a check box
has been checked for more than five minutes.

I am fairly new at this so any help would be appreciated.
Thanks,
Dustin
Jul 10 '07 #1
1 1439

Everything you're trying to do is around events that are attached to
controls. Presuming you are using Visual Studio (2003/5), if you click on a
control (say a check box), then click on the little lightning bolt, this
gives you a list of events that are fired when that action takes place.
Double click on the event you want and it automatically creates a blank
function for you to populate.
For 1), simply reference the value found in DateTime.Now and store it
somewhere
for 2), you'll need a reichtextbox control to change the font, or you can
change the background colour of a textbox to highlight it
and for 3), you need to set up a timer control for each textbox/checkbox
combination that you enable when the checkbox is checked and that goes off
every x seconds and checks if the check box was ticked 5 minutes ago (since
you have the time it was checked from 1).

google "vb.net events" and "vb.net timer" and you'll find tonnes of stuff.
good luck.
Dan.

"Dustin" <Du****@discuss ions.microsoft. comwrote in message
news:87******** *************** ***********@mic rosoft.com...
>I am trying to build a program for the first time in Visual Basic. I work
for a public utility and we will use to track our crews during large
outages.
It is a simple program with 16 lines of text boxes and a check box. I
also
have the current time listed using the timer function. I would like for
the
program to do three things:

1) Time stamp a time text box when text is edited or the check box is
checked.
2) Change the font on the entire line when the check box is checked.
3) Set of some kind of alarm (i.e. flashing font or sound) when a check
box
has been checked for more than five minutes.

I am fairly new at this so any help would be appreciated.
Thanks,
Dustin

Jul 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6963
by: pix | last post by:
Hello, I would like to start learning Visual Basic, and I was wondering if there are any recomendations to any ebooks, or actual books for that matter. I have my eye on this book by John Smiley, any comments/suggestions would be greatly appreciated.
2
4240
by: AK | last post by:
I don't want any part of the previous discussion on Visual Basic versus Visual Basic.Net. My query is about using Visual Basic for Applications; and whether it is better to use Visual Basic 6 or Visual Basic.Net as a springboard for studying VBA. I use Office 2000 and would like to use VBA as a tool to customize it. I have zero programming experience. I would like to read through and work on the examples of a beginners
7
10310
by: Amanda | last post by:
Help, I am new to visual basic programming and I was wondering how to allow a textbox to do a calculation by pressing enter ie I want to type the following into a textbox 25.2 * 2 press enter on the keyboard and the textbox to display 50.4 Any Ideas ???????
2
4884
by: frossberg | last post by:
Hello! I tried to install the Visual Basic.NET Resource Kit (http://msdn.microsoft.com/vbasic/vbrkit/) but obviously something went very wrong and now it sems impossible both to repair and to remove (to start over from scratch) the installation. The messages popping up after choosing one of these two alternatives Repair/Remove Visual Basic.NET Resource Kit in the Visual Basic.NET Resource Kit Setup Wizard are in each case respectively: ...
3
1384
by: Dale Reed | last post by:
We're having a lot of problems getting visual studio to calculate even the most basic arithmetic correctly. For example: Dim MyValue AS Double = 2.155 * 100 This should give me 215.5 right? Wrong. It gives me 215.499999999999999997 Change it to 1.155, it works. 3.155 it works. 2.155 it doesn't work.
4
2163
by: sqlguy | last post by:
Why do we have to contact MS for a problem that has been with this compiler from at least the beta of VS 20005. I am so sick and tired of the 30 - 40 clicks it takes to dismiss VS when there is a problem. Can they not just post the fix. I see no reason to contact MS since I have most likely sent about 1500 dumps to them and I would think this would get their attention.
97
5549
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in the first place. Anyone else heard about this development? The Master
2
1290
by: rak53820 | last post by:
pls give java code for this Calculation : Premium for 1 year (For members who have joined the group before policy issuance): Basic Premium (A) = (Basic Rate * SA/1000 or SA/100000Round up(Basic rate * Sum Assured/1000 ) where basic premium includes Premium +Stamp Duty. ) Service Tax (B)=) =Round...
11
1655
by: yourstonight | last post by:
Hi everyone! I'm currently working on a project where I have no idea where to begin because I'm really bad at programming and thus, the reason why I'm posting here. To start off with, my project supervisor wants us to use the following programs: 1. Visual Web Developer 2. Visual Basic 3. SQL He wants us to come up with a code that allows users to enter a equation but the variables can be randomized, meaning...
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9517
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5435
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.