473,840 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

raiseevent isssue in Windows XP

Lim
I've developed a program that raise an event. This program works fine on a Windows 2000 Professional PC. However when I try to run the program on a Windos XP Professional PC, the program will not execute the raiseevent function.

How can I resolve the problem?
Nov 20 '05 #1
2 1442
You will need to give us some more information. What happens? Do you
get an exception? What kind of event?

David

"Lim" <Li*@discussion s.microsoft.com > wrote in message
news:FA******** *************** ***********@mic rosoft.com:
I've developed a program that raise an event. This program works fine on a
Windows 2000 Professional PC. However when I try to run the program on a
Windos XP Professional PC, the program will not execute the raiseevent
function.

How can I resolve the problem?


Nov 20 '05 #2
Lim
The following is how my program works:
First I have class (clsCommFax.vb) which will create and invoke a number of threads to call a fax sending procedure which is in another class (clsFaxThread.v b). clsFaxThread.vb is inherited from a class (clsCommSend.vb ) that implements an interface. In clsCommSend.vb, I had a function that raise an event as follows:

Event InvokeSend() Implements CommInterface.C allSend

Public Function Invokesendfax() As String
MsgBox("Invoke Send Fax :>> RaiseEvent Invoke Send !")
Try
RaiseEvent InvokeSend()
Catch
MsgBox(Err.Desc ription)
End Try
End Function

When I run the program in Windows XP, the msgbox is displayed but it will not execute the RaiseEvent InvokeSend() code. There's no exception produced within the program.

As I've mentioned in my previous post, the the above program manage to run successfully on a Windows 2000 Professional PC.

Any help will be most appreciated. Thanks
"David Williams , VB.NET MVP" wrote:
You will need to give us some more information. What happens? Do you
get an exception? What kind of event?

David

"Lim" <Li*@discussion s.microsoft.com > wrote in message
news:FA******** *************** ***********@mic rosoft.com:
I've developed a program that raise an event. This program works fine on a
Windows 2000 Professional PC. However when I try to run the program on a
Windos XP Professional PC, the program will not execute the raiseevent
function.

How can I resolve the problem?


Nov 20 '05 #3

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

Similar topics

1
4986
by: Aaron | last post by:
I get the following message if I try to install to a directory that is not the default... A portion of the folder path '' is invalid. It is either empty or exceeds the length allowed by the system This is a simple structure the application directory and several custome directories under it all defined with a default location similair to this \Docs.
1
1641
by: Guille | last post by:
Hi all! I'm having some weird behaviour in a .NET application i'm developing. I'll try to explain: I've created a Class that wraps an asynchronous socket. When connect callback is called, i raise a class event : ' Create socket sock = New Socket(AddressFamily.InterNetwork, _
2
6808
by: Carl tam | last post by:
Hi everyone, I got a quite interesting problem myself and got stuck. I have an aspx page with a windows user control with it. in the Windows Control. I have a RaiseEvent statement, say OnClearAlarm, and tell the computer to RaiseEvent when I click on the Panel. in the webpage, I first load the user control, and then have a javascript function to handle the event:
3
2262
by: JeffR | last post by:
I created a user control in VB .NET and put a COM wrapper around the control so that a VB6 client could dynamically add the control to a form. The only thing I haven't figured out is if the VB .NET user control can raiseevent and have the VB6 container respond to that event. I've tried the following: <ComClass(UserControl1.ClassId, UserControl1.InterfaceId,
2
2010
by: dmoonme | last post by:
I'm trying to rename some files in a directory. Pretty basic stuff - renaming the files works fine but the problem I have is updated the text in textbox. All I want to do is appendtext to a textbox. The problem is that duplicate text occurs. Hopefully my code will explain better what I'm trying to do and what i'm doing wrong :) Thanks for your help! Public Class Form1 Private Sub btnRun_Click(ByVal sender As System.Object, ByVal e...
23
3492
by: Galen Somerville | last post by:
A VB6 ActiveX.exe raises an event which is seen by the VB6 App. Same setup in VB2005. The event to be raised is in form frmSweep. As in VB6, frmSweep is hidden when the events take place. I know by actions on the screen and sounds in the speakers that VB2005 is using the ActiveX.exe correctly. However the events are never raised !!!
7
6546
by: Onokiyo | last post by:
Hello, I have the code below and somehow the message from RaiseEvent doesn't pop up at all. Can someone help me please? '------CODE '------/form1.vb/VB2005/Framework20--------- Imports System
1
2060
by: Terry Olsen | last post by:
I have a program with a couple of long running processes that i'm calling on a separate thread. When the process is completed, I want to raise an event to tell the main thread that it's done. I set it up this way... Public Class frmLongRunningProcess Public Enum Proc ParseZipFiles = 0
10
6759
by: hzgt9b | last post by:
Using VS2005, VB.NET, I am developing a windows app. The application opens a couple of forms. While the forms are open I want to raise some events, such as logging errors - but I call RaiseEvent, nothing happens. Below are some code snippets that show what I am doing. Can someone straighten me out... I feel like this must be something real simple... '------------------------------------------------------------------------------ Public...
0
9699
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10605
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10665
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10301
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...
1
7839
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
7023
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
5685
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4498
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
2
4078
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.