Linking Forms And Arrays?
Nov 1, 2010
I am new to vb.net. I am currently programming Space Invaders. Firstly i have two forms What is code for linking form 1 to form 2?
Secondly i have coded and tried to understand arrays. I currently Have
Private Sub tmrUFO_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrUFO.Tick
[code].....
View 1 Replies
ADVERTISEMENT
May 29, 2010
I am new to vb.net. I am currently programming Space Invaders. Firstly i have two forms What is code for linking form 1 to form 2?
[Code]...
View 4 Replies
Jan 29, 2009
I have one main form and another dialog box that is used to search records. What code is used to declare a public variable in the dialog box form in order to get the record found by the user displayed back into the main form?
View 4 Replies
Mar 1, 2011
i want to link text box of my software with the text box of the web page (i.e values entered in my software should be linked to values of web page E.g. username entered in software should be linked with username entered in yahoo/facebook site)
View 1 Replies
Feb 13, 2012
I have already made my GUI with multiple forms using VB2010 and made buttons that would open and close them (me.hide and form#.show)My problem is how could I use a variable I've computed and displayed on a sub-total (cashier of sorts) to be used on the main form where it would display the bill on a listbox?Here's how the button works to compute for the item sub total
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cstotal As Integer
[code].....
View 10 Replies
Jan 13, 2011
Linking Comb Box Items to a Button to load a new formCombo box 3 has 2 items.....Item 1, Item 2i want it so if you click on the button when item 1 is selected it will load form3 and if item 2 is selected the same button will load form 4
View 1 Replies
Nov 29, 2009
I have 1 project with about 7 forms. On each form I have 6 x 4 responses radio buttons (i.e. a multiple choice quiz). If the correct response is selected, the examinee gets 1 point, else 0. At the end of the quiz, the examinee can click a button that will add up all the correct responses & display the % correct. How do I program the button to do this given that data are on 7 different forms? [URL].
View 13 Replies
Oct 26, 2010
I want to access my arrays from many child forms. Where should my arrays and declarations be? and what is the code to access them?
View 12 Replies
Dec 22, 2009
I am trying to design a basic version of spaceinvaders. I have 6 pictureboxes on my form and the idea is to add a value to the picbox.top property that moves the boxes down at a certain time and speed that i have set in my timer control. The problem i have is i am trying to set properties for all the pictureboxes at the same time by using arrays.
An example would be
dim mypic() as picturebox = {pic1, pic2, pic3, pic4, pic5, pic6}
pic1.top = 10
[code].....
View 14 Replies
Apr 22, 2010
I'm currently building a program where there are two list box's and a button to copy the selected array item in listBox1 to listBox2 in a separate array.[code]
View 2 Replies
Feb 25, 2009
I am having some trouble with some data I want to display on a form. The data is in a 2-D array, call it myarray(x,y). My attempts to display it have so far not worked. Similarly, I also need to read this data from the form back into an array for further calculations.
View 3 Replies
Dec 23, 2009
This is my problem: I have an array with dates in it and I want a list with the dates and how much that date is sequel to the amount of that dates in the array.
This is my code so far:
arrsVerschillendeDagen(iTellerke) is declared on moduleniveau
arriMaand(iTellerke) is declared on moduleniveau
arriJaar(iTellerke) is declared on moduleniveau
I have a subroutine too that redimension my arrays.
Private Sub FillArray()
For iCounter As Integer = 0 To arriDag.Length - 1
arrsVerschillendeDagen(iCounter) = arriDag(iCounter) & "/" & arriMaand(iCounter) & "/" & arriJaar(iCounter)
Next
'result: 14/10/2009, 20/12/2009, 20/12/2009, 14/12/2009, 14/12/2009, 14/12/2009
[Code] .....
View 1 Replies
Jul 9, 2011
I have a very simple 2D array, it holds a list of song titles, their genre, and their runtime. frmMain loads the array from a text file and allows me to manipulate it and boil it down to a desired (implicitly sized) playlist. i want to THEN pass that playlist array to a second form, frmPlaylist The problem i'm running into....When frmPLaylist calls the Property from frmMain I receive an error that VB cannot convert the string value to a two dimensional array. Simplified...frmPlaylist is all locked and ready to receive a 2D array, but frmMain seems to only be sending a single string variable. on frmMain
Public ReadOnly Property PlaylistOut() As String
Get
Return mstrTimedPlaylist(,)
[code].....
View 1 Replies
May 15, 2009
I am having 3 radio buttons and a button The codes should be added to the button_click event, when ever the radio button is selected and the button is click then, The codes should determine which button is selected and assign it to a variable. Create a two parallel 1-dim arrays and populate it with the data below:
[Code]...
View 10 Replies
Jun 27, 2012
I'd like to give a homework assignment to a person learning VB.NET. I'd like it to use basic inheritance and a variety of data structures including queues, lists, arrays, or stacks in a windows forms application. I was thinking of a pizza-ordering application. This would allow them to utilize some basic inheritance and practice using .NET UI elements.
View 2 Replies
May 9, 2010
In VB6 I load a recordset containg all of the records (6 fields per record)in a table into an XArray and then manipulate the records in the array and then write them back to the original table. The array issorted by the first field (1 to maybe 8000 or more) I need to find records in the array by an ID field and then move them (because of some external criteria that happens many times) from say number 400 to number 375. Then all of the other records between 375 and 399 were renumbered up 1 to fill the gaps left by the move.
The XArray worked well as it could find and also move to a next record easily to facilitate the revisions to each record quickly. Everything is done in VB6 in code and nothing visual needs to be shown to the user until say 2000 of these external changes are complete. What is the best, most efficient way to do this in the .Net framework in VB2010. Datasets, Dataviews. tableadapters, arrays. enums ?
View 3 Replies
Dec 10, 2009
My assignment is to have a user enter in big integers using what i think is two parallel arrays. I got this far but now im stuck. I think i need to actually convert the text box input into an array but i do not know how to do that. I am all over the place in this project.
'Created/ Revised by: Jessica Falcetta
'Cap 204 Final Project: Big Integer Project
'Project Purpose: To calculate large integers through parallel arrays
[CODE]...
View 5 Replies
Feb 2, 2010
I have a VB.net console app and I am opening a function in a dll written in fortran. I am passing 3 arrays through the function by reference. When they come back out the otherside they ahve all tunred to arrays of only one element And that element is 0.I read on the internet somewhere that when doing this kind of thing it is a good idea to only pass the first element of the array into the function.I tried changing my function declaration to accepting single elements rather than single dimensional arrays, and now the arrays are the same length before and after the function call, but they don't seem to be changing at all, so i'm not sure that this is working
View 1 Replies
Oct 30, 2010
the statement Dim state(49) As String and maintain a list of certain states. The list of states should always be in alphabetical order and occupy consecutive elements of the array. The buttons in the program should give the user the following options: (a) Take the state specified by the user in a text box and insert it into its proper position in the array. If the state is already in the array, so report. (b) Take the state specified by the user in a text box and delete it from the array. If the state is not in the array, so report. (c) Display the states in the array. "
Private Sub states_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
state(0) = "Alabama"
[code]....
View 1 Replies
May 3, 2010
I was wondering if anyone knows a built in method ( LINQ say or a LAMBDA expression or other way ) that you can compare2 arrays - collections that would be valid for an equivalent 3rd array - collection which is a combination of the 1st two.
As an example consider;
* * *
A L E
[code].....
View 17 Replies
Oct 13, 2009
How can I sort three arrays so they are sorted together (the other two arrays are in sync with the first)?unsorted unsorted unsortedarray1]CODE]....
View 9 Replies
May 4, 2009
I am currently doing a project which is to be linked with another project. I.e., when I click on some button in my current project's page I should get a page from the other project..
View 2 Replies
Jul 9, 2009
I have an e-mail that i send out and everything works fine exceptthe hyperlink doesn;t link.
taskMessage = <a href="C:\Program Files\Microsoft Office\OFFICE11\powerpnt.exe"> Powerpint </a>
myEmailClass.SendEmailMessage("myemail", "your email", "You have a new stalker",
[code].....
View 3 Replies
Aug 12, 2009
I got 3 tables in database namely A,B,C. how am i going to link the column a in A and column b in B to table C so that table C can have both my data a and b?
View 3 Replies
Mar 7, 2009
was just wondering if it's possible to link up excel and vb so that data can be inputted into vb and then transferred to excel which would carry out calculations using functions and send the data back.
View 2 Replies
Mar 17, 2011
I'm trying to do is access a DLL that is outside the original EXE's file structure. So like this
C: estexe estexe.EXE 'The EXE that needs to access the DLL
C: estdlls
eturnstring.dll 'The DLL I'm trying to access.
So far everything I've tried has failed. I keep getting a FileNotFoundException.
I've added the following code to my app.config
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
[Code]....
View 3 Replies
Apr 26, 2011
I've recently decided for my VB final that I'd like to tackle something my professor and I discuss constantly; portable game server apps.
What I'm wanting to do, essentially, is create just a rudimentary programme that allows you to check the server status of either the north American or European servers for the game Rift and just (instead of opening your default browser, which I know how to do already) displaying the info in a listbox inside the programme itself.
The information I have to work with (aside from the obvious direct .php link to the web page) is two separate .xml links that contain all the information that is contained on their webpage. I could easily just turn these .xml files in an access database but I want something dynamic rather than static, but I honestly have no clue of how to turn this info I have into something I can actually use in my programme lol.
View 7 Replies
Feb 3, 2010
I'm creating a system (for a project) that is based on a vet.I want to create a combo box that has a list of different animals (e.g. Dog or Cat etc.)and when an animal is selected,a group box, with loads of checkboxes inside appears. Then the user can tick a check box (a vaccine to be given to the animal) and the record is saved to a database.I have hard coded this to work, but I want a more sophisticated code set, that links to SQL so that when a new vaccine is to be added, I would only need to add it in a table, in the database. I don't know where to start for this could any one give me a nudge in the right direction?
View 2 Replies
Sep 18, 2010
Individually the Draw red and draw white work. The delays work.When in series the only color seen is the last color. Why? [code]
View 5 Replies
Feb 25, 2009
What are the main functions needed to create a .dll file in vb.net which needs to be Explicitly linked i.e at run time to an application Plz post me an equivalent code snippet in VB.Net
Explicit run-time linkingDLL files may be explicitly loaded at run-time, a process referred to simply as run-time dynamic linking by Microsoft, by using the LoadLibrary (or LoadLibraryEx) API function. The GetProcAddress API function is used to lookup exported symbols by name, and FreeLibrary — to unload the DLL.
[Code]...
View 2 Replies