Alert Triggered Based On Parameter ?
Oct 15, 2011
My problem is, I have set the parameter to be 150 in the database. and the alert triggered should refer to the parameter value. if the calculation result exceeds the parameter value, it will turn the box to red colour. however, i notice that it only compares the first three number. for example, if the calculation result is 1778.99 it will turn the box red because its first three digit is more than 150. but if the calculation result is 10234.90, it does not trigger the alert. i assume it only takes the first three digit.
Here is the code for this part;
Dim total1 As Label = CType(e.Item.FindControl("total1"), Label)
total1.Text = e.Item.DataItem("inventories").ToString * 365 / e.Item.DataItem("operating_cost").ToString
[CODE]...
View 4 Replies
ADVERTISEMENT
Nov 15, 2011
I have a problem on my coding here. It should insert the new triggered alert into database but it does not work.
Protected Sub repeaterAlert_ItemDataBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs) Handles repeaterAlert.ItemDataBound
Try
stockCodeheader.Text = " Stock Code "
plcNameheader.Text = " PLC Name "
[Code] ......
View 5 Replies
Sep 20, 2010
i want to create a system that will trigger alert based on few condition, my condition is:the alert will trigger if there is a negative value for 2 consecutive years.
example:
1)negative amount for 2005
2)negative amount for 2006
here is the code that i have for now and the result only can trigger alert for one year only..
[Code]...
View 6 Replies
Oct 3, 2010
I am writing a program that has to print an alert message in a textbox if the user inputs invalid data. Invalid data would be a negative number. The textbox is the same textbox as the result would be in provided they input valid data. Here is what I have but it will not print the alert.
[code]...
View 7 Replies
Jun 2, 2011
What is wrong with this, it throws a debug error.[code]...
View 3 Replies
Oct 10, 2011
I made an object that has several properties one of which is an integer.
I put all the objects into a list, and I wish to sort that list by the integer property, with the object with the highest property at item 0, with the object with the lowest property at the highest item # ( count -1).
I made the list of that item, as in
Dim GameList as new list(of clsGame)
And I wish to do something like the following
GameList.Score.Sort()
What is the syntax to do that? I looked up the MSDN and didn't really understand what it was trying to say
View 4 Replies
Jul 13, 2011
i have used a aspx page with vb code. the page is not firing any event after some time if the page is kept idle.
any property needs to set in page attribute??
View 1 Replies
Sep 28, 2009
I am using VS 2008 and UltraGrid from Infragistics v 5.2
I have two UltraGrid objects on a Winform. While the AfterRowUpdate event gets triggered for one, it does not get triggered for the other. Here's the procedure of the offending UltraGrid event:
This does get executed:
Private Sub ugPatient_AfterRowInsert(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.RowEventArgs) Handles ugPatient.AfterRowInsert
e.Row.Cells("Courtesy_C").Value = "Mr."
[Code]....
The source file is different from when the module was built. Would you like the debugger to use it anyway?
Even if I rebuild by application, the dialog box does not go away.
View 1 Replies
Feb 14, 2011
I have a HTML page which i am converting it to DOM and in tat i am calling a function, which will find the click button in the DOM and trigger the click button. But for some reason my code is unable to find the control.[code]...
View 1 Replies
Jul 30, 2011
I'm having a really annoying issue which I can't get to the bottom of. I've got a NumberUpDown control which has a ValueChanged event. There is only one reference to it in my entire project which I have commented out to prove that it isn't calling the event. Even though the number is not being changed (the control sometimes isn't even in focus!) the ValueChanged event gets called. This is driving me crazy and I wondered if I could back track through the code to see what actually caused this event to trigger?
View 4 Replies
Dec 20, 2010
how can i know what event was triggered in picturebox in VBnet? [Code] i want to know what event was triggered whether it is .MouseEnter or .MouseLeave. the reason why i'm making this is to make the code more categorized according to the object that was used.
View 1 Replies
Aug 21, 2009
is there a way to trigger a MsgBox by clicking a button within a If and End If paragraph?
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
View 19 Replies
Sep 9, 2011
I have a control that inherits from Panel. I want to override onMouseWheel, but my code is never executed. I put a breakpoint on it, but it never gets hit.
Protected Overrides Sub OnMouseWheel(ByVal e As System.Windows.Forms.MouseEventArgs)
MyBase.OnMouseWheel(e)
.....
End Sub
The event is raised normally in the form containing my control. why this could be, or better still, how to solve it?
View 5 Replies
Feb 10, 2010
We are facing a crash issue in our application. To debug the crash issue we have directly executed the application from code.To trace the error we have removed the checked from "EnableJust My Code" options in Debugging and we have checked the "Enabledunmanaged code debugging" option in project properties Debug tab.
View 7 Replies
Mar 23, 2012
I have a combobox sub-routine that is triggered by either a "SelectedIndexChanged" or "Leave" event How can I determine which of the two events triggered the sub-routine
[Code]...
View 7 Replies
Apr 15, 2012
What event trigers when we open file with our exe/program? How to do coding for that?
View 6 Replies
Mar 11, 2010
I have a VB.Net system that connect to SQL Server through ODBC.When I try to raiseerror from an IF...ELSE statement, it does not triggered the exception handling.I have done some raise error testing at my side. Below is my finding:
1. RaiseError did not triggered exception:
CREATE PROC xxx
AS
IF 1=1
[code]....
View 4 Replies
Aug 17, 2010
I am facing a issue while using the "validating" event of the maskedtextbox. I have an MDI form, in which there is a main form and a form acting as bottom bar. The bottom bar comprises of buttons for moving to "previous" and "next" forms. If suppose in the main form i have a maskedtextbox and the initial focus is set on it, then on the click event of the button (next; which is on the bottom bar form), it calls the validating event of the maskedtextbox twice. In the validating event of the maskedtextbox, i am checking some validations and if it doesnt pass, then i set [e.cancel = true]. just let me know the reason behind the triggering of "Validating" event twice?
View 1 Replies
Dec 4, 2009
Is there any way to make a ValidatorCalloutExtender popup a standard alert box?
View 1 Replies
Jan 4, 2011
How do i create an alert using DateTimePicker1 and MonthCalendar1?
There are two seperate forms. The main one, where the one opens from and the other one where you set the date/time. And how do you integrate the notification with NotifyIcon1?[url]...
View 4 Replies
Apr 21, 2011
Following code doesnt work and raise error "A parameter is missing. [ Parameter ordinal = 1 ]".What s wrong with it?I am developing pocket pc application in vs 2008 and sqlce 3.5 sp1.
[code]....
View 1 Replies
Mar 21, 2009
I'm Trying to Call the Stored Procedure which has one input Parameter and one output parameter . VB.net code is below
[Code].....
View 2 Replies
Mar 9, 2011
I want to have a "template" function that can receive different parameter and a type parameter, like:[code]But Vb told me that tupeList is not defined... is there a way I can do that?
View 2 Replies
Aug 12, 2010
I have a textbox in a tab control and iv'e coded the textbox_leave event to show a msgbox and reselect the textbox if the text doesn't meet certain conditions.
Private Sub TextBoxChaseTime_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBoxChaseTime.Leave
If IsDate(Me.TextBoxChaseTime.Text) Then
Me.TextBoxChaseTime.Text = Format(CDate(Me.TextBoxChaseTime.Text), "hh:mm")[code].....
(Reselecting the textbox is the only way i can find to efectively cancel the leave event - is there another)
I've also added a line to also reselect the tabpage incase the textbox_leave event was triggered by selecting a different tab in the tabcontol.However, when the textbox_leave event is triggered by the user selecting a different tab the textbox_leave event seems to be triggered several times displaying the msgbox four times.why this is, but it seems to be caused by the by the line that reselects the tabcontrolhow to stop the msgbox being shown more than once Interestingly, if i add a line to change the text in the text box to meet the conditions the msgbox is only shown once, but the tabpage is not reselcted
View 2 Replies
Jan 13, 2010
I have the following functions in my ProceduresControlller:
Function Add(ByVal bpid As Integer) As ActionResult
Return View(GetAvailableProcedures(bpid))
End Function[code].....
I'm loading the Add dialog via jQuery like so:
$("#dialog").load(
"/Procedures/Add",
{ bpid: 123 }[code]....
This is failing because it's calling the Post method (where "covered" can't be empty) instead of the Get. I tried decorating the Get with <AcceptVerbs(HttpVerbs.Get)>, but it doesn't change the outcome.how do I get it to use the Get? I realize I could change the names to not be ambiguous, but I want to know why it won't pick the Get if I'm only passing "bpid".
View 1 Replies
Mar 23, 2009
I have created the following piece of code to try and see if the user pushes the 'f1' key, and if they do.
[Code]...
I am not sure if this code works yet because the keypressed event is not triggered when I push a key. Could someone tell me how I can change my code so that it will test what key is pressed, no matter what control on the form has focus?
View 7 Replies
Mar 4, 2009
I have an application that detects a power change (to standby or hibernate).
AddHandler SystemEvents.PowerModeChanged, AddressOf PowerChangeSub
When I hit the standby key on my keyboard, the power change is detected and all actions are done properly. However, when I enter the standby mode by using: Application.SetSuspendState(PowerState.Suspend, True, False)
The computer goes to stand by but the event of powermodechanged is NOT triggered.
View 2 Replies
Nov 15, 2010
I have a picture box in my form and now I want to add an event so that if the mouse is scrolled up the scale of the picture box gets larger and when the user scrolls down the size off the picture box gets smaller. This way I want to make a zoom in and out effect.So now i have the following code in the mouse wheel event of the Picture box:
If
e
.
Delta
>
[code]...
But somehow this whole mouse wheel event isn't fired.
View 2 Replies
Mar 25, 2011
I have an application with a DataGridView and WebBrowser controls. In the DataGridView I load a DataTable using BindingSource. DataTable is just a list of URLs. I use SelectionChanged event on the DataGridView to load a selected URL in the WebBrowser control. The problem I have is that when I minimize form to the tray, it for some reason triggers SelectionChange event multiple times. What's really weird is that if I minimize to the taskbar SelectionChange event doesn't get triggered. It also doesn't get triggered if I load URLs directly to the DataGridView. What triggers SelectionChange and how to get rid of it?
Public Class Form1
Dim URLTable As DataTable = New DataTable("URLs")
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim URLColumn As DataColumn = URLTable.Columns.Add("URL", GetType(String))
[Code] .....
View 4 Replies
Nov 22, 2010
I have a load sub with a few declarations isorry for thn it as so: [code] But when the TimeFrom_dtp.ValueChanged code is executed, the Time From_dtp.Value isn't correct as it hasn't been set yet. If I change it round so the TimeTo_dtp.Value is set first then that doesn't work because the TimeFrom_dtp hasn't been set yet? How can I get it so that the ValueChanged code isn't triggered until I've set all the values of my datetimepickers?
View 5 Replies