Search Results - VBForums

Search:

Type: Posts; User: Inferrd

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    9
    Views
    227

    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...
  2. Replies
    8
    Views
    202

    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...
  3. Replies
    9
    Views
    215

    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...
  4. Replies
    20
    Views
    394

    Re: Issue with Foreign Languages & Textbox

    It would certainly be the easiest! :)
  5. Replies
    20
    Views
    394

    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...
  6. Replies
    20
    Views
    394

    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...
  7. Replies
    20
    Views
    394

    Re: Issue with Foreign Languages & Textbox

    It'll probably do that if you have a US keyboard and change the input language to Russian by way of the Region and Language settings in the Control Panel. If you had an actual Russian keyboard, its ....
  8. Replies
    20
    Views
    394

    Re: Issue with Foreign Languages & Textbox

    Not quite. Chris's code does allow the "." character through because, as I mentioned above, ChrW(Keys.Delete) does resolve to the period character.

    So if you press '.', the expression actually...
  9. Replies
    20
    Views
    394

    Re: Issue with Foreign Languages & Textbox

    Forgive me for saying, but that is a horrible mess.

    Not e.KeyChar = ChrW(Keys.Delete) is not doing what you think it is. The KeyPress event is not raised by the Delete key. However, that line is...
  10. VS 2013 Re: Convert RSA Encrypted bytes to string and back.

    You would use Convert.FromBase64String in the decrypt routine instead of the UTF8
  11. VS 2013 Re: Convert RSA Encrypted bytes to string and back.

    You won't be able to use UTF8 encoding like that.

    Without going into too much detail, UTF8 expects the bytes you feed it to have a very specific bit pattern. Your encrypted bytes won't have the...
  12. Replies
    15
    Views
    749

    Re: Plotting scaled triangle

    I agree with Passel that your labelling conventions are not the ones I am used to when it comes to geometry. Shouldn't matter though, as long as you pick a convention and stick to it. That said, I...
  13. Replies
    7
    Views
    308

    Re: Font - seeking comparison

    Actually, Scale is not working in the way I expected it to. It certainly scales the DGV size, but not the font. I need to do more reading. Sorry about that.
  14. Replies
    7
    Views
    308

    Re: Font - seeking comparison

    Not one of the aforementioned people, so allow me to run a couple of ideas up the flagpole and count how many penguins fall over backwards....


    Have you considered using a slightly different...
  15. VS 2010 Re: Connecting to an FTP Server for access of a URL

    That really doesn't help anyone to help you. You should always explain what you expected to happen, what actually happened, and if an error occurred you should include the error message (copy/paste...
  16. Replies
    7
    Views
    287

    Re: ASCII preferences?

    The simplest solution is to use the ChrW() method instead of the Chr() method.

    Chr() relies on the code page that is being used by the application's current thread. This is usually the same as the...
  17. Replies
    25
    Views
    495

    VS 2013 Re: Problem Detecting words in Lowercase

    Not your fault :). it's the forum software. Large images added as attachments are shrunk to the point that their content often becomes unrecognisable. Large images that are in-lined lead to the whole...
  18. Replies
    25
    Views
    495

    VS 2013 Re: Problem Detecting words in Lowercase

    I'd agree with dday on that.


    However, if you want to stick with your current code, then a couple of points:
    (with apologies for my forced formatting of the post. The handling of images
    on this...
  19. Replies
    4
    Views
    225

    Re: Date subtraction to create integrer

    Interesting how Val works with dates :). Wrong though, as you say.

    Look into Visual Basic's DateDiff Method

    Or, look into using .NET's TimeSpan Class. (Date2-Date1) results in a TimeSpan, and a...
  20. Replies
    15
    Views
    412

    VS 2010 Re: Should check File version be so slow?

    I could be totally wrong here, but after a bit of tentative testing it looks to me like the call to FileVersionInfo.GetVersionInfo pulls the file across the network two times.

    So, how big is your...
  21. VS 2010 Re: hide/unhide taskbar icon not working properly

    Maybe this will get you started. After a quick Google, I came up with:
    Imports System.Runtime.InteropServices

    Public Class Form1


    Private Sub Button1_Click(sender As System.Object, ByVal...
  22. Replies
    11
    Views
    417

    VS 2010 Re: [RESOLVED] Getting the Unicode ID from HEX

    Ah, of course. I got the significance of &H81, but I was also thinking you were using &HA as another demarcation point between Japanese and ASCII. I should have twigged what you meant, given you...
  23. Replies
    11
    Views
    417

    VS 2010 Re: [RESOLVED] Getting the Unicode ID from HEX

    Yep, I think I see what you are doing...sort of. I have very limited experience with Shift JIS (or any other of the CJK code pages come to that), so I'm a little lost as to what you are doing with...
  24. Replies
    11
    Views
    417

    VS 2010 Re: [RESOLVED] Getting the Unicode ID from HEX

    What exactly do you mean by "the text length"? Do you mean the number of bytes that correspond to text? Or do you somehow know how many characters are in the text? Note that the number of bytes and...
  25. Replies
    11
    Views
    417

    VS 2010 Re: [RESOLVED] Getting the Unicode ID from HEX

    Good to hear :)

    One small concern, and forgive me if you've already accounted for this: my understanding of Shift JIS is that it produces either 1 or 2 bytes per character depending on the...
  26. Replies
    7
    Views
    221

    VS 2010 Re: [Resolved] String to byte array help

    Glad you have it sorted.


    I wouldn't go that far, but then, if it wasn't challenging, it wouldn't be fun. ;)
  27. Replies
    7
    Views
    221

    VS 2010 Re: [Resolved] String to byte array help

    Any and all |'s will be converted to line feeds before the string is converted to a byte array. If there are no |'s, the original unaffected string will still be converted to a byte array as expected.
  28. Replies
    7
    Views
    221

    VS 2010 Re: String to byte array help

    Yes, that's pretty much what I meant.

    You don't don't need the last line though, because the line btText = encText.GetBytes(str.Replace("|", vbLf)) creates a new string (behind the scenes) with ...
  29. Replies
    11
    Views
    417

    VS 2010 Re: Getting the Unicode ID from HEX

    Interesting question. I don't know the answer, so you've given me something to play with later on. :)

    U+30B3 represents the Unicode code point for the character "コ", and I think that 0x8352...
  30. Replies
    7
    Views
    221

    VS 2010 Re: String to byte array help

    You could always replace the | character before converting to a byte array:
    btText = encText.GetBytes(str.Replace("|", vbLf))

    Are you sure UTF8 is appropriate? UTF8 is a multi-byte encoding....
  31. Replies
    2
    Views
    207

    VS 2013 Re: need help by fill in empty spaces split

    Building on Ian's solution, and using a modified input string for testing:
    Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
    ' NOTE: the input...
  32. Replies
    3
    Views
    183

    VS 2013 Re: File extension issue

    Rather than searching for the first occurrence of the dot, search for the last occurrence:
    c = Strings.Right(b, Len(b) - InStrRev(b, "."))
  33. Replies
    6
    Views
    286

    Re: LINQ Select Unique

    Until something better comes along:
    Dim theCollection As New List(Of TheClass)

    theCollection.Add(New TheClass With {.Name = "foo", .TimeStamp = #6/2/2015#})
    theCollection.Add(New TheClass With...
  34. VS 2013 Re: Need Help to place back data in to file

    Building on your existing code, you'd use a FileStream with write access and write your data at the appropriate position in the Stream. The code would be very similar to that in your button2_Click...
  35. Replies
    10
    Views
    585

    Re: My Updater is giving some problem...

    Your downloader isn't resuming because the HttpWebRequest doesn't resume by default. You have to provide the code to do it.

    I'm not saying you should use FTP, I'm saying you should research how to...
  36. Replies
    10
    Views
    585

    Re: My Updater is giving some problem...

    What you are saying seems to fit in with what I have observed. When I tested, I was using a 20Mbit/s connection, and it succeeded.

    I modified your code slightly to introduce a small delay after...
  37. Replies
    20
    Views
    567

    Re: Search byte pattern in byte array

    Agreed. I've run into problems with this in the past when iterating over very large collections, and using .Skip(x).Take(aSmallPortion) where x is the loop variable. Just to give an idea, I estimated...
  38. Re: [RESOLVED] Get Image from BindingSource.Current

    A couple of other points:
    The overload of the MemoryStream Constructor that you are using (New IO.MemoryStream(imageData, 0, imageData.Length)) allows you to create a MemoryStream from a portion of...
  39. Replies
    10
    Views
    585

    Re: My Updater is giving some problem...

    I've only quickly glanced at your code, and although there are several issues you will need to sort out (not least of which is not being able to close the Form), there is nothing there that should...
  40. Replies
    13
    Views
    364

    Re: Currency textbox

    It should convert the numeric keypad's decimal point key to a comma. Won't affect the main keyboard's full stop (period) key.

    You did amend the code for your own TextBox names, didn't you? :)
    ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width