Search Results - VBForums

Search:

Type: Posts; User: Inferrd

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. VS 2012 Re: Can someone explain Why this doesn't work all the time.

    Are you sure about that? It probably downloads the file, but I'd expect an error to occur in your UnzipUpdate method.

    The above method calls your DownLoad method, which makes a call to...
  2. Replies
    36
    Views
    5,083

    Re: AppActivate and FindWindow

    Windows 8 has a Desktop calculator (calc.exe) that is virtually the same as Windows 7's calc.exe.
    Windows 8 also has a calculator that is a Modern UI App (numbers.exe). It does not run on the...
  3. VS 2012 Re: Generate numbers to the exact values given.

    The error message is telling you that you are trying to access an element of your array that does not exist.

    Your exclusiveNumbers array has 60 elements. They have index values ranging from 0...
  4. Re: finding a substring in a pathname and bypassing the characters found

    When you debug and step through your code, what value does fullPath have immediately after the following line is executed
    Dim fullPath As String = newplaylist.Item(counter).nameDoes it actually end...
  5. Replies
    36
    Views
    5,083

    Re: AppActivate and FindWindow

    Windows 10 Calculator is one of those so called Modern UI Apps. I think the 32KB file "Calc.exe" is kept for backwards compatibility and is a wrapper (launcher) for "Calculator.exe" which is 3MB in...
  6. Replies
    6
    Views
    199

    VS 2010 Re: Option Strict Problems

    My apologies. I had always assumed & worked with Objects that boxed String types, or types that could be converted to Strings. Apparently it disallows any operand that is an Object Type, full stop. I...
  7. Replies
    6
    Views
    199

    VS 2010 Re: Option Strict Problems

    In VB,always use the & Operator to concatenate strings, never "+".



    Does your TextBox have its MultiLine Property set? If so, the following is one way to do what you require:...
  8. Re: Streamreader read text file combine row data with condition

    Iterate through the lines in your text file.

    When you find a line starting with "H ", store header part of it in a variable.

    When you find a line starting with "D", concatenate detail part of...
  9. VS 2015 Re: String.replace method , multiple match replacements

    The String.Replace method returns a new string, so you'd have to assign the result back to your op variable
    op = op.Replace(blah....
  10. VS 2013 Re: Press any key to continue... without adding in Console?

    I would agree with what the others have said above. A large proportion of video tutorials on YouTube seem to be very amateurish and full of bad practices.

    As to your original question: If you...
  11. Replies
    4
    Views
    117

    Re: Problem with Regex replace

    Not a Regex guru, but you could try:


    Find:

    = 100 - (.+)\r

    Replace:

    = 100 - CInt($1)
  12. Replies
    4
    Views
    137

    Re: Use LINQ to Initialize 2d Array

    1D:
    Dim foo() As Boolean = Enumerable.Repeat(True, 9).ToArray

    2D:
    Dim bools(3, 4) As Boolean

    Buffer.BlockCopy(Enumerable.Repeat(True, bools.Length).ToArray, 0, bools, 0, bools.Length)
  13. Re: By copying data from listbox to text file hapends spaces between text

    Then you are not working with Option Strict turned on. I'd advise you to turn it on in the IDE's options so it is in force for all the projects you create. (Tools menu / Options / Projects and...
  14. Re: By copying data from listbox to text file hapends spaces between text

    Possibly an errant LineFeed character at the end of each string item in your ListBox.

    What code did you use to populate the ListBox in the first place? Did it involve the String.Split method?
  15. Replies
    28
    Views
    403

    Re: Picturebox transparency problem

    Then I would suggest that, instead of creating the BLOB by converting the data from the PictureBox back into PNG formatted data, create the BLOB directly from the PNG File (as stored on your hard...
  16. Replies
    28
    Views
    403

    Re: Picturebox transparency problem

    So you are retrieving a PNG formatted picture from the database, converting it to a System.Drawing.Image to store in a PictureBox, and then converting that back into a PNG formatted picture to store...
  17. Replies
    28
    Views
    403

    Re: Picturebox transparency problem

    Before it saves the image to the database, is your application modifying the image in any way, such as resizing, cropping, recolouring, adding notations, etc.?
  18. Replies
    9
    Views
    243

    Re: Listbox Color Issue

    Your ListBox is bound to a data source, so each item in your ListBox is an object of the Type DataRowView. Calling ToString on a DataRowView object will return "System.Data.DataRowView"

    Try...
  19. Re: [RESOLVED] Back to a problem I marked as solved a little while ago (draw image)

    Not sure what you're trying to do there. What is My.Resources.test? Is it another small image that you are trying to turn into a long line?

    The line e.Graphics.DrawImage(My.Resources.test,...
  20. Re: Back to a problem I marked as solved a little while ago (draw image)

    Me? Afraid not, sorry.When it comes to programming with GDI+, I have only a very basic knowledge that was picked up while lurking in forums such as this one, and through experimenting with the...
  21. Re: Back to a problem I marked as solved a little while ago (draw image)

    Curious phenomenon. Maybe to do with how the interpolation is carried out? Something to think about while waiting for boops boops to (hopefully) turn up and explain it properly :)

    That said, would...
  22. VS 2013 Re: Function return variable is correct, but not returning the correct value.

    What Type is an eCode? Whatever it is, it looks like it's rounding the value of volt (a Double) into an Integer before you assign it to the voltage variable.
  23. Replies
    7
    Views
    212

    Re: Convert &H8000 from vb6 to vb.net

    All valid points in their own right.

    However, aoslo may actually want:
    Dim x as Short
    x = &H8000S as this will give -32768 (Short.MinValue) which is what VB6 would return.
  24. Re: executing Windows Shell script from vb.net

    Hi Goshx,

    This is as different topic, so you should start a new thread. That way more people are likely to read it, and you have more chance of getting an answer.

    My 2 cents while I'm here:...
  25. Re: Problem with 'Region & Language'

    Really? I did check before I posted, but the de-compiler I used ended up at the statement

    Maybe I need a bigger de-compiler (or one that costs money :p). My apologies.
  26. Re: Problem with 'Region & Language'

    You make good points, and I won't argue. :)

    My philosophy is slightly different. I'd normally tell people to code using the methods they know (there's that word again) and are comfortable with,...
  27. Re: Problem with 'Region & Language'

    Now, don't be running away with the idea that VB is bad, and .NET is better. :p

    CDate is a wrapper for System.DateTime.TryParse. So maybe any quirks are originating in the .NET methods. :)
    ...
  28. Re: Problem with 'Region & Language'

    Hi Poppa,


    If you need to store a date as text in a text file, then you have no alternative but to convert your Date object to a String object. However, Microsoft have guidelines on how you do...
  29. Replies
    7
    Views
    356

    VS 2010 Re: Multiple Keys working at the same time

    Attaching 2 keyboards works on Windows 7. Can't remember if it did on XP.


    From all the keys that are used in your game, you need to determine which subsets of keys are likely to be pressed at...
  30. Replies
    7
    Views
    356

    VS 2010 Re: Multiple Keys working at the same time

    Short answer: you can't. Different makes of keyboards will be wired up differently internally, and so will allow or disallow different key combinations.

    I have two keyboards attached to my PC. One...
  31. Re: executing Windows Shell script from vb.net

    Never tried that myself, but my understanding is that the SysNative folder is not available on 32 bit systems. That's why I suggested Goshx compiled his app to AnyCPU which would run as 32 bit on 32...
  32. Re: executing Windows Shell script from vb.net

    This could be due to file system redirection. Are you running on a 64 bit OS, but compiling to x86?

    On a my 64 bit Windows7, bcdedit.exe is in System32 but not in the SysWOW64 folder, which is...
  33. Replies
    7
    Views
    356

    VS 2010 Re: Multiple Keys working at the same time

    You're lucky. On my keyboard, with J and Numpad1 both pressed (you must have big hands! :p), my W key does not register, although the A,S and D keys do.

    I always thought that this was a limitation...
  34. Replies
    3
    Views
    140

    VS 2010 Re: KeyPress not working with KeyChar?

    The Keys enumeration does not represent characters, it represents physical keys.

    In the KeyDown event handler, if you press the D key, then e.KeyCode would equal Keys.D.

    In the KeyPress event...
  35. Replies
    9
    Views
    305

    Re: What is a PDB file ?

    You've not said what you're trying to do, but if this is about trying to get the JiT debugger to work, then I'd advise you not to bother.

    The symptoms you describe are most often caused by an...
  36. Replies
    8
    Views
    302

    VS 2013 Re: Find smallest value ListView

    Iterate through all the rows in the ListView. keep a record of the smallest value found, and also keep a record of the row that it occurs on.

    wes4dbt's code starts off by making the assumption...
  37. Replies
    9
    Views
    253

    VS 2013 Re: RichTextbox to ListView

    If you were to use a For Each loop to iterate through each line in the RichTextBox, your code in Post#1 would become:
    Dim Rawdata As String() = Nothing
    Dim Fs As Integer = CInt(txtStep.Text)
    Dim i...
  38. Replies
    20
    Views
    538

    Re: Issue with Foreign Languages & Textbox

    It would certainly be the easiest! :)
  39. Replies
    20
    Views
    538

    Re: Issue with Foreign Languages & Textbox

    If your user is trying to enter the numeric equivalent of (for example) "one and a quarter" into any program on his PC, and is seeing "1ю25", then there is something wrong with his system, and it is...
  40. Replies
    20
    Views
    538

    Re: Issue with Foreign Languages & Textbox

    Dday9 has already given you a better idea:


    I personally am not keen on NUDs. The little arrows are too fiddly for me. :p I'm not keen on filtering textboxes either though. It gets too...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width