# BlinkStick Flex and vb.net in Visual Studio 2017

**URL:** <https://forums.blinkstick.com/t/blinkstick-flex-and-vb-net-in-visual-studio-2017/896>\
**Category:** Misc\
**Created:** [January 17, 2018, 7:41pm UTC](https://forums.blinkstick.com/t/blinkstick-flex-and-vb-net-in-visual-studio-2017/896 "2018-01-17T19:41:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjarne.dyrup](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/b/e36b37/32.png) [@bjarne.dyrup](https://forums.blinkstick.com/u/bjarne.dyrup)\
**Post date:** [January 17, 2018, 7:41pm UTC](https://forums.blinkstick.com/t/blinkstick-flex-and-vb-net-in-visual-studio-2017/896/1 "2018-01-17T19:41:13Z")

</div>

Hi

Is there anyone who has experience with programming of BlinkStick Flex in Visual Studio 2017/2015 using [VB.net](http://VB.net)?

Can anyone give an example?

Sincerely  
Bjarne

---

<div class="post-metadata">

**Author:** ![arvydas](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/arvydas/32/242_2.png) [@arvydas](https://forums.blinkstick.com/u/arvydas)\
**Post date:** [January 18, 2018, 9:13am UTC](https://forums.blinkstick.com/t/blinkstick-flex-and-vb-net-in-visual-studio-2017/896/2 "2018-01-18T09:13:32Z")

</div>

There are a lot of examples in C# so it should be very easy to translate them to [VB.NET](http://VB.NET):

> **[arvydas/BlinkStickDotNet](https://github.com/arvydas/BlinkStickDotNet/wiki)**
>
> BlinkStick .NET interface to control devices connected to the computer

Let me know if you still have trouble using BlinkStick and I will provide some [VB.NET](http://VB.NET) examples.

---

<div class="post-metadata">

**Author:** ![bjarne.dyrup](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/b/e36b37/32.png) [@bjarne.dyrup](https://forums.blinkstick.com/u/bjarne.dyrup)\
**Post date:** [January 18, 2018, 11:43am UTC](https://forums.blinkstick.com/t/blinkstick-flex-and-vb-net-in-visual-studio-2017/896/3 "2018-01-18T11:43:14Z")

</div>

Thanks

I have tried with this code, but it causes an error with “Blinkstick.FindFirst()”.

BC30491 Visual Basic AND [VB.NET](http://VB.NET) Expression does not produce a value.

Imports BlinkStickDotNet

Dim device As BlinkStick = BlinkStick.FindFirst()  
If device IsNot Nothing Then  
If device.OpenDevice() Then  
device.TurnOff()  
Console.WriteLine(“BlinkStick was turned off”)  
Else  
Console.WriteLine(“Could not open the device”)  
End If  
Else  
Console.WriteLine(“BlinkStick not found”)  
End If

---

<div class="post-metadata">

**Author:** ![dave](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://forums.blinkstick.com/u/dave)\
**Post date:** [June 14, 2020, 9:43am UTC](https://forums.blinkstick.com/t/blinkstick-flex-and-vb-net-in-visual-studio-2017/896/4 "2020-06-14T09:43:52Z")

</div>

Hi

Has anyone as yet got any real [vb.net](http://vb.net) examples ?

I am running VS2019 - [Vb.net](http://Vb.net), cant get the VB6 examples working either- due to an automation error.

The blinkstick would be idea but just doesnt work, i could embed via the web api, little long winded but that wont allow you to set the index of the colour light, only turn all red/etc not allow me to specify which led i want to turn on / off which was the original idea

help would be good, thanks
