Search Results - VBForums

Search:

Type: Posts; User: Inferrd

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    14
    Views
    159

    Re: A question about defining GDI rectangles

    Don't know.
    Dim rect As Rectangle = Rectangle.Round(original.GetBounds(GraphicsUnit.Pixel)) works for me.

    All I can think of off the top of my head is maybe you have a confilct of namespaces?...
  2. Re: Dual progress bars: Current file, total files

    Does your program actually just hang while trying to fetch the file sizes?

    This line looked a bit dubious to me:
    Return HttpWebRequest.Create(url).GetResponse().Headers.Get("Content-Length") so...
  3. Replies
    14
    Views
    159

    Re: A question about defining GDI rectangles

    It would help if you said why VB "doesn't allow" you to do what you are attempting to do.

    Do you get an error? If so what is it? If not, what does actually happen?


    Dim rect As Rectangle =...
  4. Replies
    9
    Views
    2,065

    Re: Split string into two integers

    Not really sure where you are trying to split your input, or what you would do with the parts afterwards.

    However, if your input is in fact just 5C353B098ABD, then could you not work with Longs...
  5. Replies
    30
    Views
    750

    VS 2010 Re: Random Maze Generator

    @passel: my remarks in post #23 weren't aimed at you or anyone else in particular :). They were just my observations on the way the recursive backtracker seemed to be behaving when I was playing with...
  6. Replies
    30
    Views
    750

    VS 2010 Re: Random Maze Generator

    If you've created code that implements the recursive backtracker algorithm as outlined in the link given in the first post, and use it to build a maze starting from the entrance (green) cell, then...
  7. Replies
    30
    Views
    750

    VS 2010 Re: Random Maze Generator

    @.paul.

    Very nice :)

    I remember Dday was messing with maze solving a couple of years back, and I was inspired to write an implementataion of that backtracking algorithm. I was going to post it...
  8. VS 2013 Re: opening immediate window in Vb2013

    CTRL G ?

    Dunno. I only have the express version of 2013, and it's under Debug/Windows in that.
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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 :)
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. Replies
    11
    Views
    392

    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,...
  19. Replies
    19
    Views
    549

    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...
  20. 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...
  21. 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...
  22. 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...
  23. 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...
  24. Replies
    8
    Views
    366

    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...
  25. Replies
    8
    Views
    366

    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?
  26. Replies
    5
    Views
    350

    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...
  27. 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...
  28. 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...
  29. Replies
    5
    Views
    350

    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...
  30. Replies
    5
    Views
    350

    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,...
  31. 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...
  32. 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...
  33. 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....
  34. Replies
    2
    Views
    174

    VS 2010 Re: Non english regex

    I'm thinking you want the third group
    .Groups(2) if you're after finding "PROJECT NAME"
  35. 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).
  36. 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 :)
  37. 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...
  38. 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...
  39. 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...
  40. 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...
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.