Search:
Type: Posts; User: kake_fisk
Search:
Search took 0.03 seconds.
-
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...
-
Try using the ItemDrag event instead of MouseDown to handle starting of a drag.
-
I can't seem to open your attachment.
-
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...
-
That worked like a charm. Thank you! :)
-
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...
-
Installing LocalDB worked like a charm. Thanks!
-
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...
-
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...
-
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...
-
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...
-
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...
-
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. ;)
-
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...
-
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("-")
...
-
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...
-
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...
-
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...
-
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 =...
-
I changed to unicode encoding and it seemed to work. But thanks for replying.
-
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.
...
-
Yeah, probably the best idea.
-
I see. I think there's just something wrong with the filedownloader class, since all I do is just updaterDialog.close()
-
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.
...
-
Yeh, but the weird thing is that the form doesn't appear before the download is finished.
-
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...
-
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...
-
Thank you, worked like a charm.
But what's the difference between the file version and the assembly version then?
-
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...
-
@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...
-
@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...
-
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?
-
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.
-
@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...
-
@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...
-
@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...
-
@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...
-
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] ^...
-
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...
-
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 =...
|
Click Here to Expand Forum to Full Width
|