Questions tagged [raiseevent]

76 questions
0
votes
2 answers

JAVA - Best way for raising event

I have a question regard design of my little IRC Framework, just for learning JAVA event and observer.. First question: http://en.wikipedia.org/wiki/Observer_pattern#Critics The Observer pattern is criticized[6] for being too verbose, introducing…
0
votes
1 answer

When RaisePropertyChanged actually gets executed

c# ,VS 2011 ,Silverlight 4. when RaisePropertyChanged("...") actually gets executed A, B, or C (see below) if I have a C# method public void OnSave() { RaisePropertyChanged("my property"); (A) is it executed here or (B) after the…
ramnz
  • 631
  • 1
  • 6
  • 24
0
votes
2 answers

How can I RaiseEvent in VB.net

I have 2 project in my Solution. Lets say Proj A and Proj B. Proj A is having my custom event. and same Proj is Raising that event using RaiseEvent Function of Vb.net And Proj B is having reference of Proj A. Proj B is adding handler for Proj…
Jaynesh Shah
  • 158
  • 1
  • 1
  • 14
0
votes
1 answer

Raising form event

I have been finding that “Windows Forms App (.NET Core)” projects lack the functionality of normal “.NET framework” apps. I'm specifically using .NET Core 3.1. I want to be able to raise a form event on an object, but cannot find a way to do this.…
Dakusan
  • 6,504
  • 5
  • 32
  • 45
0
votes
1 answer

RaiseEvent from a UserControl that's placed on a UserControl that's on a Form

I have a Windows Form that contains a custom control container as a UserControl. For the sake of this question, this custom control container is called Dashboard. This container called Dashboard contains numerous other controls depending on their…
Jason N. Gaylord
  • 7,910
  • 15
  • 56
  • 95
0
votes
1 answer

How to raise an event when object created

Why event handler dose not respond to the event when the object created when I tried to raise a private event at the same way the private event raised and handled as expected Public Class Form1 Dim WithEvents nClass As Class1 Private Sub…
Mo Khalefa
  • 536
  • 1
  • 5
  • 7
0
votes
1 answer

RaiseEvent triggers a "Debugger.Runtime.CrossThreadMessagingException"

I have a class in VB.NET that has a method (called CurrentValue) that returns a number. There is also an event that the class raises to indicate the number has changed. In the event handler on my form, I update a textbox using the exposed…
Nelson Hoover
  • 159
  • 4
  • 13
0
votes
1 answer

Handling property changed from another class in vb.net

I have a class like below which contains my global variables as property. I made this "ModelFullPath" from variable to property because i dont know how to raise events with the variable changes.(If you have more logic suggestions i'll…
user8666372
0
votes
0 answers

How to raise an events when global variable changed in vb.net

I've global variables in module level with below COM-interface types. Imports System.IO Imports simpackcomslvLib Imports simpackcompostLib Module Globals Public Srv As SpckCOMApp Public Mdl As IScrModel Public Post As PostComApp …
user8666372
0
votes
1 answer

How to fire WebBrowser RaiseEvent in console application c#?

So basically I'm trying to fire WebBrowser's RaiseEvent from console applicaton but it does not work. In WinForms project it works well, so I'm just wondering what I have to do to make it work in console app. Is this even possible? This is how I…
0
votes
2 answers

VB.NET calling event handlers by reference

Coming from Deplhi I'm used to be able to call event handlers directly from an instance using a simple Button.OnMouseOver([arguments]) Now I'm on VB.NET and I can't find a way to fire the handlers of an event without the event actually being…
des
  • 67
  • 1
  • 8
0
votes
0 answers

Button on usercontroll doesn't fire / raise event

i have a usercontroll with two buttons and i want to get the raiseevent in the page where i call the usercontrol. Everything works fine except that i can't catch the event when i click the button on the user contol. my markup for the uc: <%@ Control…
Alex S.
  • 156
  • 2
  • 11
0
votes
1 answer

WebKit .Net RaiseEvent/Click equivalent

I'm experimenting with the WebKit .Net component in an application. Usually with the standard WebBrowser component I can select an element by id and then raise an event on it using the RaiseEvent method or, for clicks, simply use the Click method.…
JoeR
  • 1,901
  • 3
  • 25
  • 39
0
votes
0 answers

After conversion to VB Public Shared Event Idle(sender As Object, e As System.EventArgs)' is an event, and cannot be called directly

I have converted my Face Recognition App to VB and it is giving an error which I am unable to resolve... Public Sub initialise_capture() grabber = New Capture() grabber.QueryFrame() 'Initialize the FrameGraber event If…
0
votes
1 answer

Raise Event Vb.net from worker Thread

I'm looking at a console app for vb.net. I'm trying to get a worker thread to raise an event to the main thread to display data on the screen (the word "HIT" everytime the worker thread completes a cycle). My code is below. I'm not sure why but the…
Steve Short
  • 85
  • 1
  • 12