←  Technical Questions

nanoCAD forum

»

how to set focus NanoCAD with VB.NET?

Mucip İLBUĞA's Photo Mucip İLBUĞA 08 Jul 2024

Hi,
I have VB.NET exe program and has button on GUI.
When I press the button it creates line

Dim nokta1 As Object
Dim nokta2 As Object

nokta1 = utilty.GetPoint(, "1. Noktayı seç")
nokta2 = utilty.GetPoint(, "2. Noktayı seç")

mSpace.AddLine(nokta1, nokta2)


But when I press the button I need to click on NanoCAD screen in case of set focus on NanaoCAD from my Exe program.

I could not find th way to set focus on Nanocad after button click from my exe program?


Regards,
Mucip:)
Quote

Mucip İLBUĞA's Photo Mucip İLBUĞA 09 Jul 2024

Hi,
Any feedback please?

Regards,
Mucip:)
Quote