473,779 Members | 1,964 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with event messaging between 2 classes

Hi,

I've got troubles with event messaging between 2 classes.
In a WinForm, a DataGrid has a ComboBox. I need to use the SelectedIndexCh anged of the cbo to perform some DB updates.
ComboBox is done by a component that exposes 2 classes: DataGridComboBo x that inherits from ComboBox and
DataGridComboBo xColumnStyle that inherits from DataGridColumnS tyle.

In DataGridComboBo x I declared an event: Public Event ppSelectedIndex Changed()
This event is raised by DataGridComboBo x_ SelectedIndexCh anged

In the client code(the WinForm code) an instance of DataGridComboBo x is declared WithEvents: Private WithEvents oDataGridComboB ox As DataGridComboBo x
At this time, if I select the object DataGridComboBo x, I can see the event ppSelectedIndex Changed in the list.

Then I write a sub to handle the event:
Public Sub oDataGridComboB ox_ppSelectedIn dexChanged() Handles oDataGridComboB ox.ppSelectedIn dexChanged

When the code run, the SelectedIndexCh anged event is fired and fires ppSelectedIndex Changed, but the
oDataGridComboB ox_ppSelectedIn dexChanged event handler is not executed.

I also tried to use the AddHandler, AddressOf mechanism, but with few success either!

Can someone help be solve this trick?

TIA,

Philippe
Nov 20 '05 #1
0 892

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
8000
by: Pete Loveall | last post by:
I have a server application that monitors a private local queue for messages. The message sent to it has a label and a response queue defined. It works correctly when the queue is accessed via another program. However, when I attempt to Send a message from an ASP.NET VB page, I get "One or more of the passed properties are invalid." I have tried different combinations of the non-transactional Send() with no success. My Windows\Temp...
1
4440
by: CLEAR-RCIC | last post by:
I have a piece of code that works in C# but when I convert it to VB.Net I get the following error: "Cannot deserialize the message passed as an argument. Cannot recognize the serialization format." C# Code ----------- System.Messaging.MessageQueue myInputQueue = new System.Messaging.MessageQueue(@".\Private$\InputQueue"); ((XmlMessageFormatter)myInputQueue.Formatter).TargetTypes = new Type{typeof(Order)};
4
5616
by: Bob Rock | last post by:
Hello, I was wondering if callback delegates, called in response to a event, are executed in their own thread. I was suspecting the OS might spawn a new thread and have the delegate execute in that thread but having written a small sample application this does not seem to be happening. I'm writing an application that will be receiving messages from a Tibco RV messaging bus and from MSMQ and that will also have to handle those messages...
5
3215
by: Robbert van Geldrop | last post by:
Hello, We run a very stable and well functioning ASP.Net 1.1 webservice using WSE 2.0 sp 3. Every now and then the following error appears in the system event log: HTTP/ASMX Message Receive Failure: System.Xml.XmlException: This is an unexpected token. The expected token is 'EndElement'. Line 1, position 4387. at System.Xml.XmlTextReader.Read()
2
2418
by: Budhi Saputra Prasetya | last post by:
Hi, I managed to create a Windows Form Control and put it on my ASP .NET page. I have done the suggestion that is provided by modifying the security settings. From the stack trace, I would assume that the code throws exception when it is trying to retrieve the processes list that has certain name. Below is the code that I use to retrieve the processes. Process processes = Process.GetProcessesByName("xxxx");
0
2064
by: Budhi Saputra Prasetya | last post by:
Hi, I still have the same problem with embedding Windows Control. I'll just requote what I posted last time: I managed to create a Windows Form Control and put it on my ASP .NET page. I have done the suggestion that is provided by modifying the security settings. From the stack trace, I would assume that the code throws exception when it
1
4163
by: halekio | last post by:
Hi all, Please bear with me as I've only started programming in C# 2 weeks ago and this is my first contact with OOP. I ran into a situation where I needed to catch an event in an object that had no connection or reference to the object that triggered it. It goes something like this: (not syntactically correct..it's just for the idea)
2
2025
by: jparulan | last post by:
Hi All, I am developing web service that does not use IIS, I was successful on deploying a normal web service with System.Data and System.Web namespaces. BUT when I added the System.Messaging and deploy my windows service - I am getting this error while accessing the ASMX test form * I have tried the following already. 1. Remove and Add the System.Messaging from "Reference" 2. System.Messaging does exist from the GAC.
4
2244
by: Mark | last post by:
Hi, I'm relatively new to Java, but have been a programmer for decades. I would like multiple instances of my Java app (on different computers on the same local LAN) to communicate with each other through notifications of some sort. For example, when instance 1 does a certain action, instances 2, 3, and 4 should be notified about it so they can react accordingly. I'm unaware of existing Java classes that deal with this sort of thing,...
0
9633
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10305
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9928
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8959
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7483
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.