How To Implement AutoCAD Color Chooser In External Application - vb.net

Goal
I want to be able to access AutoCAD's Color chooser from an external application. This means that I will not be using AutoCAD to make the color chooser dialog popup. Instead, I will be using a VB.Net application to manage these colors.
Current Situation
As for now, I have no idea where to start. Do I need to import a specific library to make this work? Is it even possible to do this without AutoCAD running?

.NET has a basic built-in color picker control if you want to drive outside of AutoCAD:
System.Windows.Forms.ColorDialog
You'll likely need a helper class/extension methods for converting ARGB colors to AutoCAD colors. Although may find it better to just roll your own. Use IlSpy, DotPeek, or .NET Reflector to look at how the AutoDesk class gets instanciated/used.

Related

VBA draw a box on another application

I'm writing an implementation of the windows UI automation client in VBA and that's going pretty well. But I would like to be able to draw a simple box around the UI element of another window. I'm aware of the inspect.exe application, but was wanting to recreate some of its functionality in VBA for instances where company policy restrictions prevent me from installing any 3rd party applications. Code I've written myself can be copy and pasted from a paste bin account.
Is there something in the windows API or a reference I can import that I could use to draw a box on top of another screen at specific coordinates for a second or two? I'm trying to limit this project to just things that come with an out of the box windows installation.

3D-Blocks in Visual Studio UWP

We have a request to create 3D blocks both in cube format and curved formats and place them on a C# VB app. We need the ability to change the colors of the blocks based on some back end code.
It appears from my research that there may be a way to "fake" it with some perspective views in VB or I need to turn to a 3rd party program.
Does anyone know how a person would go about creating 3d blocks inside VB?

VB.NET - Change system colors (Windows Colors) via application

Ok, so I have been trying to figure this out for a few days now, but I'm not sure if VB supports this functionality. I'm sure C includes some sort of support for what I'm attempting do do with :
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724940%28v=vs.85%29.aspx
But basically, I'm trying to alter the systems colors. For example, change the colors of the "Active Title Bar" or the "Desktop". I know there is a way using SystemParametersInfo to change the desktop image, but I'm pretty sure there's no method for altering the system colors. If anybody has any suggestions, I'm open to trying anything.

How to animate group of images in winform application using VB.Net

I am trying to load bulk images and trying to put them as a slideshow and it's working fine.
Now I would like to have some effects like flip out,ease out effect and fade effect on those images when changing them without using any user control as I would like to do with the existing picturebox.Is it possible to do so?
If so can anyone point me to some resources.
As I have done googling and found some useful links and I am placing here that might helpful to someone.And all these have use seperate usercontrols to do, and I am not looking into that.
http://code.google.com/p/dot-net-transitions/
http://www.codeproject.com/KB/cpp/fluid_effect.aspx
The built-in picture box has no such capability. Your solution will require custom-drawing regardless what control you use (assuming you don't get a 3rd party product).

How can I include Flash in VB.NET?

I would like to create a .exe wrapper for a Flash Player using VB.NET. I am having a few problems.
1.I seem to remember being able to import Flash Player as a control into Visual Studio (2008 Pro). For some reason, I can't seem to VS to import it anymore. (I tried using the OCX from Visual Studio) Perhaps I'm looking for the wrong file. What file am I looking for?
2.Is including Flash inside of a VB program legal?
3.When a control is included in a VB.NET program (such as Flash) does the control need to be distributed in a separate file, or will the compiled application contain it in the ".exe"?
Thanks.
edit:
I was able to import the control as the Flash10b.ocx from c:\Windows\System32\Macromed directory as a COM component. Question 2 and 3 still remain.
Edit 2:
Is there documentation on the ActiveX control? I am trying top figure out the API for ExternalInterface. Any tips on that?
Using flash inside a VB program is perfectly legal, it is just an activeX control.
You will need to distribute the interop library with your application (it will be in your output directory) and the ActiveX object (flash10b.ocx) will need to be installed on the system, it wont package it all up for you.