Search Results - VBForums

Search:

Type: Posts; User: Inferrd

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Re: How does VB.Net store variables in a binary file?

    It sounds like you are using a BinaryWriter to write the String to the file. However, if you are writing Object Types, then it also sounds like you are working with Option Strict turned Off, which is...
  2. Re: zip file being corrupted after uploading in chunks with ftp uploader and progress

    Glad to see you're making progress ;) but...you don't want to be doing it like that for several reasons.

    For starters, sending a single byte at a time is horribly inefficient.

    Then there's...
  3. Re: zip file being corrupted after uploading in chunks with ftp uploader and progress

    After 52 days of bumping your other thread, I'm gobsmacked that you've apparently made no effort to diagnose or debug this problem. Have you set a breakpoint and stepped through the loop, watching...
  4. Re: VB Project Runs But Only In Debug

    From the error message, it appears that GetDefaults is being called from the Form.Load event handler.

    As you may or may not know, when developing on a 64 bit system, any errors generated in the...
  5. VS 2010 Re: [RESOLVED] Change a value separation from comma to a period.

    Glad to hear it's working. I don't understand why it wasn't originally, so if you find out, please let me know :)
  6. VS 2010 Re: Change a value separation from comma to a period.

    Sorry, but I'm not really understanding your problem.

    I understand that you are retrieving lines from a text file, splitting them into fields, and assigning the value of the longitude and latitude...
  7. VS 2010 Re: Change a value separation from comma to a period.

    OK

    So (destlatitude) and (destlongitude) are Strings.

    The Val function converts the strings to Numeric Types (Doubles).
    You don't need to worry about decimal separators when dealing with...
  8. VS 2010 Re: Change a value separation from comma to a period.

    If you were going to store floating point numbers as strings in a flat text file, then you would do so using the period as the decimal separator, and not use any thousands separators. Basically, you...
  9. VS 2013 Re: Multi TCP connection thread via single function, only work last connected TCP

    There seem to be a lot of mistakes in that code. And it appears you have Option Strict turned off. Never a good idea.


    As for the problem you mention, you have 2 TcpClient objects, but use only 1...
  10. Replies
    11
    Views
    356

    Re: Chart impact on timer

    I'm not entirely following what your trying to do with that code.

    I think you are trying to run a block of code every 20ms by "fudging" the interval of a Forms.Timer. Is that correct?

    If so,...
  11. Replies
    19
    Views
    509

    Re: Does this justify using Goto

    In this case, I actually find the code with GOTOs easiest to understand, followed by dbasnett's interpretation of TnTinMN's code.

    Possibly like many people here, I made a New Year's resolution to...
  12. Re: Threading.Timer and Thread.Sleep - unexpected interaction

    The code in your Sub myTimer_Tick will be running on a different thread from the code in Sub btn_Click.

    I think you are using the timer in a somewhat unusual manner, and this is why you are having...
  13. VS 2010 Re: Display certain text based on current date

    Something like the following?


    Private Function CertainText(theDate As Date) As String
    Dim dayNum As Integer = theDate.Day
    Dim dowOffset As Integer = (CInt(theDate.DayOfWeek) + 1) Mod 7...
  14. VS 2010 Re: Display certain text based on current date

    I'm not really understanding. Can you give an example? Maybe the first 16 dates from post#1.

    What would happen at 08/01/2015 and 09/01/2015? Would they be M6 and M7 or W6 and W7?

    Also, the...
  15. Re: How to set a double value in the NumericUpDown

    I'm wondering if it's more likely to be a Culture clash. Is the OS or UI set to a Culture that has a comma as the CultureInfo.NumberFormatInfo.NumberDecimalSeparator ? What happens if you try to set...
  16. Replies
    8
    Views
    336

    VS 2012 Re: Acess denied to public folder

    Can't say that I understand junction points, apart from them not being actual folders, but rather links to folders.

    "C:\Users\All Users\Desktop" points to "C:\Users\Public\Desktop", which I doubt...
  17. Replies
    8
    Views
    336

    VS 2012 Re: Acess denied to public folder

    I'm thinking "C:\Users\All Users\Desktop" is a junction point. Can you actually enumerate the contents of a junction point even if you are running the program as an Administrator?
  18. Replies
    5
    Views
    311

    VS 2012 Re: [RESOLVED] Text (yenc) to file/NNTP

    Glad you're getting there.

    As I understand it, the data will end with a line containing single dot followed by a CR-LF pair. So I check for 5 characters: CR LF DOT CR LF, where the first CR-LF...
  19. VS 2013 Re: Help Needed saving hex in RichTextBox to a file

    Best guess, based on the info you have supplied so far, would be that the length of your hexString is not an exact multiple of 8.

    This would cause an exception to be raised by the call to the...
  20. VS 2010 Re: Display certain text based on current date

    Using day of week as SJW said:


    Private Function CertainText(theDate As Date) As String
    Dim dayNum As Integer = theDate.Day
    Dim dowOffset As Integer = (CInt(theDate.DayOfWeek) + 1) Mod...
  21. Replies
    5
    Views
    311

    VS 2012 Re: Text (yenc) to file/NNTP

    I don't think you can condense that much more. You could get rid of the Decoder object because, as you are using a single byte encoding, a character's bytes can't span multiple read blocks.

    I'd...
  22. Replies
    5
    Views
    311

    VS 2012 Re: Text (yenc) to file/NNTP

    yEnc encoding encodes 8 bit data into a different format, but still uses the full 8 bits of the byte. This fundamentally breaks the NNTP protocol, which was designed to be a 7 bit transfer protocol,...
  23. Re: VB 2010 Reading lines > Textbox > sending partial to variable.

    Talking of junk, it looks like the gap between the two prices is made up of a Space character followed by a Tab character? Are you sure there will always be a Space following the MSRP?

    Apart from...
  24. Re: Where is my salted/hashed password in my DB?

    The brandy sounds good. :)



    I think you'll struggle using those functions. As I said, they are pretty much broken. If you don't provide a value for the saltValue argument (i.e. by passing...
  25. Re: Where is my salted/hashed password in my DB?

    Hi Steve.

    Good advice there from EG. Worth following, if you can. Pretty sure I couldn't, but then I'm not the sharpest pin in the hair.net.

    You seem to be struggling with some of the basics....
  26. Replies
    2
    Views
    162

    VS 2010 Re: Non english regex

    I'm thinking you want the third group
    .Groups(2) if you're after finding "PROJECT NAME"
  27. VS 2012 Re: How do you change the default font for controls?

    For the life of me, I couldn't explain 6.6, but 7.8 is the "normal" font size when you've set your Window's display settings to 125% (120dpi).
  28. Re: Auto calcul CRC for modbus interface device

    Change
    If CRCLSB = "1" Then to
    If CRCLSB = ChrW(1) Then


    Don't understand why they are using Char data Types there. But then again, I don't understand C :)
  29. VS 2013 Re: Make a Keyboard only Calculator? Cant find Info Anywhere!!

    In answer to:


    In the KeyDown event handler, you select all the text in the textbox. At this point, the new character hasn't been added to the textbox. When it is added, it of course replaces...
  30. Re: Visual Studio: How to write a float to an address using WriteDMAFloat?

    I had found the same code as TnTinMN and am sure it's what you are trying to use. It's badly written .NET code.

    I think that what's going to give you grief from the outset is that the...
  31. Re: AES padding is invalid after first file opened

    Thanks for answering the questions. That would appear to rule out a dodgy key :)

    I can't see anything in the code you provided in post#10 that would cause you problems. I added it unmodified to a...
  32. Re: AES padding is invalid after first file opened

    Without more of your code to go on, I still suspect it's a problem with the key you are using to decrypt the files.


    How are you generating the key string?

    Is it 16 characters long?

    Do you...
  33. Re: AES padding is invalid after first file opened

    It looks like you have converted the code from the blog you linked to in your previous thread so it uses AES rather than DES.

    Is the code you posted above in Post#3 the actual code you are using?...
  34. Replies
    7
    Views
    412

    VS 2013 Re: Extract string from exe file

    An .exe file will almost certainly contain bytes with value = 0. When converting the .exe to a string, these will typically be treated as Null chars (depends to some extent on the Encoding being...
  35. Replies
    9
    Views
    495

    VS 2010 Re: Send JSON Encoded Array via HTTP Request

    mozes is an array of your MyMoz Type. Each element references an instance of the MyMoz Type. You would work with its properties just as you would with any Class. eg:

    Dim thisMoz As MyMoz =...
  36. Replies
    9
    Views
    495

    VS 2010 Re: Send JSON Encoded Array via HTTP Request

    If your Json represents an array, then you need to deserialize to an actual array of your type, not just a single instance of it:

    Dim mozes() As MyMoz = JsonConvert.DeserializeObject(Of...
  37. Re: adding two items to a listview in columns in vb 2010 express

    Hey GMTireman. Welcome to the forum. :wave:

    Your problem is that you only create the one ListViewItem (wrditem) which you try to add over and over to the ListView, which is something you're not...
  38. Replies
    2
    Views
    295

    VS 2013 Re: Help with RegEx

    Not a Regex expert, but I like to play.

    Here's the horrible pattern I came up with. Plug it into your Regex site link and see if it works for you.

    (^[^\d\r\n]+?)(...
  39. VS 2013 Re: Displaying compatible resolutions in listbox

    Your function returns a single ManagementObject object that represents the highest video controller resolution returned by the WMI query. You then need to fetch and display the value of one of its...
  40. Re: Question about IDE behavior with unhandled error

    Which probably means Alain added the FSW at run time , in which case its events will be raised on a different thread from the current thread. It has a property you can set to change that behaviour,...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.