Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by waynespangler

  1. waynespangler

    Capturing Tab key

    try something like this: Dim HadFocus As String Private Sub TextBox1_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.LostFocus, TextBox2.LostFocus, TextBox3.LostFocus, TextBox4.LostFocus, TextBox5.LostFocus Dim tb As TextBox = sender HadFocus = tb.Name...
  2. waynespangler

    What is the latest .net?

    Orca is the next generation of vb.net and I don't know if it will run on xp,w2k or not. vb 2005 is the latest release right now and if free to download and use. Orca is not a release yet but will be vb 2007(8,9,10?). If your company is going to upgrade to 64 bit in the near future than wait, as...
  3. waynespangler

    Visible/Enable Fields on Form

    Use textboxes for your name,etc. If you do not want some changing it then set the ReadOnly property to true. If ok to change then set the ReadOnly property to false.
  4. waynespangler

    Getting access to bitmap in an ActiveX ImageList

    I don't remember what exacally what I answered before but I created an image list in vb6 and converted it to vb 2005. I added a button to the form and ran the following code to save all the images in the old activex image list. It works. If you want to see the images as they are converted then...
  5. waynespangler

    Retrieving Whole Number from a Decimal without Rounding?

    Fix does not round. 8.01, 8.99 return 8 -8.01, -8.99 return -8 If you need unsigned then use the abs function
  6. waynespangler

    Throw event when enter key pressed (textbox)?

    Select the form and in the properties go to the Accept Button and set it to the button you want. When the enter is pressed this button is clicked.
  7. waynespangler

    editbin debugger

    Do a build, which compiles the program into the release folder. Then run your program in the debug mode and point to your .exe in the release folder. ie ProcInfo.Arguments = "c:\vbPrograms\myProgram\bin\release\theProgram.exe
  8. waynespangler

    Can you enter a range when using MixedControls?

    This just shows 25 but change to 255. Private Sub Form6_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim NewLocation As New Point Dim NewSize As New Point(75, 23) For i As Integer = 0 To 25 Dim newButton As New...
  9. waynespangler

    Retrieving Whole Number from a Decimal without Rounding?

    Dim x As Single = -3.99 Dim y As Integer = Fix(x)
  10. waynespangler

    editbin debugger

    Use the Process method. Dim ProcInfo As ProcessStartInfo = Nothing ProcInfo.FileName = "c:\folder\editbin.exe" ProcInfo.Arguments = "c:\folder\YourProgram.exe" ProcInfo.CreateNoWindow = False Process.Start(ProcInfo)
  11. waynespangler

    Getting access to bitmap in an ImageList or PictureBox

    Try this. I am using vb 2005 express but it should be about the same. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click '========================================= ' Save images in an ImageList...
  12. waynespangler

    Split String Into Alpha & Numeric Components

    I'm not that good with regular expressions but you might want to try this. Dim myMatches As MatchCollection Dim myRegex As New Regex("\d+") Dim successfulMatch As Match myMatches = myRegex.Matches(TextBox1.Text) successfulMatch = myMatches(0) Dim...
  13. waynespangler

    User Defined Exceptions...Exiting the Application

    Check out this site: http://www.vbdotnetheaven.com/UploadFile/rajeshvs/dotnetException04162005022135AM/dotnetException.aspx
  14. waynespangler

    Change form from another form.

    Go to this site: http://www.devcity.net/PrintArticle.aspx?ArticleID=94 Near the bottom is a section called "Method 7: Flip-Flop Form1 and Form2" Hope this helps,
  15. waynespangler

    Removing an object from a list

    When going thru a collection backwards you do not need "exit for" if you find a match. This is how you remove multiple items.

Part and Inventory Search

Back
Top