Forum: VB.NET Jul 22nd, 2009 |
| Replies: 1 Views: 162 This sounds like a homework assignment... I don't want to simply give you the answer. What ideas have you come up with so far? |
Forum: VB.NET Jun 3rd, 2009 |
| Replies: 14 Views: 910 Yes; first of all, MySQL is supported by many hosting companies. Secondly, if it is web based, then you lose any benefits to using Access. I would say MS Access's benefits really only come into... |
Forum: VB.NET May 10th, 2009 |
| Replies: 14 Views: 910 My general rule of thumb is this: if the database is going to be used on a single workstation or a local network and by a relatively few number of people, then use MS Access, but if the database... |
Forum: VB.NET May 6th, 2009 |
| Replies: 10 Views: 973 You are getting error 1004 because of the line:
With Selection.QueryTable
Since you have this line, you need to make sure that the selected cell when you run the code is part of the query... |
Forum: VB.NET May 5th, 2009 |
| Replies: 10 Views: 973 Are you trying to allow the user to type in several quote values, all right under each other, and have the query show the data for each of those quote values?
You can try something similar to... |
Forum: VB.NET Apr 30th, 2009 |
| Replies: 10 Views: 973 If the code in the previous post did work, then I would try the following code:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 27/04/2009 by User
' |
Forum: VB.NET Apr 30th, 2009 |
| Replies: 10 Views: 973 Just so I'm clear, the code in the previous post does work, but you want to be able to select which number is selected (instead of always just showing number 5N8380). Is that correct? |
Forum: VB.NET Apr 27th, 2009 |
| Replies: 10 Views: 973 As far as your error.. can you show the original code, which I assumed worked, and the modified code so that we can see the changes you made.
On the line you referenced, you have the following:
... |
Forum: VB.NET Apr 24th, 2009 |
| Replies: 10 Views: 973 Here is a link to a file that shows how to connect to an Access database from Excel: http://www.oecd.org/dataoecd/55/15/35199750.pdf
It is dated and uses an older version of office, but the... |
Forum: VB.NET Mar 15th, 2009 |
| Replies: 3 Views: 350 Try replacing the line
Console.WriteLine(vbTab(3) & "Menu" & vbNewLine)
with
Console.WriteLine(vbTab & "Menu" & vbNewLine) |
Forum: VB.NET Mar 15th, 2009 |
| Replies: 3 Views: 350 You need to change the line:
Console.WriteLine("$" & i * 100 + 200 & "-$" & i * 100 + 299 & " is " & salaryRange(i + 1))
to
Console.WriteLine("$" & i * 100 & "-$" & i * 100 + 99 & " is " &... |
Forum: VB.NET Mar 12th, 2009 |
| Replies: 2 Views: 437 There are several approaches:
FIRST APPROACH
1) Have a page to select an applicant.
2) When the user selects the applicant, a page comes up showing the details of the applicant.
3) On that... |
Forum: VB.NET Mar 4th, 2009 |
| Replies: 1 Views: 848 If you don't give the entire path of the program, then Windows will search specific directories for that program.
You can change which directories it searches, but the common ones are c:\windows,... |
Forum: VB.NET Feb 26th, 2009 |
| Replies: 3 Views: 303 Okay... I think I'm understanding this a little better, but I still have a few questions
(1) Is SHTS% the scoring percentage you are talking about?
(2) You mention the scoring percentage of the... |
Forum: VB.NET Feb 26th, 2009 |
| Replies: 3 Views: 303 Well, I'm not sure exactly what you are trying to do, but I do have a few comments.
I noticed this block of code in the playButton_Click subroutine:
If Label1.Text = "Home Team... |
Forum: VB.NET Dec 6th, 2008 |
| Replies: 2 Views: 399 Here's a link on how to read from and write to files in vb.net:
http://www.freevbcode.com/ShowCode.asp?ID=4492 |
Forum: VB.NET Nov 30th, 2008 |
| Replies: 9 Views: 1,322 Go to this site and look at Prims algorithm; while it doesn't make the hardest mazes, it is a simple algorithm to start with: http://www.astrolog.org/labyrnth/algrithm.htm
What you need to do is... |
Forum: VB.NET Nov 28th, 2008 |
| Replies: 9 Views: 1,322 To help you in the right direction, for a maze program I made, I had a class called cell. The cell class had the following properties: bottomWall, leftWall, visited, enabled.
The bottomWall and... |
Forum: VB.NET Nov 27th, 2008 |
| Replies: 9 Views: 1,322 First, you need to create a PictureBox. Then, you need to create code to generate a maze in an array. Once the maze is generated, you need to create code to display the maze in the PictureBox based... |
Forum: VB.NET Nov 26th, 2008 |
| Replies: 10 Views: 1,944 Instead of declaring each number in a separate variable, you should use an array to store the numbers. Once you have them in an array, you then need to decide on a sorting method. There are many... |
Forum: VB.NET Nov 24th, 2008 |
| Replies: 9 Views: 1,322 There are several maze generation algorithms. You can go here to see a few examples.
http://en.wikipedia.org/wiki/Maze_generation_algorithm
http://www.astrolog.org/labyrnth/algrithm.htm |
Forum: VB.NET Nov 22nd, 2008 |
| Replies: 1 Views: 700 Here is some example code of how to set up an array:
'Declare Array
Dim properties(3, 1) As String
'Set values of Array
properties(0, 0) = "Plaza"
... |
Forum: VB.NET Nov 22nd, 2008 |
| Replies: 1 Views: 1,321 You will need to use the LIKE operator with the % wildcard. There's more information here:
http://www.techonthenet.com/sql/like.php |
Forum: VB.NET Nov 22nd, 2008 |
| Replies: 2 Views: 1,409 You mention you get the same sum and average no matter which number you put in. Which line of code are you referring to when you say "for whatever number I put in".
Secondly, the following line
... |
Forum: VB.NET Nov 22nd, 2008 |
| Replies: 2 Views: 923 Add the following code to the on Click event of each of the comboboxes:
Me.ComboBox1.SelectedIndex = -1
Replace "ComboBox1" with the name of each comboBox. |
Forum: VB.NET Nov 18th, 2008 |
| Replies: 2 Views: 767 When I have a lot of information to show, I use the TabControl control. This allows users to click on different tabs to view additional data. However, to get back to your question, you can use... |
Forum: VB.NET Nov 15th, 2008 |
| Replies: 1 Views: 293 Hi, welcome. If you need any help with Visual Basic, please feel free to let us know here. If you are just wanting to introduce yourself, please use the following forum:
... |
Forum: VB.NET Nov 8th, 2008 |
| Replies: 6 Views: 3,330 I don't see how this makes a 2D array in to a 1D array. All it does is loop through all the 'cells' of the array and stores a number as Index. What, by the way, is rowNum? It is neither declared... |
Forum: VB.NET Nov 5th, 2008 |
| Replies: 3 Views: 462 |
Forum: VB.NET Nov 5th, 2008 |
| Replies: 1 Views: 474 Try this:
Dim str As String
str = """House""" |
Forum: VB.NET Nov 2nd, 2008 |
| Replies: 2 Views: 839 What I would suggest would be to change strInputQuiz into an array that holds 5 elements. When you use the InputBox, assign each InputValue to a different element within the array.
I didn't see... |
Forum: VB.NET Nov 2nd, 2008 |
| Replies: 5 Views: 1,010 What is the purpose of having the class ArrayTest? I would recommend just having the array in the Sub New().
Please take a look at this code:
Public Sub main()
'Code to create Seats... |
Forum: VB.NET Nov 2nd, 2008 |
| Replies: 2 Views: 406 Since this sounds like an assignment for class, I will try to point you in the right direction and let you finish things off... let me know if you need more help.
1) You will probably want to use... |
Forum: VB.NET Nov 2nd, 2008 |
| Replies: 5 Views: 1,010 I guess I'm still not following... From your code, you are creating an array correctly with the lines
Dim test() As Boolean
test = New Boolean(0 To 10) {}
To read an element from the... |
Forum: VB.NET Nov 2nd, 2008 |
| Replies: 1 Views: 444 I'd be glad to help, but I'd like to know of any ideas you have concerning using an array in the code. Where do you think it would be most appropriate for one. This sounds like a homework... |
Forum: VB.NET Nov 2nd, 2008 |
| Replies: 2 Views: 573 Can you give us more information? Is InStr(txtOutput.Text, username) ever true? What does txtOuput.text look like within the first If block? What does count equal within the If block? I just want... |
Forum: VB.NET Nov 1st, 2008 |
| Replies: 1 Views: 959 Here's a line to a site that shows how to read from a text file:
http://www.astahost.com/info.php/text-file-operations-vb-net_t6372.html
As far as writing to console, you can use this code:
... |
Forum: VB.NET Nov 1st, 2008 |
| Replies: 5 Views: 1,010 I guess I don't know what you need help with. Do you need to know how to use a 2-d array? The problem you posted does not required a 2-d array.
It looks like you understand how to use a 1-d... |
Forum: VB.NET Oct 30th, 2008 |
| Replies: 3 Views: 462 You can try code similar to this:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim newForm(1) As Form
... |
Forum: VB.NET Oct 23rd, 2008 |
| Replies: 3 Views: 512 The problem you are running into is that the timer is never set to Enabled=False
After the interval, the time does not become disabled, but rather, runs the code in its block again.
Try... |