msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to use MergeSynchronizationAgent.Status event

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
carol



Joined: 04 Oct 2007
Posts: 2

PostPosted: Wed Jul 12, 2006 2:37 pm    Post subject: How to use MergeSynchronizationAgent.Status event Reply with quote

I'm trying to display the status for my merge synchronisation. the code that
does the job are as following:

Dim subscription As MergePullSubscription
Dim agent As MergeSynchronizationAgent
agent=subscription.SynchronizationAgent
agent.Status += New AgentCore.StatusEventHandler(AddressOf StatusHandler)

but it gives me the error of "Public event Status cannot be called directly.
Use RaiseEvent to raise the event".

I've looked some sample code, the syntax is same as what i've done. The
namespaces i've used are Microsoft.SqlServer.Management.Common and
Microsoft.SqlServer.Replication. Have I missed anything?

Thanks in advance for any help!

Carol

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Jeff Johnson



Joined: 04 Oct 2007
Posts: 1327

PostPosted: Thu Jul 13, 2006 1:23 pm    Post subject: Re: How to use MergeSynchronizationAgent.Status event Reply with quote

"carol" wrote in message @microsoft.com...

> agent.Status += New AgentCore.StatusEventHandler(AddressOf StatusHandler)

This is a VB "classic" newsgroup. Questions about VB.NET (including VB 2005,
which has dropped .NET from its name) are off-topic here.

Please ask .NET questions in newsgroups with "dotnet" in their names. The
*.vb.* groups are for VB6 and earlier. If you don't see the *.dotnet.*
groups on your news server, connect directly to the Microsoft server:
msnews.microsoft.com.

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Event log When writing to the eventlog from VB6 the source becomes "VBRuntime", is there any way to change that to the name of my own application? regards Betina

MouseLeave event Hi All! I would like to have a label object change it's color (highlight) when the user moves his mouse over this label. That's fairly easy, I can do that in the MouseMove event (happens too often, but ok, it works). But how can I restore it to its origin

global event when every text control reveces focus it must change the background color to vbred and when it looses focus it must change the color back to vbwhite is there a way to do this without writeing sub sub for each control? Th

controlling a change event I have a code attached to a "change" event that executes after an unrelated pivot table refresh button. Since it isn't expected to execute at that time, I get error messages and failures. I'm a SAS programmer and not very familiar with VB. Naturally, t

DHTMLPage_Load event not firing I am trying to set up a test application using a VB 6 DHTML application. I have created aDHTMLPage and a code module. The module has a sub event, but when I run the project in VB that event is never reached. My form is set as the start
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group