Questions tagged [raiseevent]

76 questions
0
votes
2 answers

vb.net winform from a usercontrol call a function on the parent form

I don't know how to put it right, but I have a vb.net winform app in which I want to use a customcontrol so I can re-use the logic on multiple forms. I know how to set values in this control from the parent (using properties in the control). But now…
Stephan
  • 463
  • 2
  • 7
  • 22
0
votes
3 answers

Simulating a link click webbrowser control vb.net

I am trying to make my application click a link that is inside a page loaded in a web browser control but nothing seems to be happening. Clicking manually on the link works (it performs some javascript command to load an data using ajax). I cannot…
Osprey
  • 1,523
  • 8
  • 27
  • 44
0
votes
2 answers

trigger an event from another control

I'm using vb.net and winform. I am coming across an issue which I'm pounding my head against for the past few hours. I have a main usercontrol which I added a groupbox and inside that groupbox, added a control like this: main…
Calvin
  • 631
  • 5
  • 17
  • 38
0
votes
1 answer

pass datarow from a different form using multiple RaiseEvents

I've got two forms. frmProject has an ultragrid of system rows. When I double-click on a row, it opens frmSystem, displaying textboxes populated with details from the active row on frmProject. I want frmSystem to load the same values as that…
No1fan
  • 5
  • 6
0
votes
3 answers

Is there any case in which the Form's Activated event is not raised?

I don't understand why it could be that, I thought Activated should be raised when the form is shown. In fact my form has TopLevel set to false and it's added to another form. When the main form shows, it's also visible, and I can interact with its…
King King
  • 61,710
  • 16
  • 105
  • 130
0
votes
2 answers

WPF Event raised by UI or from code?

how can I find if an event is raised by UI or by code? I need to recognaize if Value of a slider is changed by the user from UI or has a new value from the executed code? Thanks!
Parisa
  • 196
  • 2
  • 11
0
votes
1 answer

Perform code-behind Function/Sub from javascript (VB.NET)

In my project, there are 3 user controls; BasicContact, BasicDetail and ActionTime. They are in EditOrder.aspx page. There is "ReportDate" property (Date type) in BasicContact, RadioButtonList "rdl_Priority" (with integer value from "prio_id" field)…
Pawich S.
  • 375
  • 6
  • 20
0
votes
3 answers

WPF TextBox RaiseEvent

I have some validation code that uses masking and the PreviewTextInput and PreviewKeyDown events on a textbox. When I change the value in the textbox manually the validation works perfectly. When I set the values programatically the valdation…
Nathan Tornquist
  • 6,468
  • 10
  • 47
  • 72
-1
votes
1 answer

How can I raise an event with its original effect in WPF?

I know that I can use RaiseEvent to raise an event, like raise a MouseDownEvent on a button. I use the mouse to click on a Button. It has a MouseDown effect (like background change to blue), but I use RaiseEvent. It just does the MouseDown function,…
Frank Tom
  • 1
  • 2
-1
votes
1 answer

Issue raising a simple event

My interface has an event that don't has an arguments public interface IMyInterface { event EventHandler OnSomethingHappened; } Here is how I am implementing it. public class MyBaseClass : IMyInterface { private event EventHandler…
paul deter
  • 857
  • 2
  • 7
  • 20
-1
votes
1 answer

Use a RaiseEvent statement to raise an event VB.NET

I get this error: Error 1 'Public Event NewFrame(sender As Object, eventArgs As AForge.Video.NewFrameEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. …
John Nuñez
  • 1,780
  • 13
  • 35
  • 51
-2
votes
1 answer

Static event tries to declare non static instance

I am/was trying to create an event that my main form can subscribe to. This class will eventually be larger, it is for doing info/warning/error info to Windows event viewer (have not done that part yet) but it also sends to the form information. I…
Nyra
  • 859
  • 1
  • 7
  • 27
-2
votes
2 answers

How to Raise Event in WP8

How to Raise Event in WP8 As title, in WP8 there is no RaiseEvent() method. So, I can't do something like that. I need to activate an event in code. Please help me!
-2
votes
2 answers

Trying to Raise an event when the enter key is pressed

OK so here's my code so far. Module Module1 Public Event count() Sub Main() AddHandler count, AddressOf MyFunction Console.WriteLine("to start the countdown process type go") Console.ReadLine() If e.KeyCode = Keys.Enter Then …
-3
votes
1 answer

RaiseEvent on C sharp

I know there is a lot of information about RaiseEvents on internet, but I can't understand them, somebody can help me with a simple example on C#. Thanks very much.
MagnunStalin
  • 94
  • 1
  • 9