Questions tagged [raiseevent]

76 questions
0
votes
1 answer

Raising Me.Click in a custom user control (VB.Net)

Hi, I've been working on a custom control library for all my applications, but I also want it to be Open Source, so it needs to be easy to use. I want to use the Me.Click event so when you click on Panel1 (Panel) or BtnText (Label) it will raise the…
Marco
  • 53
  • 1
  • 6
0
votes
2 answers

Event not Firing in MS Access VBA

I have a form in MS Access which has an image. The image has an Click event which opens a modal form. The modal form has an OK and Cancel button. When you click the OK button, an event is supposed to fire which tells the main form which button…
Tim
  • 1,621
  • 4
  • 19
  • 35
0
votes
2 answers

MySQL create "before insert" trigger failing and raising errors in triggers

I have successfully created an insert before trigger on a table using the innodb engine which "throws" an error by performing an insert on a non-existent table. The problem is that as I try to run the database create script on the production server…
Turcogj
  • 151
  • 1
  • 8
0
votes
1 answer

RaiseEvent didn't raise when called by Deserialized function in vb.net

i have a serializable class Public Class SACCVar Private _ConsigneCompression As Integer Public Event VariableChanged(ByVal Val As Object, ByVal Old_Val As Object, desc As String) Public Property ConsigneCompression As Integer …
got_fr
  • 39
  • 8
0
votes
0 answers

Need a 'RaiseEvent' statment to raise an event

I have a page on the website that display a client details in text boxes. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not page.IsPostBack Then Dim dh As New Datahandler Dim…
0
votes
1 answer

Event Handling an Abstract Class

Basically, I have a custom child form class which has events that will be passed to the parent. In the custom child form, I have a declaration of a "MustInherit" class that inherits the DevExpress User Control Class. The reason for this, is I have…
instantmusic
  • 608
  • 1
  • 6
  • 18
0
votes
2 answers

How Can I RaiseEvent Manually For A FileSystemWatcher

I have extended on the FileSystemWatcher class to incorporate a FolderCount monitor and FolderEmpty monitor that raise events if a folder reaches a specified amount of files or if a folder returns to an empty status. I seem to have this working and…
Riples
  • 1,167
  • 2
  • 21
  • 54
0
votes
2 answers

How do I raise a button click event for my class

I have created a class to hold other objects. I need each object to be clickable. The following code works when I click on the objects using the mouse. However, I would like to simulate a mouse click by raising the mouseclick event from another…
John
  • 1,310
  • 3
  • 32
  • 58
0
votes
2 answers

How do I get the object that called (executed) my vb.net subroutine inside my object?

I'm trying to extend my new WPF Touch Screen Keyboard (DLL) Library, to allow the user to get events from the Touch Screen Object. I'd like to be able to tell the Programmer what Object made the call (or executed the subroutine) that raised the…
JustinKaz
  • 620
  • 3
  • 10
  • 30
0
votes
2 answers

Facing an issue while accessing declared event in vb.net

Facing an issue while accessing declared event in vb.net. Please go thorough below example. (I have modified below stuff to make understable as it is part of one of custom control development) Public Class Main Inherits ComboBox 'Event…
user3711357
  • 1,425
  • 7
  • 32
  • 54
0
votes
0 answers

Javascript raiseEvent for jQuery

I am looking for the alternative to the following piece of code, because it will only work in IE and not in Chrome: window.opener.frames[ "forms_frame"].document.getElementById("forms_applet").raiseEvent("DocumentReady", message); I have found…
Robert
  • 39
  • 7
0
votes
2 answers

how to fire a click_button event from nested ascx before page_load of the aspx on postback?

i have an aspx with usercontrol1 and inside usercontrol1 is usercontrol2. in usercontrol2 i have a button, which what i want to happen is when this button is click, on postback i want to fire first the button_click event before going to page_load…
sd4ksb
  • 241
  • 1
  • 4
  • 16
0
votes
2 answers

Cannot capture button onclick event on usercontrol

Its been 4 hours since i thought "How can i trigger my event from a usercontrol's button click?" and the answer came very fast : "i can caputre the button's click event and raise mine from there!" and after 4 hours of debugging and debugging and…
lauCosma
  • 154
  • 10
0
votes
1 answer

How to implement C# multicast delegates in VB

Unfortunately the online free translators are unable to convert the following code: AppDomain.CurrentDomain.AssemblyResolve += CurrentDomainAssemblyResolve; I need the vb.net RaiseEvent equivalent syntax for this. Many thanks
0
votes
1 answer

How to notify a user (UI) from BLL and get their response?

Using VB 2008 .NET 3.5 I am working on an N-Layer desktop application. Suppose a method in the BLL runs into an situation where the user needs to be notified and the method needs to wait for the user input (OK, Cancel, etc.) before continuing. How…
Casey Wilkins
  • 2,555
  • 2
  • 23
  • 31