Forum: VB.NET Aug 26th, 2008 |
| Replies: 3 Views: 142 Re: 2 Questions from a student ah, although this would work, you are doing it the wrong way.
Usually to set and get the proprties of a class you use the set and get
Public Property X() As Integer
Get
Return x
End... |
Forum: VB.NET Aug 26th, 2008 |
| Replies: 3 Views: 142 Re: 2 Questions from a student Hi
What is "setd1" and "setd2"?
i am not sure what is happening, but it looks to me that they are procedures that dont return anything, maybe?
about the second one,
Dim dados As New dado
dim... |
Forum: VB.NET May 5th, 2008 |
| Replies: 3 Views: 771 |
Forum: VB.NET Apr 14th, 2008 |
| Replies: 3 Views: 771 cout selected rows in datagrid Hi
I am trying to count the rows that has been selected by the user - either with CTRL or SHIFT. The only property that i see is 'CurrentRowIndex' or 'Currentcell' but it only gives me the last... |
Forum: VB.NET Mar 19th, 2008 |
| Replies: 5 Views: 11,928 |
Forum: C# Dec 28th, 2007 |
| Replies: 1 Views: 973 |
Forum: VB.NET Dec 27th, 2007 |
| Replies: 5 Views: 7,863 Re: Inserting Data into the database using vb.net hi
have you tried binding the textboxes to the dataset? Then all you have to do is update the database when the dataset where you are storing all your data has changed and you dont have to manually... |
Forum: VB.NET Dec 27th, 2007 |
| Replies: 2 Views: 1,035 Re: vb.net n dataset hi
this is basically what you have to do:
Dim ds As New DataSet
Dim da As New OracleDataAdapter
Dim cmd As New OracleCommand
Dim connection As OracleConnection = New OracleConnection |
Forum: VB.NET Oct 9th, 2007 |
| Replies: 2 Views: 4,427 Re: Need simple code for VB.NET each item in a combo box has an index:
index = 0 for first item
index = 1 for second item
index = 3 for third item
...etc
Then you can compute "SCORE" by adding the indexes of the combo boxes... |
Forum: VB.NET Oct 9th, 2007 |
| Replies: 1 Views: 1,078 Re: delete image from source code Do you want to delete the image or the piece of code that displays the image?
If you are saving the information on the PC, are you saving the image in the PC? Do you know the name and location of... |
Forum: VB.NET Oct 9th, 2007 |
| Replies: 1 Views: 3,255 Re: update the db using values in a datagrid Hi,
I noticed you are using the oledb classes, so why don't you use a oleDbCommandBuilder to update your database? The command builder will create the Insert, update, delete commands automatically... |
Forum: VB.NET Oct 9th, 2007 |
| Replies: 6 Views: 1,566 Re: Checkbox on database Hi
What is the type of column "VT"; if it is not of type "bit" probably the FALSE - TRUE statements won't work. Otherwise it should work.
I make the same evaluation but i use a dataview instead and... |
Forum: VB.NET Oct 9th, 2007 |
| Replies: 1 Views: 773 Re: Set the starting form to set up the start form go to the project properties and in the application tab, startup object select the form you want to open first. |
Forum: VB.NET Oct 9th, 2007 |
| Replies: 2 Views: 5,010 |
Forum: VB.NET Sep 26th, 2007 |
| Replies: 1 Views: 643 Re: Convert it into application Hi
You have to create a setup and deployment project.
microsoft website has a walkthrough at this location:
http://msdn2.microsoft.com/en-us/library/k3bb4tfd(VS.80).aspx |
Forum: VB.NET Sep 17th, 2007 |
| Replies: 8 Views: 4,806 |
Forum: VB.NET Sep 14th, 2007 |
| Replies: 1 Views: 1,355 Re: Wish to display "No records found." Hi
Do you want to display a message box?
If that is the case, then you have to evaluate the number of records in the database, if zero, then display a message.
If you don't want to dislpay... |
Forum: VB.NET Sep 14th, 2007 |
| Replies: 8 Views: 4,806 |
Forum: VB.NET Sep 14th, 2007 |
| Replies: 5 Views: 1,207 Re: Frame on top on each other Hi
What is the frame you are using? i am using a GroupBox1 and GroupBox2 and it works fine.
I also tried it with panel 1 and panel2 and works fine.
Also, what do you have in the frames? Do you have... |
Forum: VB.NET Sep 14th, 2007 |
| Replies: 4 Views: 648 Re: Going Insane!!! Hi
Probably the easiest is to use a datagrid; then you will have to compare the number of sales of the week and change the row accordingly.
Who is going to be inputting the data of the number of... |
Forum: VB.NET Sep 14th, 2007 |
| Replies: 1 Views: 956 Re: changing part of URL PATH Hi
You probably will have to find the number of tables in the dataset, and then go into a loop to retrieve the data. If the tables always start with the "od_minicard2_xxxx" then it is probably a... |
Forum: VB.NET Sep 14th, 2007 |
| Replies: 8 Views: 4,806 |
Forum: VB.NET Sep 13th, 2007 |
| Replies: 1 Views: 960 |
Forum: VB.NET Sep 13th, 2007 |
| Replies: 8 Views: 4,806 |
Forum: VB.NET Sep 20th, 2006 |
| Replies: 1 Views: 3,149 Re: Copy one database to another HI
Probably what you will have to do is to create connection (like an ADO connection) to the databases then copy the contents of database #1 and paste them into athe databse #2. You can copy the... |
Forum: VB.NET Sep 20th, 2006 |
| Replies: 3 Views: 4,304 Re: Modify data in Datagrid Hi Basha
To change the data in the database itself you have to first see if the dataset has changes and then update the database. The changes you make to the datagrid will be reflected in the... |
Forum: VB.NET Aug 7th, 2006 |
| Replies: 5 Views: 11,928 |
Forum: VB.NET Aug 4th, 2006 |
| Replies: 5 Views: 11,928 |
Forum: Visual Basic 4 / 5 / 6 Aug 3rd, 2006 |
| Replies: 1 Views: 4,014 Re: VBA Macro Coding Question Hi
you can create a shortcut key in excel by going to tools --> macros; there highlitgh the macro that you want to run and click option. You will see the shortcut key option there.
Now, since you... |
Forum: VB.NET Jul 31st, 2006 |
| Replies: 5 Views: 3,094 Re: VB 2005 Trigonometric Functions Hi
It looks like you only have problems with the values where the answer is zero, one or undeterminded, right?
Why don't you make your own sine, cosine, etc functions and evaluate the vaue if the... |
Forum: VB.NET Jul 28th, 2006 |
| Replies: 5 Views: 3,094 Re: VB 2005 Trigonometric Functions Hi
what is going on is that the functions round the numbers to a certain number of digits. pi will be a floating point value, and floating point numbers have a finite number of digits.
For... |
Forum: VB.NET Jul 28th, 2006 |
| Replies: 6 Views: 7,094 |
Forum: VB.NET Jul 27th, 2006 |
| Replies: 6 Views: 7,094 Re: It's all about datagrid yes sure, the tablestyles can be done with code:
Me.DataGrid1.TableStyles.Clear()
'Step 1: Create a DataGridTableStyle & set mappingname to table.
Dim tableStyle As New... |
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2006 |
| Replies: 9 Views: 1,389 Re: Can some one help me with this code plz Hi
You have to set the workbook you want to search, and then set the range. I guess the range is always going to be the same.
Somthing like this will open the workbook and set the sheet1 as the... |
Forum: VB.NET Jul 25th, 2006 |
| Replies: 4 Views: 1,429 Re: A quick question Hi
in the last sectio where you try to print, you set: stringtoprint = ListBox1.SelectedItems.ToString
It is going to return only the selected item. You have to add all the items first, something... |
Forum: VB.NET Jul 25th, 2006 |
| Replies: 6 Views: 7,094 Re: It's all about datagrid Hi
The way I populate a datagrid:
1- Create a dataset and a dataview.
2 - Get the database.
3 - Fill the dataset with the data from the database table.
4 - Set the dataview table to the dataset.
5... |
Forum: Visual Basic 4 / 5 / 6 Jul 14th, 2006 |
| Replies: 2 Views: 1,785 Re: Basic Variables Question Hi
Are you working with multiple excel documents or with multiple worksheets in the same document. I guess it does not really matter.
i noticed you have an error in your formula, if you want to set... |
Forum: VB.NET Jun 30th, 2006 |
| Replies: 2 Views: 2,584 |
Forum: Visual Basic 4 / 5 / 6 Jun 30th, 2006 |
| Replies: 7 Views: 1,655 Re: Control arrays Hi
Yuo can not create a control just like that. You have to set the control to something. That is the error that you are getting.
This will do the trick:
Dim sam(15) As TextBox
For i =... |
Forum: Visual Basic 4 / 5 / 6 Jun 30th, 2006 |
| Replies: 3 Views: 2,073 Re: DDE Poke - Stay minimized There is an option that allows you to turn off the visibility, so the application (word) will not show up at all. Why don't you turn it off, execute your commands and then turn it back on.
regards |