Visio 2003 SDK, Office Plan sample

S

Sorin-Emanuel

Office Plan sample application is an excellent stuff.

However I am desperately looking for a Visual Basic translation of this
sample. Does anybody know about something about that ?

(There are some statements in C# I can't understand)
Especially those related to event processing.
Thanks Sorin-Emanuel Ghetaru.
 
S

Sorin-Emanuel

I'll read the articles. However I have to use Visual BAsic .NET and
Visio 2003.
This afternoon I focused on:
NET Framework Developer's Guide
Event Sample.
Helped me a lot too. But I am confised about the VB equivalent for

if (OnShapeAdd != null) {
// Raise an OnShapeAdd event for each shape in the queue.
while (shapeAddedQueue.Count > 0) {
OnShapeAdd(shapeAddedQueue.Dequeue(), new EventArgs());
}
}
else {
// There are no event listeners so just empty the queue.
shapeAddedQueue.Clear();
}
In \Visio11\Sdk\Samples\OfficePlan\CSharp\EventSink.cs\

Thanks Sorin-Emanuel Ghetaru.
 
A

Al Edlund

if (onshapeadd<>null) then
while (shapeaddedqueue.count > 0
onshapeadd(shapeaddedqueue.dequeue(), neweventargs())
else
shapeAddedQueue.Clear()
end if

al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top