473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to edit textbox values

hi im a newbie at vb, and i want to edit a textbox that have a defined value like a the coded value.below

Expand|Select|Wrap|Line Numbers
  1. Private Sub txtunits_GotFocus()
  2. txtunits.Text = Format((Val(cbotimeto.Text) - Val(cbotimefrom.Text)) * (Val(chkMon.Value) + Val(chktues.Value) + Val(chkFri.Value) + Val(chksun.Value) + Val(chksat.Value) + Val(chkWed.Value) + Val(chkthurs.Value)), "0.00")
  3. If txtunits.Text = "3.00" Then
  4. MsgBox "The " & (cbocourse.Text) & " units completed .", vbExclamation
  5. End If
  6. If txtunits.Text > "3.00" Then
  7. MsgBox "The " & (cbocourse.Text) & " has exceeded the required units .", vbExclamation
  8. End If
  9. If txtunits.Text < "3.00" Then
  10. MsgBox "The " & (cbocourse.Text) & " is less than the required units .", vbExclamation
  11. End If
  12.  
  13. End Sub


Pls help... thanks alot...
Mar 8 '10 #1
1 1300
Guido Geurs
767 Expert 512MB
dear,

I hope this will help you ( see attachment)

br,
Attached Files
File Type: zip how to edit textbox values.zip (1.9 KB, 57 views)
Mar 8 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jim Heavey | last post by:
Hello, I am trying to learn who to do edits inf the datagrid. When I press the "edit" button, I create a dummy row in my datatable with default values, set the EditItemIndex to the index of the...
0
by: Alex | last post by:
Imports System Imports System.Data Imports System.Data.SqlClient Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Configuration Public Class Main : Inherits Page ...
0
by: Mori | last post by:
I have a datagrid with 3 bound columns, two of them editable. The problem is when in edit mode, I just can't access the values I typed into the 'new' text boxes. Whatever I type in is not...
1
by: jason | last post by:
I've seen a few posts on this issue, but no clear solutions. I have a mulitiline textbox inside a datagrid. I use TemplateColumn to define as multiline with 3 rows. I have other field types...
7
by: Lorenzino | last post by:
Hi, I have a problem with bindings in a formview. I have a formview; in the insert template i've created a wizard control and inside it i have an HTML table with some textboxes bound to the...
1
by: cyningeston | last post by:
OS: WinXP Pro, VB/ASP/ADO.NET I'm building a web-based supplier management application. For each supplier we are required by the FDA to track certain documents. I've managed to pull them from...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
1
by: Benny Ng | last post by:
Dear All, Now I met one problem in the development of my one application. I have one ASP.NET page. It's for disply the information of customer. But now I have one new requirement. It's to...
0
by: sathyan8294 | last post by:
i am using dotnet 2003.i am doing my project in vb.net windows application.i have two form in my project.first form is datagrid .In second form label and textboxes are avilable to save the entering...
1
by: rogerford | last post by:
I have a grid which i bind with values from Database. I have events to edit and update the grid. I am not using SqlDatasource to connect to DB. Rather i am doing the updating of the grid...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.