geekuskhan

- friends
104 link karma
2,168 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Five-Year Club

    Secret Santa
    2010

    Verified Email

Having trouble listing com port in menu strip by geekuskhanin visualbasic

[–]geekuskhan[S] 0 points1 point ago

It worked thanks so much for your time.

Having trouble listing com port in menu strip by geekuskhanin visualbasic

[–]geekuskhan[S] 0 points1 point ago

Wait I just realized that the code in my last comment may be a different version that what you were commenting on. Let me try that first.

Having trouble listing com port in menu strip by geekuskhanin visualbasic

[–]geekuskhan[S] 0 points1 point ago

Unfortunately not, below is the entire code. If I comment out

AddHandler dropDownItem.Click, AddressOf OptionClick

It will run and the com ports are there but obviously nothing happens when I select them.

I have been using a regular combo box for now, but it would be nice to have everything nice and neat in a settings instead of in the form all the time.

Imports System
Imports System.ComponentModel
Imports System.Threading
Imports System.IO.Ports

Public Class Form1
Dim myPort As Array 
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    myPort = IO.Ports.SerialPort.GetPortNames() 

    For Each port In myPort

        Dim dropDownItem As ToolStripItem = commportlist.DropDownItems.Add(port)
        AddHandler dropDownItem.Click, AddressOf OptionClick

    Next

End Sub


Private Sub OptionClick(ByVal sender As Object, ByVal e As EventArgs)

    Dim itemClicked As ToolStripMenuItem
    itemClicked = CType(sender, ToolStripMenuItem)
    MsgBox("You have selected the item " & itemClicked.Text)

End Sub

End Class

Having trouble listing com port in menu strip by geekuskhanin visualbasic

[–]geekuskhan[S] 0 points1 point ago

VB 2008 Express. I just installed it from Microsofts site. If there is a new version I would be glad to install that.

Trivia night debate. by a_drivein Charlotte

[–]geekuskhan 1 point2 points ago

I like trivia at Revolution, I just don't think there is room.

Having trouble listing com port in menu strip by geekuskhanin visualbasic

[–]geekuskhan[S] 0 points1 point ago

Thanks for the help. I have tried many variations on this and the most common error I get is :Error 1 'Click' is not an event of 'Object'.

Which is what I get when I try this:

    For Each port In myPort

        Dim dropDownItem = commportlist.DropDownItems.Add(port)
        AddHandler dropDownItem.Click, AddressOf OptionClick

    Next

Anyone looking for an extra hand in their workshop of any kind? by GlasedDonutin Charlotte

[–]geekuskhan 0 points1 point ago

I'm glad someone beat me to this.

Refrigerator Rental by ice_w0lfin Charlotte

[–]geekuskhan 0 points1 point ago

I have a reach in fridge (no freezer) we could probably work out a deal on. When do you need it?

I'm moving to Plaza Midwood - any tips? by EricD781in Charlotte

[–]geekuskhan 2 points3 points ago

Haha, neighborhood war. It's on.

I'm moving to Plaza Midwood - any tips? by EricD781in Charlotte

[–]geekuskhan 2 points3 points ago

Intermezzo is good for everything.

I'm moving to Plaza Midwood - any tips? by EricD781in Charlotte

[–]geekuskhan 0 points1 point ago

I like Fuel when you go get a slice. But getting a whole pizza delivered is way to expensive.

And they wonder why Aussies pirate games! by deadcatin gaming

[–]geekuskhan 0 points1 point ago

Gamefly is on his list and I never heard of the others except amazon and amazon wouldnt have occurred to me. Do they have downloadable games? And if not what is shipping like to au?

HBO tries streaming content on youtube? - Veep episodes are now up on HBOs youtube channel by JimmyDucein cordcutters

[–]geekuskhan 2 points3 points ago

You should cross post to /r/technology. This was just posted yesterday.

My local shave shop lent me a box of goodies to try for 2 weeks! Shaving Christmas! by Wolfinkingsclothingin wicked_edge

[–]geekuskhan 0 points1 point ago

You have a local shave shop?! I doubt there is one in my entire state.

I keep getting the message, "Remote Server Failed," for XBMC. by drpantsin cordcutters

[–]geekuskhan 1 point2 points ago

I don't understand, are you getting this error when you try to use the XBMC web interface? Or something like Maraschino?

Where is a good place to get a moderately priced barbershop in CH? by reliable_informationin chapelhill

[–]geekuskhan 2 points3 points ago*

Is Friendly Barber in Carborro still there?

Edit: Friendly is on Main street in Carborro right next to Orange County Social Club. That's where you want to go.

Double Elimination Interactive Bracket System by Rubber_Fistin arduino

[–]geekuskhan 1 point2 points ago

Because I can't buy a Pi. Can you?

Double Elimination Interactive Bracket System by Rubber_Fistin arduino

[–]geekuskhan 1 point2 points ago

I agree that this would be much better on a computer. But as far as I know the raspberry pie is not an option. The reason I am asking is I have been looking to do something similar. Not brackets per se.

Double Elimination Interactive Bracket System by Rubber_Fistin arduino

[–]geekuskhan 0 points1 point ago

So are you saying an arduino can't do this?

My Instructable article on how to build an 8-bit computer. If you like the article, and found the information worthwhile, please vote for it in the Make it Real competition. by spel3oin electronics

[–]geekuskhan 1 point2 points ago

Maybe I'm Missing something but I went to the site clicked the button that said someting like view on one page and read the how to. Maybe I'm missing something. I guess he could have linked straight to that page?

My Instructable article on how to build an 8-bit computer. If you like the article, and found the information worthwhile, please vote for it in the Make it Real competition. by spel3oin electronics

[–]geekuskhan 1 point2 points ago

Im not trying to tout instructables, but I didn't have any trouble seeing the whole thing and I don't have an account.

A new look at a 425-year-old map has yielded a tantalising clue about the fate of the Lost Colony, the settlers who disappeared from Britain's Roanoke Island in the late 16th century. by nomdewebin science

[–]geekuskhan 1 point2 points ago

Nat Geo did has not lost any jobs to piracy. Not one. I will state that as a fact. No one said I'm not subscribing to National Geographic when I can just download it. Many many more people read National Geographic at the library than download it. Blame them.

view more: next