Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,
Can anyone help me please.
I am trying to build a GUI that can run a 3 axis CNC router, just very simple and basic.

I don't' want it to draw/compile G-Code. I will have G-Code generated/scripted in just text files (80 - 90 lines), so I want to build a GUI form in VB6.0 where I can just paste and save the the G-Code text file and with a run button on GUI I want to be able to run the CNC router.

So, I will need free hold for manual movements to jog controls and homing functions to home all 3 axis.

So, just simple form that I can create from scratch or botch together from other similar working GUIs to customise mine.
I am wanting this GUI to functions like this.

Please see the image following this link;

Shared album - Vis Kataboman - Google Photos[^]

I would much appreciate if anyone can help me please.

Thank you in advance.

What I have tried:

I have tried nothing so far, just thought process at the moment.
Posted
Updated 12-Mar-23 10:15am
v3

Besides getting rid of VB6 because there is no reason at all to be starting new development with it over 20 years after it became obsolete. The VB6 runtime will be no longer supported at the end-of-life of Windows 11, which is currently the end of 2025 last I heard.

Visual Studio community edition is free from Download Visual Studio Tools - Install Free for Windows, Mac, Linux[^] and supports VB.NET! Though, VB.NET isn't really long for this world either since it's not getting new features anymore. It would behoove you to move to C#.

The "hold buttons" are easy enough. Create your own Button control that handles the MouseDown, MouseUp, KeyDown, and KeyUp events and exposes its own events, like ButtonDown and ButtonUp. When either the mouse or a key is held down while the button has the focus, raise the ButtonDown event so your application code knows to do something, and a ButtonUp event when it should stop. This makes it far easier to use the buttons without cluttering up your main app code.
 
Share this answer
 
In addition to what DK says in Solution 1, I'd go so far as to be quaint and risk a labelling of cp "rustic" by conditioning any further extrapyramidal response to your inner machinations wrt to CNC and G-code by telling you to save your pennies so that you can eventually spring
spring for VStudio 64-bit standalone. You'll be able to COMPILE both VB and C#. Because:
CNC Graphical Backplotter[^]
then you'll be able to see the code which the author of that article uses to make his understanding of the nuts & bolts driving of such a hardware setup and get a grip on how to use a modern language to phone in your task requirements.

Pedantic, I know, but outlining a cp concept of grave importance.
 
Share this answer
 
1998 ... what a year! I remember when I got my copy of VB6 25 years ago! I still remember the first version of VB for DOS back in 1992! I also remember PDS, QiuckBasic, QBasaic, and GWBasic... Then there were the variants from other companies like PowerBasic.

Why are you using a fossil language when no one else is? Time to modern up and get with the times and update to a more current version where you can get support.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900