Search:

Type: Posts; User: kake_fisk

Page 1 of 6 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    610

    VS 2015 Reorganize ArrayList

    I have an ArrayList with say 10 elements. I want to move item 8 to index 4. And the item on place 4 and over all needs to be moved one place up to make space for the moved item. Fast or short code is...
  2. VS 2010 Re: Tidy up after DragDrop Event where rubberband left behind

    Try using the ItemDrag event instead of MouseDown to handle starting of a drag.
  3. VS 2010 Re: Tidy up after DragDrop Event where rubberband left behind

    I can't seem to open your attachment.
  4. Replies
    3
    Views
    1,198

    Re: Read the next line of RichTextBox

    You can for example read the lines until you find "name" and then set a boolean value to true. Now in the next step, but before checking for "name", as we already know we hit "name", you check if...
  5. VS 2015 Re: ListView DragDrop that accepts 2 drops from same type

    That worked like a charm. Thank you! :)
  6. VS 2015 [RESOLVED] ListView DragDrop that accepts 2 drops from same type

    I'm making a program which consists of playlists and items. I have 2 ListViews ItemList and ListPlaylists. Clicking a playlist in ListPlaylists will populate ItemList with the playlists content. You...
  7. Replies
    2
    Views
    15,410

    VS 2015 Re: Can't create local database

    Installing LocalDB worked like a charm. Thanks!
  8. Replies
    2
    Views
    15,410

    VS 2015 [RESOLVED] Can't create local database

    I had a Visual Studio 2015 project that used a local database and everything worked fine. Then I upgraded to Windows 10 and reinstalled VS15. Now I can't seem to do anything that have with databases...
  9. VS 2013 Re: Making a 2D array without knowing the size

    Ah, that makes sense. Nice analogy with the boxes.



    That's because I didn't know about that feature. It seems a little too "over-featured" for my case, but I'll try it. Thanks for the...
  10. VS 2013 Re: Making a 2D array without knowing the size

    Yeah, I would think an 1D array of 1D arrays of strings is the same as a 2D array of strings, but probably not. I wanted to do it to return a table of data from a database table. Say "SELECT * FROM...
  11. VS 2013 Making a 2D array without knowing the size

    I'm trying to make a function that takes an SQL query and returns a 2D array with the results. I don't know the row count beforehand so I was thinking using a list until I have read through the...
  12. Replies
    2
    Views
    628

    VS 2013 Re: Adding data-bound controls

    Oh, it was just a silly mistake I made. I thought it was a control that could be dropped anywhere on the form as the OpenFileDialog. So the reason why I couldn't create those components was because I...
  13. Replies
    4
    Views
    769

    Re: Problem with saving listbox

    You probably need to import the IO namespace by adding "Imports System.IO" at the top.
    But you can use StreamReader as well if you wish, the trick is to use the String.Split() method. ;)
  14. Replies
    2
    Views
    628

    VS 2013 [RESOLVED] Adding data-bound controls

    I'm following MSDN's walkthrough on connecting to a local database file: https://msdn.microsoft.com/en-us/library/ms171890.aspx
    I'm at the last part about adding data-bound control to the form. But...
  15. Replies
    4
    Views
    769

    Re: Problem with saving listbox

    What you can do is to split each line you read from the file into an array.


    For Each line As String In File.ReadLines(filename)
    Dim data As String() = line.Split("-")
    ...
  16. Replies
    2
    Views
    810

    VS 2010 Redrawing problem

    I'm making a level editor in Visual Basic, but I have some problems with the redrawing. I think I'm using GDI+ for drawing. Here's my code:

    Private Sub SplitContainer1_Panel1_Paint(ByVal sender As...
  17. VS 2010 Re: How do I make a detailed listview?

    Ah, thank you for explaining. The reason why I'm doing it visually is because I always make controls visually unless they are dynamic. And it also makes me understand the control before starting...
  18. VS 2010 [RESOLVED] How do I make a detailed listview?

    I need some help making a very simple detailed listview visually, not programatically. I have now added a listview to the form and added the columns I need. But how do I add rows to the list? When I...
  19. Replies
    2
    Views
    634

    VS 2010 Screenshot grabber

    I need some help with a screenshot function in my application. This is what I currently have:


    Dim bounds As Rectangle
    Dim screenshot As System.Drawing.Bitmap
    Dim graph As Graphics
    bounds =...
  20. Replies
    2
    Views
    594

    VS 2008 Re: Encoding problems

    I changed to unicode encoding and it seemed to work. But thanks for replying.
  21. Replies
    2
    Views
    594

    VS 2008 [RESOLVED] Encoding problems

    I'm trying to download a spanish site from the net and download the html source to my computer, but the spanish characters doesn't display right.
    "Almorzás" displays as "almorz�s", for example.
    ...
  22. VS 2010 Re: Form appears with white controls

    Yeah, probably the best idea.
  23. VS 2010 Re: Form appears with white controls

    I see. I think there's just something wrong with the filedownloader class, since all I do is just updaterDialog.close()
  24. VS 2010 Re: Form appears with white controls

    Thank you very much, this works excelent. You have no idea how long time I've been struggling with making an auto updater.
    Now I just have to make the downloaded version replace the old one.
    ...
  25. VS 2010 Re: Form appears with white controls

    Yeh, but the weird thing is that the form doesn't appear before the download is finished.
  26. VS 2010 [RESOLVED] Form appears with white controls

    I'm trying to make an autoupdater, so I've made it search for updates in the beginning and that works fine. But now when the update form is supposed to open, it goes a while and then it says "File...
  27. Thread: Auto Updater

    by kake_fisk
    Replies
    1
    Views
    638

    VS 2008 Auto Updater

    I'm trying to make an auto updater. It kind of works, but I've got some problems.
    I need to make the download threaded or something so you can use the program while downloading. I've tried the...
  28. Replies
    3
    Views
    1,309

    VS 2008 Re: Change application version

    Thank you, worked like a charm.
    But what's the difference between the file version and the assembly version then?
  29. Replies
    3
    Views
    1,309

    VS 2008 [RESOLVED] Change application version

    Is it possible to change the application version without publishing the application? Because I'm going to make an auto updater which needs some version information to work, but I don't want to have...
  30. Replies
    42
    Views
    4,596

    VS 2008 Re: Xor Encryption

    @cica
    Yeh, I'm aware of that. I'm just trying to keep the normal player from cheating. It's better than nothing you know. ;)

    @dbasnett
    I think you misunderstood me. I don't use keys larger than...
  31. Replies
    42
    Views
    4,596

    VS 2008 Re: Xor Encryption

    @yo mismo
    I've tried changing the encoding before and again it just returns a string full of questionmarks. :\
    And I also think your code will not do the same as you are xoring each byte, I don't...
  32. Replies
    42
    Views
    4,596

    VS 2008 Re: Xor Encryption

    Ah, I see the problem. It couldn't crypt when I used a too high key value. In my C++ game I use the key value 800, isn't this possible in VB?
  33. Replies
    4
    Views
    837

    Re: Save Downloaded File

    You can for example open the dialog box before you download the file. You can also save it to a temporary location before opening the dialog box.
  34. Replies
    42
    Views
    4,596

    VS 2008 Re: Xor Encryption

    @dbasnett
    Your code worked when I did a small modification on it. Thanks. :D

    @cicatrix
    I'm not trying to make an uncrackable one, but I'm trying to not let my players cheat on my game. ;)
    I'm...
  35. Replies
    42
    Views
    4,596

    VS 2008 Re: Xor Encryption

    @techgnome
    I don't think you can xor chars in VB as I got this error when I tried:


    @Minitech
    Always when I try your solutions, the returning string seems to be empty.

    @dbassnet
    Your code...
  36. Replies
    42
    Views
    4,596

    VS 2008 Re: Xor Encryption

    @dbassnett
    Yeh, that might be. I just found these functions on the net.

    @minitech
    I think your code is a bit wrong. I can't explain everything, but it's not the same as the C++ one at least. And...
  37. Replies
    42
    Views
    4,596

    VS 2008 Re: Xor Encryption

    @Troy
    I'm trying to xor encrypt a string. And I'm pretty sure I don't use it on the string because I convert it into ascii numbers.

    @techgnome
    I tried this:

    Public Function crypt(ByVal input...
  38. Replies
    42
    Views
    4,596

    VS 2008 Xor Encryption

    I'm having problems with xor encryption.
    In C++, I do it like this:

    string crypt(string input, char key)
    {
    string ret;
    for(int i=0;i<input.size();i++)
    {
    ret += input[i] ^...
  39. VS 2008 Re: [RESOLVED] Converting from string to double is invalid

    I figured, but now I need help with actually deleting it if it ends with "||".
    Is it possible to remove an index from an array without cloning the array?

    Edit: Just forget this, I think I'm doing...
  40. VS 2008 [RESOLVED] Converting from string to double is invalid

    I'm trying to delete the 2 last characters of a string if they are "||".
    This is my code:


    Dim MyReader As Microsoft.VisualBasic.FileIO.TextFieldParser
    MyReader =...
Results 1 to 40 of 208
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width