Updated: 26/07/2005; 23:15:08.
Hannes 'Shorty' Decorte's Radio Weblog
Learning .Net and the Experiences doing so


zaterdag 23 april 2005

Some interesting MSDN articles about using the Visio Drawing Control in your apps.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vis2003_ta/html/odc_vsprogrammingwithvisioactivexcontrol.asp

http://msdn.microsoft.com/library/en-us/odc_vis2003_ta/html/odc_vsEmbedVisioViewerControl.asp

And offcourse if you want to know how to do something is Visio by code you can allways record a macro (just like you can in most of the Office apps)

But for example showing and hiding the Shape Window is not recorded in a macro, but here is an MSDN article how to issue command to Visio via code.


11:05:28 AM    comment []

The bad news is you can't!

If you put you a Visio Drawing Control on a form and press F5 to debug, you'll get a COM error on the EndInit line.

But that doesn't mean you can't use the control. What I did was first fire up the application without debugging. (Via executing the app in the bin directory or via the Start without debugging menu item)

Then when the control is loaded, attach the Visual Studio debugger to the process via "Attach To Process" menu item.

Offcourse this still means that while debugging you open a form with the Visio Drawing Control on it, you'll still get the error. You just can't be in debug mode while the control is loading.


10:51:34 AM    comment []

How to get reference to a control (e.g. DropDownList) in the header of a Wizard Control in ASP.NET 2.0.

The control can't be referenced directly cause it is in a template. So you have to find the header of the wizard control and look in there.

This is the code to get to a control in the header.

DirectCast(Wizard1.Controls.Item(0).Controls.Item(0).Controls.Item(1).Controls.Item(0).Controls.Item(0).Controls.Item(0).Controls.FindControl(“MyDropDownLists”), DropDownList)

Not to hard, but certainly not elegant either.

I changed the Wizard Control a couple of times to see if the code would continue to work. And it does. But you don't hear me saying that no matter what change the code will work. 

Here is an interesting article about finding controls in controls like Repearer, Datagrid, ...

 


10:44:49 AM    comment []

© Copyright 2005 Hannes 'Shorty' Decorte.
 
April 2005
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Mar   May


RSS Feed


Other .Net Bloggers

Bart De Smet
Jan Tielens
Patrick Verbruggen
Patrick Tisseghem
Tom van de Kerkhof's Bloggings
Tom's Corner
Yves Hanoulle

Aggregated Feeds

Belgian .NET Bloggers