Two Texts Boxes Where User Can Enter Pay Per Hour And Expected Raise % Per Year
Jan 25, 2011
i have two texts boxes where the user can enter pay per hour and expected raise % per year.when the calculate button is clicked it calculates yearly base on a 40 hour and 52 week base. the raise increases each amount after the first year and does it for the next ten years. yearly amount is displayed for the next ten years.
View 3 Replies
ADVERTISEMENT
May 6, 2009
I wrote a VB.NET Windows Service, which works fine. I have only one issue with it. I want the service to execute on the half hour and top of the hour marks (e.g. 9:00, 9:30, 10:00, 10:30, 11:00, etc etc etc). I am using the following code:
Protected Overrides Sub OnStart(ByVal args() As String)
' Add code here to start your service. This method should set things
' in motion so your service can do its work.
[CODE]...
This code works, however, if the service starts at, say, 10:15, then it executes at 10:15, 10:45, 11:15, 11:45. How do I make it so it always executes on the 30 minute and top of the hour marks?
View 4 Replies
Nov 2, 2011
This is my follow up question to my earlier topic about Memory management.Now I believe I have good code that gets me the results I want. The main application form has a Label field which tells the user to wait with message "Getting the data from the AD Database......". I am noticing that the "Wait" message is up for too long. However, once I get the data, it is processed fast and loaded into the DataGridView.
I would like the user to have a better feedback than the stardard "Wait" cursor. Is there a better way to show how much data (records) were fetched during the data aquisition phase and present it to the user? This would allow the user to guess how much longer he has to wait to complete the data fetching.
View 3 Replies
Apr 12, 2010
I need to be able to raise different types of audio notifications to the user. I need an "ok" and an "error" type sounds, I was hoping to be able to raise a simple beep and a critical stop type sound but I can only find the Beep() command which doesn't allow for differing sounds. Is there a library that does what I need or will I need to roll my own using the system wavs.
View 3 Replies
Jun 12, 2012
So let's say I have 1400, I want to convert it into 2:00PM I tried the following:Dim convertedTime As String = DateTime.ParseExact(theTime,"HHmm", Nothing)
And it would give me this: 6/12/2012 02:00:00 PM
I do not want the date part, neither do I need the seconds. All I need is 2:00PM
View 3 Replies
Mar 13, 2009
I have done this the other way many times as it makes sense (the page knows about the control as it has been added to the page and can handle the 'child' event)
Is it possible to do it the other way? I think not as the control doesn't know what page it is going to be on
The reason i ask this is that I have a modal popup on the page to ask users to login, and it is only when the user has logged in that I want my user control to go away and execute some code but I am not too sure how to tell the control this has happend?
View 2 Replies
Aug 4, 2011
I am new to vb.net and I have looked at other topics. I cannot find the answer I need. OK I have a combobox named cboRaceDesc and five checkboxes (CkRaceAfricanAmerican, ChkRaceAmerican Indian, ckRaceAsian, ckRacePacificIslander, and ckRaceWhite). I was going to post an image, but I cannot.cboRaceDesc has two options...Hispanic and Other. If the user selects Other then they have to choose one of the five checkboxes or it will raise an exception when the record is being saved. I am assuming I would generate the code under the "save" button. I know I need to gather the following information in my code:
If cboRaceDesc.SelectedValue = Other Then
<I am not sure how to code the logic regarding the checkboxes>
<I know I need to use multiple else/else if statements>
<I know towards the end I would generate the exception>
End
Can anyone help me fill in the blanks or point me in the right direction?
View 1 Replies
Jan 26, 2010
i want to insert booking_no as combination of year and sno(year/sno) into database here iam giving the code as follows,,,,,,,,,
here sno stated from 1.........
Dim conn As New SqlConnection(ConfigurationManager.ConnectionStrings("guest1").ConnectionString())
Dim booking_no, sno As String
If Len(sno) = 1 Then
[code]....
but here booking_no was not inserted properly,it was inserted as "0/ ",,iwant to insert booking_no as "2010/sno" ,
View 2 Replies
Jun 12, 2011
how to validate the day if the selected year is a leap year in combo box.
View 1 Replies
Feb 9, 2011
How do you ask the user to enter in 3 different integers?
View 17 Replies
Sep 26, 2009
How do I make it that the user must enter a number between 1 and 100? And If they dont they get an OK messagebox stating that they must do.I imagine it'll be something like this:
If TextBox1.Text = "" Then
MessageBox.Show("You must enter a value between 1 and 100", "Name Entry Error", _
MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
End If
But Im not sure whats suppose to go inbetween the speech marks.
View 4 Replies
Nov 12, 2011
Using MVC, EF 4.2. I am working on an application that has a comment section. Right now if a user enters a comment that contains HTML e.g.<b>text</b>and hits submit i get the message "A ptentially dangerous Request.Form value was detected..."How do i handle html on the way into the db? Should I just strip the html? Or encode it? I tried server.htmlencode the text but i still had the same error message.
View 4 Replies
Aug 5, 2010
How can I prevent the user to enter characters but only numbers and '.' in a textbox in vb.net 2005?
View 4 Replies
Jan 15, 2012
My textbook mentions nothing of it except for the example where me is in the code.'This event handler allows the user to enter the island choise 'and then calls subprocedures to place the island activites in the list.
Dim intIslandChoise As Integer
intIslandChoise = Me.cboIsland.SelectedIndex
lstTours.Items.Clear()[code].....
View 2 Replies
May 24, 2010
If we format a value for percent "{0:#%}" then it will become 400%, and this also applies to all the 3rd party controls I've tried. I've used custom format as a workaround for this but perhaps you guys could enlighten me on this one. If a user inputted 4 for example then did the user intended 4% or 400%? If it were me that I would expect the 4 to be 4% rather than 400%.
View 11 Replies
Jun 5, 2009
i want the user only enter text value in texbox. I use this code to do but it gives me a error.
[Code]...
View 10 Replies
Oct 26, 2011
I need to write a program allowing the user to enter up to five passwords at one time. I have the textboxes set the way I need. When the user presses the button, the code should check every password they ve entered, and flag any passwords that are invalid. A valid password includes the following:
At least 6 and not more than 15 characters
At least one uppercase alpha character
At least one lowercase alpha character
At least one numeric character
I'm a little confused about how to check each character of the entered passwords for these conditions.Because it must include alpha characters, I believe I have to do something with ASC and CHAR variables. This is my first post and I need to have this done within a few hours, haha. Help would be awesome.
View 3 Replies
Jun 12, 2011
i guess the title pretty much states the question but i will give the senario to be more clear. i have a mousemove() event which i add in my program programmatically and i need a way for raising that event (again) programmatically too. raiseEvent control_mousemove() doesn't work as it says that "'control_MouseDown' is not an event of 'main'."
[Code]...
View 4 Replies
Nov 16, 2009
I dont know how many times user want to enter data .i want to add a new row at the end of arrray everytime user enter the data.
Dim vNames(-1) As String
For vIndex = 0 To vNames.Length - 1
vNames(vIndex) = InputBox("Enter a Name")
[code]....
View 1 Replies
Mar 17, 2010
I have a DatagridView control. I have 4 columns. What I want to do is allow the user to add rows and enter data into the grid and then click a button and save the data in the Gridview to a table. I can't find any information on how to do this
View 4 Replies
Sep 25, 2010
how to check if the user enter alphabet in textbox the only allow in that textbox is number
i think i will use ascii there like in vb 6.. but i dont know how to done in VB 2008..?
View 5 Replies
Nov 5, 2009
5. Create a program which will allow the user enter ten numbers. The program is to count how many numbers were above 50?
View 1 Replies
Mar 2, 2010
In reading various answers regarding "masked TextBox Control, am I to assume that the masked textBox control uses a mask to determine what characters the user can enter into the control?
View 1 Replies
Jan 26, 2010
The user can enter text into the system but I want to detect if the previous string entered is the same as the next string entered. if it is an error message or something will appear.
View 4 Replies
Jun 22, 2010
When I use this code to open a new form, My maskedtextbox on the new form can't allow the user user t enter any text. This has slowed me down a bit.
Dim F2 As New FrmStudentRegistration()
F2.TopLevel = False
Controls.Add(F2)
F2.Show()
View 1 Replies
Dec 6, 2009
I just want to alert when user hit "enter" key.
I tried this one in keyup event,
If e.KeyCode = Keys.Enter Then
MsgBox("msg")
End If
It didnt work, is that wrong ?
View 5 Replies
Mar 12, 2012
If IsNumeric(Hundreds.Text) Then
HundredsTotal.Text = (CDec(Hundreds.Text) * 100).ToString("##,##0.00")
DollarAmtVar = CDec(HundredsTotal.Text)
[CODE]..
The above code is from a small program I have written. This test is done on about 30 textboxes I am using for the user to enter number.
The following is the sub routine that is called.
Sub ShowError()
MessageBox.Show(BoxName & " must be a number.")
End Sub
Here is what I want to do but it won't work.
BoxName.Select()
This is so I can put the focus on the different boxes that might contain an error.
View 4 Replies
Mar 17, 2009
I'm looking for what will allow the user to be able to use the Enter key to exit a TextBox control.
View 5 Replies
Aug 22, 2010
I'm trying to figure out how to prompt a user to enter a captcha. Some programs out there have a little popup with the captcha image and a textbox, the user then enters the characters from the image and the captcha is solved by the user of the application. When I try to request the image directly, it gives me a different image than the one currently in the webbrowser control. Any ideas how I can create the pop up of this captcha image for the user to enter?
Note : . I'm looking for a way to prompt the user to enter a captcha from website.
View 6 Replies
Jan 15, 2012
I have an autocomplete textbox in vb.net. It is working fine, but now I need to pop up the window again when the user hits enter or double clicks. So far, I know that when the user hits enter, the keydown event raises with e.kecode = 13. I guess my code would go here. My problem is how do I tell autocomplete to start again after the user hits enter??
View 11 Replies