Search Results

Showing results 1 to 40 of 85
Search took 0.01 seconds.
Search: Posts Made By: williamrojas78
Forum: VB.NET Aug 26th, 2008
Replies: 3
Views: 326
Posted By williamrojas78
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 Get...
Forum: VB.NET Aug 26th, 2008
Replies: 3
Views: 326
Posted By williamrojas78
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...
Forum: VB.NET May 5th, 2008
Replies: 3
Views: 1,379
Posted By williamrojas78
Thanks a lot; it is all I needed.
Forum: VB.NET Apr 14th, 2008
Replies: 3
Views: 1,379
Posted By williamrojas78
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: 17,578
Posted By williamrojas78
Hi,

Here it is; first you read the array, then you read line by line and after that you place it in the grid.


myArray = Split(line, ":")

Dim i As Integer
dim val as
For i = 0 To...
Forum: C# Dec 28th, 2007
Replies: 1
Views: 1,437
Posted By williamrojas78
Hi

I am not sure if i understand completely but here: if you are trying to find an specific record on a data table the easiest way (for me) is to filter the table or dataview with the specified...
Forum: VB.NET Dec 27th, 2007
Replies: 7
Views: 15,054
Posted By williamrojas78
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...
Forum: VB.NET Dec 27th, 2007
Replies: 2
Views: 2,122
Posted By williamrojas78
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: 5,347
Posted By williamrojas78
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...
Forum: VB.NET Oct 9th, 2007
Replies: 1
Views: 1,929
Posted By williamrojas78
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: 4,954
Posted By williamrojas78
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: 2,369
Posted By williamrojas78
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...
Forum: VB.NET Oct 9th, 2007
Replies: 1
Views: 1,820
Posted By williamrojas78
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: 10,127
Posted By williamrojas78
The error message most likely means that there is an error in one of the sql statements.
which line do you get the error message? which SQL server are you using?
Forum: VB.NET Sep 26th, 2007
Replies: 1
Views: 950
Posted By williamrojas78
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: 9
Views: 9,577
Posted By williamrojas78
Hi

I just noticed that you are missing the field names in the sql command, you have:

Dim sqlstring As String = "INSERT INTO Titles VALUES ('2','1','0')"

and it should be:

Dim sqlstring As...
Forum: VB.NET Sep 14th, 2007
Replies: 1
Views: 2,305
Posted By williamrojas78
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: 9
Views: 9,577
Posted By williamrojas78
Hi
your code is not executing the command (i think); try this:


Dim MyConnection As SqlCeConnection
Dim sqlstring As String = "INSERT INTO Titles VALUES ('2','1','0')"

...
Forum: VB.NET Sep 14th, 2007
Replies: 5
Views: 1,828
Posted By williamrojas78
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...
Forum: VB.NET Sep 14th, 2007
Replies: 4
Solved: Going Insane!!!
Views: 949
Posted By williamrojas78
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...
Forum: VB.NET Sep 14th, 2007
Replies: 1
Views: 1,503
Posted By williamrojas78
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: 9
Views: 9,577
Posted By williamrojas78
This is relative to the PPC (mobile device) path.
That is the location of the database in the PPC - I use the same directory as my application.
Forum: VB.NET Sep 13th, 2007
Replies: 1
Views: 1,736
Posted By williamrojas78
hi

Provided you know the location of the file, use this:

button1.Image = Image.FromFile("myIcon.ico")

Hope it helps
Forum: VB.NET Sep 13th, 2007
Replies: 9
Views: 9,577
Posted By williamrojas78
Hi

I think the problem is that the syntax of your command is wrong.
You have:


conn = New SqlCeConnection("Data Source =".\ MyDatabase.sdf;"")


it should be:
Forum: VB.NET Sep 20th, 2006
Replies: 1
Views: 4,719
Posted By williamrojas78
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: 6,292
Posted By williamrojas78
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: 17,578
Posted By williamrojas78
Then you split the array when ":" is found.



'after you read the line
Dim myArray As Array
myArray = Split(line, ":")
Forum: VB.NET Aug 4th, 2006
Replies: 5
Views: 17,578
Posted By williamrojas78
Hi

It looks like you have a set of " " between the columns, so what i would do is split each line one at a time, something like this:




'after you read the line
Dim myArray As Array...
Forum: Visual Basic 4 / 5 / 6 Aug 3rd, 2006
Replies: 1
Views: 5,596
Posted By williamrojas78
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...
Forum: VB.NET Jul 31st, 2006
Replies: 6
Views: 4,551
Posted By williamrojas78
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...
Forum: VB.NET Jul 28th, 2006
Replies: 6
Views: 4,551
Posted By williamrojas78
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: 9,813
Posted By williamrojas78
That is the way you do it at designt time.
Is that what you mean? is what possible?
Forum: VB.NET Jul 27th, 2006
Replies: 6
Views: 9,813
Posted By williamrojas78
yes sure, the tablestyles can be done with code:



Me.DataGrid1.TableStyles.Clear()

'Step 1: Create a DataGridTableStyle & set mappingname to table.
Dim tableStyle...
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2006
Replies: 9
Views: 1,767
Posted By williamrojas78
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,827
Posted By williamrojas78
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,...
Forum: VB.NET Jul 25th, 2006
Replies: 6
Views: 9,813
Posted By williamrojas78
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...
Forum: Visual Basic 4 / 5 / 6 Jul 14th, 2006
Replies: 2
Views: 2,321
Posted By williamrojas78
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...
Forum: VB.NET Jun 30th, 2006
Replies: 2
Views: 3,720
Posted By williamrojas78
I mean, you have to connect to the table, and get the data from the field, and then add it to the listbox.
Forum: Visual Basic 4 / 5 / 6 Jun 30th, 2006
Replies: 7
Views: 2,159
Posted By williamrojas78
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

...
Forum: Visual Basic 4 / 5 / 6 Jun 30th, 2006
Replies: 3
Views: 2,655
Posted By williamrojas78
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
Showing results 1 to 40 of 85

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC