Forms :: Moving Arrays Between List Box's

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


ADVERTISEMENT

Forms :: Visit List Of URLs While Moving Progress Bar

Jun 2, 2010

I'm looking to be able to open a .txt file (with sites 1 per line) and visit all of those sites silently while moving a progress bar.

View 4 Replies

Moving Through Arrays, Selecting Certain Rows And Columns?

Feb 10, 2012

ames tile1 to tile 100Array is loaded from a textfile of 10,10 (not stored as a 10,10 just parsed from line to line, which I feel needs to be changed asap)Each tile is then given a corresponding graphic (e.g. grass, water, lava) and soon hopefully I will add interaction with certain tiles

View 2 Replies

Moving Items From One List Box To Another?

Mar 2, 2011

I have my random alpha-numeric generator giving me a list of 500 items. I need to be able to search the "random Plate listbox" by entering into a textbox. Partial matches will be displayed in listbox1. My code for searching the "random plate listbox" is not returning results.

Public Class PlateForm
Const numEntries As Integer = 500
Dim lb As New List(Of String)

[Code].....

View 4 Replies

Forms :: Linking Forms And Arrays?

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

Moving Items Between Two List Boxes?

Dec 16, 2009

I need to move items between two list boxes, I've never used list boxes before so this is totally new to me and I don't know where to begin, all I know is they work kinda like arrays.

So what I need is to move one or more items, from ListBox1, and move them to ListBox2 and vice versa

p.s. sorry to the mods just realised I havent been selecting a category to make my posts in, won't happen again.

View 6 Replies

Controls On Inherited Forms Moving Around?

Oct 28, 2009

I have setup some base forms with some bottons on it The buttons are situated in a panel.Both the panel and the buttons modifer properties have been set up as "Friend".The problem I have is when I inherit these base forms, the buttons seem to jump around by themselves allot

View 6 Replies

Forms :: Moving Batch To VB Application?

Aug 12, 2010

I've created a batch file on our domain controller to export users based on the OU they are in.

@ECHO OFF
ECHO This tool will export all users in the chosen Active Directory OU.
ECHO.

[Code]....

The form design is only a text box (txtClientID) and a Go button.

View 1 Replies

Moving Mutliple Controls/forms?

Jul 29, 2010

I have a lot of forms set up, probably about 10-15 so far (more to come). Some forms 'lay' on top of other forms, and each form contains multiple controls. I am discovering that my approach is not very likely to succeed in what I am thinking of doing.

Here is one example: LeftControlPanel form contains 5 controls, but 5 other forms 'lay' on top of it and use transparencies to load up bitmaps. Since I cannot parent the forms that 'lay' on top of the form, I cannot figure out a good way to move them.Is it logical that when I move LeftControlPanel to a different x location, I would just move all the forms that 'lay' on top of them as well?Seems like a clunky approach of moving one form since parenting the transparency forms will remove all the transparencies that are set up...

Is there a bit better logic I might be missing, or bite the bullet and start moving multiple forms at once?

View 1 Replies

Moving/clearing Array Between Forms

Jun 9, 2011

if i have 2 forms amd one module the module contains a public var user1 = string my first form has text box and button 2nd form a label and button now i enter text into text box press button form 1 closes form2 opens and label displays var contents i press button on form 2 form closes form 1 opens enter new text repeat the procudure and the label on form 2 still contains the information from the first time i ran the prog and wont change , its as if the var is locked?

stephen
form1 code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]......

View 4 Replies

Stop The Forms Moving To The Back?

Nov 20, 2011

I have an MDI running as the parent. How can you stop the forms moving to the back when they are open if you click in the any part of the MDI area. Also I notice if I have more than one form open it creates form instances on my windows task bar?

View 1 Replies

VS 2008 Moving Forms To A Different Project?

Nov 22, 2009

How can i move a form to a different project.

View 2 Replies

Splitting List Into 3 Different Arrays (5 Item In Each)

Apr 21, 2010

I have the following code that simply takes a list (length = 15) and splits it into 3 different arrays (5 items in each). Is there a way to achieve more efficiently?

For i As Integer = 0 To 4 Step 1
COURSE_Course1(i) = TempFullCourses.Item(i).ToString
Next i
For i As Integer = 0 To 4 Step 1
For c As Integer = 5 To 9 Step 1
[Code] .....

View 14 Replies

Storing Multiple Arrays Into A List

May 11, 2011

The scenario is:

1)A large 2 dimensional array (400,20)

2)The program needs to access particular chunks(for example (0,20) to (50,20)

3)The program will open multiple files and process each into it's own 2D array (400,20)

What I have right now is code capable of creating the array, but no way to store the array so that I can open a new file and process that data into another large array. Someone mentioned the generics List(of T) might be a good way to store each new array as you could use the Add function. I have done some research on the List(of T) class but I'm not totally convinced that is the way to go. I'm just looking for some direction as I've just started on .net this year.

View 7 Replies

Use Arrays To Fill Out A List From A Database?

Nov 30, 2010

My problem is that i am trying to use a list box to display all the data from one column in one table of my database. and so, i dont know how to do that although someone hinted at using an array, i'm just not entirely sure how also when the list of data is displayed i aim to have a 'select' button that will take the user to the record of the selected item from the box.

View 2 Replies

Waiting List With Arrays & Listbox?

Jan 3, 2010

I am making a project (Waiting List) where I am using arraylist(2) therefor I am entering 3 pieces of information.The information in the arraylist is then sent to a listbox

[Code]...

View 4 Replies

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

Setup A List Consisting Of Arrays Of Two Elements?

Feb 27, 2009

I need to set up a list consisting of arrays of two elements. Simple, right?

Like: (code snippet):

Dim strDataPoint(1) As String '2-element array
Dim lBiasCurve As New List(Of strDataPoint) 'list of 2-element arrays
Dim lPwrCurve As New List(Of strDataPoint) 'another list of 2-element arrays

But this gives me an error msg on 2nd and 3rd line: type strDataPoint is not defined....

View 8 Replies

Forms :: Application Unresponsive After Moving Window (when Running)?

Dec 8, 2009

I have an application (written in VB.net 2008) which reads a text file. Parses the record and uses the second field (a UK postcode) to match an Access database (SQL - Select * from Table1 ......), then writes a text file back out with the original input postcode plus several fields taken from the access database.

I have 3 counts happening during the process, records read, postcodes matched and postcodes not matched. I move these values to labels on the form, then every 50 records read, I refresh the form (me.refresh) to update the labels (showing the end user where the process is upto).When running, if I drag the window around the screen, or minimize then maximize, or click off the window to another window, the application seems to freeze and the counter labels do not refresh.

View 3 Replies

Forms :: Moving An Image In A Picture Box With Arrow Keys?

Oct 28, 2010

I'm currently working on a project for university, basically we were given an incomplete program to finish off with bonus points for adding addition features in.Part of the program is to move an image (a monkey) around the picture box (pen). Now to move the monkey we use 4 buttons on the form called Up, Down, Left and Right, however as we need to move the monkey around to test other parts of the program it gets annoying having to click on the button. As such I was able to get some code which allows me to move the monkey around using the arrow keys (I think you can all see the benefit of this). When I use the code in a blank form it works fine, however when I add a button onto the form the arrow keys will instead highlight the buttons.basically set up a button to disable all buttons on the form until a certain key is pressed, however I would prefer not to have to do this.

View 3 Replies

Moving Modules/classes/forms To A Common Folder?

Nov 23, 2009

I have two projects

a.sln and b.sln they have their own classes, modules and forms.

As I work on solution 'A' I devise a class and save it in solution A's folder. As the class develops, I now find a need for it in solution B.

How can I move it from solution A's folder to my Common folder then link it into solution A and B.

Currently I am doing this manually, Moving then linking to it. Is there a way to do this withing the IDE

View 14 Replies

Access Arrays From Many Child Forms?

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

Forms :: Does VB.Net Support Picturebox Arrays

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

Data Reader / Arrays Listbox And Checkbox List?

Jun 5, 2009

I have an app that the user picks items from a checkbox list. I have the items selected saved to a seperate db table. I want to be able to have the selected items repopulate as selected if the user reopens the web page.What I've tried:I've pulled the items selected previously back to a hidden list box which works but I can't figure out how to compare what is in that list box with all the items contained in the checkbox list (this is being populated by another seperate table in the db)I've tried just a straight query and used reader but keep getting errors about cast and if I switch it to a GetDecimal, when I try to see what it's pulling, it's not the data but maybe the index: See below:Does anyone out there have a sample of can help me figure out how to just have this stupid checkbox list reselect the items that the user previously selected and saved to the db?

[code]...

View 1 Replies

Displaying / Reading Data On Forms From Arrays

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

Forms :: Find Duplicates In Arrays And Count Them

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

Sharing Multi-dimensional Arrays Across Different Forms In VB?

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

User Input Arrays To Show In List Box On Separate Form?

Oct 27, 2010

I have created a form which has two things a list box and a button which is labeled "Input Values"The user should click "Input Values" and a new form will appear. This new form will ask the user to enter 10 values into a textbox and click ok after each value. These values are to be stored in an array and displayed in the listbox on the previous form.I am having trouble getting the values of the user to store into my array and displaying into a list box. I have this so far.

Private Sub OKButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKButton.Click

[Code]...

View 27 Replies

Stop The Forms Moving To The Back When They Are Open If Click In The Any Part Of The MDI Area?

Nov 20, 2011

I have an MDI running as the parent. How can you stop the forms moving to the back when they are open if you click in the any part of the MDI area. Also I notice if I have more than one form open it creates form instances on my windows task bar?

View 6 Replies

Create A Login System That Reads Usernames And Passwords For A List Of Arrays

Mar 25, 2009

I want to create a login system that reads the usernames and passwords for a list of arrays:[code]I have managed to code the program so it accepts the correct username and password and sends a error message when they don't match. The problem I'm having is when the user enters a username that isn't on my Username list. The program always crashes when I enter say "admin1000".[code]

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved