|
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, _
|
by: Nicolas |
last post by:
How do I do a RaiseEvent in csharp
I'm ok in VB but csharp confused me a lot.
******* code ********
private FileSystemWatcher watcher = new FileSystemWatcher();
public delegate void Changed(WatcherChangeTypes exch);
public delegate void Created(string fileName);
public delegate void ReCreated(string OldName, string newName);
public delegate void OverRun(string Message);
|
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:
|
by: Lim |
last post by:
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?
|
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...
|
|
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
|
by: Martin |
last post by:
Hi all,
I'm having a problem when trying to raise an event in my custom control when
a toolstripbutton enable state changes. The problem is that although the
code to raise the event executes, my handler never see it.
This executes when the button enable state changes:-
Private Sub OnPrintToolStripButton_EnabledChanged(ByVal sender As Object,
ByVal e As System.EventArgs)Handles PrintToolStripButton.EnabledChanged
|
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
|
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...
|
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...
|
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,...
|
|
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...
|
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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
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...
|