Search:

Type: Posts; User: minitech

Page 1 of 13 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    4
    Views
    26,848

    Re: Convert RichTextBox to HTML string

    Looking back on this: don’t use it. It shouldn’t work. I hope it doesn’t work; if it does, it does by magic. Try an RTF parser or something.
  2. Replies
    1,154
    Views
    386,592

    Re: [RESOLVED] artificial intelligence

    I lost my copy of the book. =(
  3. VS 2008 Re: [RESOLVED] detecting mouseclick outside the form (for exmple desktop)

    Sorry about that. FWIW: it should work anyways until you try to actually put something bigger than an Integer in, and Alias has never really been necessary.

    This is what I use now:

    ...
  4. Re: What does Visual Basic boast over other languages? What makes it unique?

    Well, I think we were actually just saying the article is wrong, Lisp or no Lisp.

    Anyways, which arguments are like that? It’s a bit to be expected that everything is going to be “VB is great” in...
  5. Re: What does Visual Basic boast over other languages? What makes it unique?

    Yes, I’d say that’s too much, but it really depends on what it does. What does it do? :)

    I’ve never had a typo in JavaScript that didn’t throw an error, but that’s just kind of luck. The potential...
  6. Re: What does Visual Basic boast over other languages? What makes it unique?

    Doubtful that it’s going to be replaced, seeing as everything is built in it. It can be, is being, and has been extended – see ECMAScript 3–6 – but I actually think many of the proposed changes for...
  7. Re: What does Visual Basic boast over other languages? What makes it unique?

    Despite the fun new features that JavaScript-targeting compilers like CoffeeScript, TypeScript, Elm and whatnot are adding, I’m still firmly of the opinion that anyone doing that is writing too much...
  8. Re: What does Visual Basic boast over other languages? What makes it unique?

    Actually, that layout makes a lot more sense if you assume it was built in Lisp.

    http://i.imgur.com/8p7ZZij.png
  9. Re: What does Visual Basic boast over other languages? What makes it unique?

    I found that section horribly inaccurate. First, he talks about “the most powerful language”, which is a concept that isn’t very well defined. What does that even mean? When I read that, I jump to...
  10. Re: What does Visual Basic boast over other languages? What makes it unique?

    Yep! As formlesstree4 said, $ mono whatever.exe works 90% of the time. Anything else is usually due to Windows API calls.
  11. Re: What does Visual Basic boast over other languages? What makes it unique?

    Use Vim!
  12. Re: What does Visual Basic boast over other languages? What makes it unique?

    Am I too late?

    Two things that were mentioned at some points in time:


    VB.NET isn’t fast enough for code competitions – not usually true. Or really ever true. Sometimes you can skate by with...
  13. Thread: Squared Sum

    by minitech
    Replies
    3
    Views
    731

    Re: Squared Sum

    Well, you haven’t told it to display anything. Want to put it in a message box?


    MessageBox.Show(Sum.ToString())

    It’s also probably a really good idea for you to turn Option Strict On; Sum and...
  14. VS 2012 Re: Tech IQ: How Well Do You Know Visual Basic.NET 2012?

    I think the modern way is


    Dim path = "\ProgramData\Backup\Backup" & ListBox1.Items.Count & ".txt"

    IO.File.WriteAllLines(path, ListBox1.Items)

    Er, does that work? If not:
  15. Replies
    14
    Views
    12,659

    Re: GDI+ For Beginners

    (Does that look like a flickering lightbulb?) Anyways, please ask this on the main VB.NET forum. I might have time to continue this tutorial now and include animation in a bit, but you’re not going...
  16. Replies
    1,154
    Views
    386,592

    Re: [RESOLVED] artificial intelligence

    … that was mean.
  17. Replies
    14
    Views
    12,659

    Re: GDI+ For Beginners

    ​​​​
  18. Replies
    14
    Views
    12,659

    Re: GDI+ For Beginners

    Please ask about that on the main Visual Basic .NET forum.
  19. Replies
    34
    Views
    22,341

    Re: vb2008 extensions

    I’m not spamming your thread. You can make your own OrdinalSuffix extension. I was just saying that custom date formats are built into .NET; you don’t have to format it one way, split it, shuffle it,...
  20. Replies
    34
    Views
    22,341

    Re: vb2008 extensions

    What he said. Except


    Return String.Format("{0:d}{1} {0:MMMM yyyy}", d.Day.OrdinalSuffix(), d)

    if that works. I don’t know.
  21. Replies
    34
    Views
    22,341

    Re: vb2008 extensions

    Re: toFullDateString: Wouldn’t something like this work?


    Return Me.Day.OrdinalSuffix() & Me.ToString(" MMMM yyyy")
  22. Replies
    12
    Views
    1,373

    Re: 2 Progress Bars for multiple file downloads

    So where did you insert it?
  23. VS 2010 Re: How would I split this text to get one number?

    Well… why? Also, it’s even more fragile.
  24. VS 2010 Re: How would I split this text to get one number?

    It’s not the split function. Give Regex.Match a try.
  25. VS 2010 Re: How would I split this text to get one number?

    Try a regular expression.


    Secure Paste ID ([^<]+)
  26. VS 2012 Re: Tech IQ: How Well Do You Know Visual Basic.NET 2012?

    Shouldn’t that be something more along the lines of


    Dim root As String = Directory.GetDirectoryRoot(Directory.GetCurrentDirectory())

    Using w As New StreamWriter(Root &...
  27. Replies
    13
    Views
    1,227

    Re: Chrome password flaw?

    Passphrases are the answer to everything. Failing that, KeePass. Failing that, sticky notes. Or just keep using this, since it’s pretty standard.
  28. Replies
    23
    Views
    3,134

    Re: [VB2010] This method has been deprecated...

    You’re redistributing the DLL if you include it in your project, yes.
  29. Replies
    23
    Views
    3,134

    Re: [VB2010] This method has been deprecated...

    That’s not what the C# code does, and the equivalents would be Is and IsNot, respectively.
  30. Replies
    6
    Views
    3,903

    Re: Google maps Vs Ajax

    Assigning to src still isn’t meaningful. What are you trying to accomplish? Setting the <iframe>’s src?

    JavaScript and HTML are separate things. You need to select the <iframe> somehow (give it an...
  31. Replies
    6
    Views
    3,903

    Re: Google maps Vs Ajax

    src= "http://maps.google.com/maps?q=" + position.coords.latitude + "%2C" + position.coords.longitude + "&output=embed";

    Where does src come from?
  32. Replies
    6
    Views
    3,903

    Re: Google maps Vs Ajax

    That’s text, not a link. What part of your code generates a link?
  33. Replies
    2
    Views
    1,108

    Re: Gotta make sure

    Oh, hey.
  34. Replies
    23
    Views
    3,134

    Re: [VB2010] This method has been deprecated...

    Yes, translate it to VB.
  35. Replies
    23
    Views
    3,134

    Re: [VB2010] This method has been deprecated...

    Are you talking about a custom control? All you have to do is build your project, and the control will show up in your toolbox.
  36. Replies
    23
    Views
    3,134

    Re: [VB2010] This method has been deprecated...

    Override it as a method and don’t do anything if you don’t want to do anything; InitializeNewComponent is virtual
    You could translate it to VB.NET, which is the better language anyways; there are...
  37. Re: Console Application ReadConsoleOutputCharacter or .NET alternative?

    Aha! Thanks for pointing out STD_OUTPUT_HANDLE. I think the definition is


    Public Const STD_OUTPUT_HANDLE As Short = -11
  38. Re: Console Application ReadConsoleOutputCharacter or .NET alternative?

    Probably not the main issue, but I don’t think you can use a String like that. Try a StringBuffer with an appropriate initial size, or a Char(). Also, try modifying GetStdHandle to return an IntPtr.
  39. Re: Console Application ReadConsoleOutputCharacter or .NET alternative?

    You should keep an internal state. It’ll be shorter than all this, more efficient, and probably more reliable, especially if you ever decide to add some kind of feature that interacts with a part of...
  40. Replies
    9
    Views
    1,076

    VS 2012 Re: [RESOLVED] Resume from empty primary key

    18,446,744,073,709,552,000 is 18 quintillion. :)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width