Jump to content
Xtreme .Net Talk

Dave S

Members
  • Posts

    9
  • Joined

  • Last visited

Personal Information

  • .NET Preferred Language
    vb.net

Dave S's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Cool. I have all of my buttons inside a group, so I had to tweek it a bit. Thanks again Dave
  2. Wow, that looks good! Thanks a LOT! Dave
  3. :confused: Im having trouble again. Imagine a minefield grid. You have the tab index of the sender. how can I access the tag property of the adjoining buttons without clicking on them? I would like to use the tab index property of the button. I was thinking of scrolling through all 100 buttons untill the tabindex matched the index I am interested in, then read the tag, but I don't know how to increment the button names: btn1,btn2, etc. My brain hurts, Dave
  4. Thanks for the great ideas! Dave
  5. Thanks Cassio, you da man Private Sub btn1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles btn1.MouseDown, btn2.MouseDown, btn3.MouseDown Dim pintTemp As System.Object pintTemp = sender If e.Button = MouseButtons.Right Then If pintTemp.ImageIndex = 2 Then pintTemp.ImageIndex = 0 Else pintTemp.ImageIndex += 1 End If End If 'left click stuff here End Sub [code=visualbasic]
  6. I am im the process of programming a minesweeper type game for a final exam. I don't want a lot of help, but I am thinking there must be a elegant way to determine which button is pressed without adding code to each of the 100 buttons. Maybe this .net isn't as powerful as I thought it was.
  7. Then I am better off using the click event for each button. I was hoping to condense the code a bit.
  8. That is cool, but I also need feedback so I can figure out which button was pressed.
  9. I was wondering if there is a way to determine the mouse position when a button is pressed, without using the button click event. Imagine a grid of 100 buttons, one of them is pressed. Do I need to add code to every button click event? Thanks Dave
×
×
  • Create New...