TheSwamp
Code Red => VB(A) => Topic started by: BazzaCAD on February 08, 2007, 03:07:58 PM
-
I wont to have an Acad .NET dll show this custom popup window.
I can get it to work with a standalone .EXE, but I can't finger out how to get it
to work as an Acad DLL
Any ideas, I'm using the VB example from this link?
http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp (http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp)
thx for any help.
Barry
-
Also not that this example code is 100% .net managed code.
And the line of code that it's crashing on is the Show method:
With taskbarNotifier2
.CloseButtonClickEnabled = True
.TitleClickEnabled = False
.TextClickEnabled = True
.DrawTextFocusRect = False
.KeepVisibleOnMouseOver = True
.ReShowOnMouseOver = True
.Show("Test", _
"This is a test", _
Integer.Parse("500"), _
Integer.Parse("3000"), _
Integer.Parse("500"))
End With
-
Really no one can help?
I thought this would be easy since it's all .net code and not COM stuff....
-
VB.net ? I dont know if anyone is doing VB.Net or just C#
-
OK maybe I'll try to figure out how to do it in C#.NET There is C# example code also.
But I still have the same prob. How do I convert the following line of code so Acad can show the user form?
taskbarNotifier1.Show(textBoxTitle.Text,textBoxContent.Text,Int32.Parse(textBoxDelayShowing.Text),Int32.Parse(textBoxDelayStaying.Text),Int32.Parse(textBoxDelayHiding.Text));
Maybe I'll post in the .NET forum, but I don't' wont to get flamed for double posting again....
-
Here's a DLL that I lifted from PlanetSourceCode.com a little while back. I've also included a simple DVB that shows how to run it. Hope you can use it.
-
Cool thx, I'll give it a try.
It looks like the main think here is the CreateObject() function, which Creates and returns a reference to a COM object. So it will work with the COM .DLL you sent, but I don't think it will work for my .NET manager popup example code ;-(