Member Avatar

Hi I am doing some coding with the WebBrowser element and was wondering if there was a way to create custom error pages i.e. if something goes wrong it navigates to this page instead of the default IE8 one. I did a quick google but got nowhere. If anyone has any experience with this it would be fantastic. Cheers, I appreciate all contributions as always :)

Member Avatar
+0 forum 2
Member Avatar

Hi guys I have a standard scoring algorithm but I need to help on a piece of code to only execute the scoring algorithm at certain times. I want it to be triggered by dates, but the problem arises if the program is used after 2 (or more) dates have passed, the first date will not be added as the second date is the newest and therefore the one that triggers the scoring algorithm. Extra information: - The scoring algorithm gets the scores for that week, which are stored in a text file. Please could someone help with this problem. …

Member Avatar
+0 forum 5
Member Avatar

Hi guys, I have a total of 72 link labels on a form and I want them to do a similar task. Is there a way to accomplishing this without writing each labels individual code? Example function of the link label [CODE] Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked Listbox1.Items.Add(Label1.Text) variable = label1.text End Sub Private Sub LinkLabel2_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel2.LinkClicked Listbox1.Items.Add(Label2.Text) variable = label2.text End Sub[/CODE]

Member Avatar
+0 forum 6
Member Avatar

Hi guys I am trying to declare a array within a structure, and it is not working. I'll paste the code below and if anyone can help it would be greatly appreciated. [CODE]Structure league Dim id As String Dim name As String Dim players(20) As String End Structure Dim leagues(100) As league[/CODE] So I want each league to have a single name and id and 20 players. Is there a way other than writing out dim player1, player2 etc.

Member Avatar
+0 forum 3
Member Avatar

Ok so I am creating this scoring game using motorsport drivers. The scores are in variables for example score.vettel is vettels score for the current gameweek. A player has 6 drivers d1,d2,d3,d4,d5,d6 which are in the variable player(x).d1 where x is the player number. Maxsize is the number of players I have (so it loops from the first user to the last) [CODE]For x = 1 To Maxsize If player(x).d1 = "VETTEL" Then player(x).score = player(x).score + score.vettel End If Next[/CODE] Of course I would have to do this loop for all drivers in all driver slots (d1,d2,d3,d4...) [CODE]For x …

Member Avatar
+0 forum 2
Member Avatar

Hi I am wondering how to point to a relative file that would be the same on all computers. How would I go about this. Many Thanks

Member Avatar
+0 forum 4
Member Avatar

For my user system, I require each user to have a unique id. The reading in and saving of the user data is all done, but now I'm focusing on adding new users. In my add user dialog, I have the information fields required to create a new user, one of which is the ID (which must be unique). For this I have created a function that I thought would always give a unique id but it does not. I'll paste the code below and hopefully you can tell me what I've done wrong!! [CODE] Function getnextuserid() Dim id As …

Member Avatar
+0 forum 2
Member Avatar

Hi, I'm coding my program on VB.net and I take my laptop when I am away and use my PC back at home. I know this may sound simple, but what is the easiest way to get the project on another PC. For example, in Java I know that you can export the project file for easy import on another computer but I have found no easy way for VB.net and Visual Studio. At the moment I've created a new project and pasted all the form elements and code. Please tell me there is a easier way!!! Is there something …

Member Avatar
+0 forum 3
Member Avatar

Basically I use text files to hold the program data, which is loaded in to variables when the program starts. I use StreamWriter to write to the text files when they update within the program. This is fine although the writer adds a extra line when I do not want this, which causes the program to error on the next use. This is what I mean: [CODE]For x = 1 to 4 FileWriter.WriteLine(user(x) & "," & pass(x)) Next[/CODE] Comes out as (the text doesn't matter here) 'line1 'line2 'line3 'line4 | <---- but the cursor goes here making the application …

Member Avatar
+0 forum 3
Member Avatar

Hi I know there are some posts addressing the same issue but unfortunately I do not understand how to do it and was wondering if someone could help. I would like to cycle through pictureboxes, in this example using the 'n' variable To further explain what I would like to do, I need the n to be the same for the array as the picturebox number, looping from 1 to 24, and depending on what data is in that array, controls what picture the corresponding picturebox displays. I know this code won't work, but this is me trying to demonstrate …

Member Avatar
+0 forum 2
Member Avatar

Hi Am new to this and was wondering if anyone knew a solution to this problem. I am wanting to get information from a text file into different arrays. My current text file has a new line for each driver but I would like it to look something like this: Hamilton,Button,Alonso,Massa,Webber,Vettel Di Resta,Sutil,Rosberg,Perez,Buemi,Glock Each line of the text file represents a player and each player has 6 drivers. Each driver is seperated by a comma (,) which is what I need the program to understand. So for example I would want to import 'player one' drivers into the array: playerdrivers(1,1) …

Member Avatar
+0 forum 2

The End.