How to make a new control and move in runtime.
Hello, I am a recent convert from VB6 to 2010VB express. In .net, how would I add a control (lets say a panel), and move it down the screen based on the ticks of a timer. In VB6 I would use a timer...
View ArticleVS 2010 updating new values.
Here is the state problem : 6. Display the average GPA for all the students, the average GPA for the male students and the average GPA for the female students. Your application must update these three...
View ArticleHelp Object reference not set to an instance of an object.
/ using vb.net 2010 /using m.s access database i already finish my program and the program works perfectly by using a single table in Microsoft Access. but when i tried to add a new table and set a...
View ArticleVS 2010 Creating New Objects
I have a Class called Test. In this class, I have a List of Type Class1. When I create a New Test Object, I am wanting to setup the List of Type Class1. Should this be done in the New method of class...
View ArticleDimension and Input a 3x3 Array
How do you dimension and input a 3x3 array? This is my wrong attempt: Dim arr As Double(3,3) arr={1, 2, 3;4,5,6;7,8,9;} Please give other ways or methods of doing the same thing! Also ways of printing...
View ArticleVS 2010 Making games/websites in VB.Net2010
No I'm not asking how to do it, the information I'm asking for is simply, how well do games and websites run when written in VB.NET 2010 compared to other programming languages. Simple. 'I think
View Articlenot sure if right place to ask, could someone show me how to code these into...
Hi i am new to using vb since our professor recommended we study how to use it i'm currently still learning my ways around vb2010 and he gave us these question which we were suppose to practice how to...
View ArticleVS 2005 How To Make The Progress Bar A Shot-Power Bar?
I'd like to know how to make the Progress Bar a shot-power gauge/bar. In example, if the Minimum = 0, and Maximum = 100, when the Progress Bar's value comes to 100, it will decrease again to 0, the...
View ArticleVS 2010 [RESOLVED] Trouble with dates
Hello, I am having some troubles with dates. I have a piece of code that queries and fills a datagridview. On the form I have a textbox where I fill in the date of birth in dutch format (dd-mm-yyyy)....
View ArticleVS 2008 [RESOLVED] Datagridview combo column error
Hi Guys, I have a datagridview control in my form. It has a few combo box type columns. What I want is to dynamically populate them ? No databases. I am getting error "DataGridViewComboBoxCell value is...
View ArticleVS 2010 DataGridView Row Deletion
Hello. What code do i use to delete a row in a data grid view? I also have one more question regarding datagridview, however ill start a new thread to that. Thanks
View ArticleVS 2010 Add items from a listbox to a DataGridView column
Hello hope all is well, re my last message How do i add items from a listbox into a datagridview column box? Ive used this code, but it doesntadd the items in:...
View ArticleVS 2010 [DATASET]Small Problem
I have a combobox that is populated in the form's load event. Below i want to update a different textbox in the combobox's SelecedIndexChanged event The data in combobox is the primary key in the...
View ArticleVS 2010 Problem with Button dropdown menu
hi, I make a dropdown menu using button and contextmenustrip, everytime I click the button it will show the contextmenu I want to make when I click the button it will show and hide the contextmenu like...
View ArticleWrong ConnectionString
Using Visual Basic 2010 Express trying to get a connection: Code: Imports System.Data.SqlClient connectionStr="Data Source=.\SQLEXPRESS;AttachDbFilename="C:\path\Database1.mdf";Integrated...
View ArticleVS 2005 Rnd() Function - Only Randomizes 1 Number - Help
I have a game that is called a Penalty Shootout, I'm having trouble of Randomizing the Goalkeeper's Position after the shot, this is my code, Dim Goalkeeper As Integer Randomize() Goalkeeper =...
View ArticleVS 2008 ListView.Items Not Refreshing
Well, I have been working in a Folder Explorer using (Treeview,Listview w/ imageList And Menustrip.Items). So far it has been working all the code a put, but when I select a new type of file (ex: .jpg)...
View ArticleVS 2010 Phone Number Format Need Code for Errors
I have written a function that will take a phone number and format it to (xxx)-xxx-xxxx. Everything works however I need it to only run if the number is 10 digits long and as long as there are no...
View ArticleVS 2005 Moving A PictureBox To A Certain Location - Help
Attachment 97525 The PictureBox I'm talking about is the Ball, And There Is A Horizontal PowerPack Line Moving Down From The Top of the Goal, and A Vertical PowerPack Line Moving To The Right From The...
View ArticleTry...Catch Exception for connectionstrings
I am using a simple try..catch on my connectionstring in ado sql. I wonder if there is an exception better adapted to find an error to see if the connection is open or closed.
View Article