Visual Basic | Help with registering growl

26 views
Skip to first unread message

Teebhar

unread,
Dec 15, 2009, 3:21:37 PM12/15/09
to growl for windows
Hi,
first I have to say that I love the style of Growl and it is great.

Thinking about using it in one of my projects, but have to say that I
usually write apps in PHP and server-side languages.

Two years ago I took a little look at VisualBasic and wrote my first
apps (console stuff :D) with the .NET framework.
Now I have more knowledge and decided to start again, now with a
combination of my knowledge.

The reason I am writing here is the registration of the app


I have modified this code :
growl.Register(application, new NotificationType[] { downloadComplete,
filePublished });

to :
growl.Register(app, .....)

my application is called app ( Dim app As
Growl.Connector.Application )
but the second parameter is my problem, hot or what to define there?
It looks like an array, but I can not handle it, please write.

Greets,
Alex

Brian Dunnington

unread,
Dec 15, 2009, 3:38:37 PM12/15/09
to growl-fo...@googlegroups.com
are you writing your app in VB.NET or VB6? since you mentioned the
.NET framework, i will assume it is VB.NET. the seconds parameter is
an array of NotificationType objects. some sample code in VB.NET would
look like this:

Dim nt As NotificationType = New NotificationType("Sample
Notification", "Sample Notification")
Dim app As Growl.Connector.Application = New
Growl.Connector.Application("Your App Name")
Dim types() As NotificationType = New NotificationType() {nt}
growl.Register(app, types)

Let me know if that gets you pointed in the right direction or if you
need any more help. also, you can download the Growl .NET Connector
SDK that contains a compete VB.NET sample app from:
http://www.growlforwindows.com/gfw/d.ashx?f=connectors/Growl_NET_Connector_SDK.zip
> --
>
> You received this message because you are subscribed to the Google Groups "growl for windows" group.
> To post to this group, send email to growl-fo...@googlegroups.com.
> To unsubscribe from this group, send email to growl-for-wind...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/growl-for-windows?hl=en.
>
>
>

Teebhar

unread,
Dec 15, 2009, 3:46:43 PM12/15/09
to growl for windows
Thanks for the fast reply,
I am using vb .net 2008 express .
The registering of the app is working now, thanks!
Can I write you emails if I have other questions?

I have downloaded the example from the dev-page on growlforwindows but
had problems with "compiling", ( is it called preparing for
interpretation? ^)it.
Reply all
Reply to author
Forward
0 new messages