My custom Control displays a TextBox when a key is pressed (basically to allow for numeric input). It's easy enough to show the TextBox from inside the KeyDown event on the main control, but how do I pump the keypress into the textbox?
...
In spring it is possible to do this. Does anybody have code samples?
...
Hi folks,
At one point in my code, i subscribe to the following event :-
UploadFolderMessageQueue.ReceiveCompleted += UploadMSMQReceiveCompleted;
works great and when the Message Queue's Recieved Completed event fires, my delegate handles it.
Now, I'm wanting to CHECK to see if the event has been subscribed to, before I subscribe to...
C# is still not OO enough? Here I'm giving a (maybe bad) example.
public class Program
{
public event EventHandler OnStart;
public static EventHandler LogOnStart = (s, e) => Console.WriteLine("starts");
public class MyCSharpProgram
{
public string Name { get; set; }
public event EventHandler OnStart;
publ...
hi everyone,
i am writing an event driven simulation program. i have 3 subclasses that inherit 1 base class. i need to generate those three randomly and each subclass will go through different event path (sorry its a bit hard to describe what i meant), ill give an example:
let say we have a car park simulation at a mall, we have the ba...
Hi, I am developing a site for Apple iPad. In this, how can I apply shadow on mouseover and how to remove on mouseout? Like HTML a process, or any other way available with Javascript, I am using jQuery here.. any advice?
...
I'm trying to generate _TLB import units for Outlook 2003, 2007 and 2010 (and also other OLE servers) analogous to the ones bundled with Delphi for Outlook 2000 and 2002. However, I couldn't get the type library importer to also generate the code for capturing events from the OLE servers that is found in the bundled units. The option to ...
Hi!
I've simplified the HTML and Javascript.
The HTML structure
ul -> li -> a
The javascript
var $ul = $('#the-list');
$ul.find('a').click(function(e){
e.stopImmediatePropagation();
console.debug('a');
});
$ul.unbind('click').click(function(){
console.debug('ul');
});
The problem
The first time a link is clicked, e...
Can anyone provide an example of how to write a callback instead of using an event to communicate between two classes (objects) in Actionscript 3.0?
...
Hello everyone,
I have this scenario:
A windows forms application, which contains:
a QTabControl (from Qios DevSuite) created in design view;
a QTabPage created programmatically;
a geckoWebBrowser inside the QTabPage, created programmatically as well.
The problem:
I have 2 events in the QTabPage:
QTabPage.MouseDown - executes pe...
Hi friends,
I have created scroll view in my view controller and set the buttons in the scroll view. I have set the scroll view between the two images. The buttons are scrolling horizontally. Now i want to enable and disable the images. For Eg: Initially left images are to be hidden, once moving the button horizontally and enable right ...
I have a main window:
public class MainPanel extends JFrame implements MouseListener {
public MainPanel() {
setLayout(new FlowLayout());
setDefaultCloseOperation(EXIT_ON_CLOSE);
addMouseListener(this);
ChildPanel child = new ChildPanel();
add(child);
JPanel spacer = new JPanel();
spacer.se...
I am trying to alert the user when they leave the shopping page with cart filled up. And also get feedback or the reason for their exit.
I need to get event source id because to know whether they exit my site or navigate by clicking a link in my page.
Any one help me on this...
...
How can i capture the browser events like 'window close', 'back button pressed' using javascript or any other client script.
Is there a way to capture the events when clicked outside the document.
...
Hi
I am trying to create buttons at runtime. My Question is that How should I add an Event to each of the buttons at runtime mode also?
For example:
Button btn;
int i =0;
int j =0;
List<Button> listBTN = new List<Button>();
private void button1_Click(object sender, EventArgs e)
{
btn = new Button();
btn.Location =...
First of all, I know there are excellent implementations (Qt, Boost, cpp-event, etc.), but I ask the question because I want to know how it works !
If I understand correctly, the "event system" uses the Observer pattern : some objects are observing, waiting for something to happen... and some others send signals. All right.
So, let's s...
I am trying to set up a proper way to do automatic versioning for my C# projects in .Net.
The requirements are:
the assembly is to be built only when is is not up to date. (normal behaviour in Visual Studio and via MSBuild)
When it is built the assembly is to get the proper version assigned.
I have found a solution to give me the ve...
Dear experts,
I am currently working on a WYSIWYG web editor.
The problem i ran into is a little complicated.
When I select a section of text and click on something on my tools, the command works but immediately the text becomes unselected.
Just like when we select text in any webpage, when we click on something else, the text become...
I have an implementation of IPostLoadEventListener which converts DateTime properties from UTC in our database to the user's local time zone.
This works fine when working with NHibernate entities using Session.Get, but I can't find a way to get Linq for Nhibernate to observe the event listener, which means the DateTime properties on any...
I am developing a COM dll library, and I have a little vb.net (vs 2005) application just to test it.
I had my object declared in the application as
Private m_VarName As MyLib.CMyComClass
So far, so good.
But now, I need an event to inform the application of some things, so I implemented such event in the COM dll, and changed the...