News:

When replying to a specific statement be sure to quote the previous post.

Main Menu

Active Drawing

Started by Cliff2, September 26, 2013, 08:08:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cliff2

How can I make the active drawing to be active? Using TCV16pro and Visual Studio Express 2010.
This is my code...

If TCApp.Drawings.Count = 0 Then
            TCDraw = TCApp.Drawings.Add("")

        Else
            TCApp.Drawings.Item(1).Activate()
        End If
Thank you,
Cliff

Cliff2

For those that are interested this is the code that worked. Thanks for all the help.
If TCApp.Drawings.Count = 0 Then
            TCDraw = TCApp.Drawings.Add("")
        Else
            TCDraw = TCApp.ActiveDrawing
        End If