User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 457,372 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,263 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 85
Search took 0.01 seconds; generated 1 minute(s) ago.
Posts Made By: williamrojas78
Forum: VB.NET Aug 26th, 2008
Replies: 3
Views: 142
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
Re: cout selected rows in datagrid

Thanks a lot; it is all I needed.
Forum: VB.NET Apr 14th, 2008
Replies: 3
Views: 771
Posted By williamrojas78
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
Posted By williamrojas78
Re: how to read data from text file into data grid???

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 myArray.Length -...
Forum: C# Dec 28th, 2007
Replies: 1
Views: 973
Posted By williamrojas78
Re: Highlight the data in the DataGrid when it is searched...

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: 5
Views: 7,863
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
Re: filling combobox with data stored in a table in sql server

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: 643
Posted By williamrojas78
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
Posted By williamrojas78
Re: DataSource on windows mobile 6 (cant connect to sqlce database file [sdf])

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 String...
Forum: VB.NET Sep 14th, 2007
Replies: 1
Views: 1,355
Posted By williamrojas78
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
Posted By williamrojas78
Re: DataSource on windows mobile 6 (cant connect to sqlce database file [sdf])

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')"

Dim...
Forum: VB.NET Sep 14th, 2007
Replies: 5
Views: 1,207
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
Re: DataSource on windows mobile 6 (cant connect to sqlce database file [sdf])

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: 960
Posted By williamrojas78
Re: allowing users to change image

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: 8
Views: 4,806
Posted By williamrojas78
Re: DataSource on windows mobile 6 (cant connect to sqlce database file [sdf])

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: 3,149
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
Re: how to read data from text file into data grid???

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: 11,928
Posted By williamrojas78
Re: how to read data from text file into data grid???

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
myArray =...
Forum: Visual Basic 4 / 5 / 6 Aug 3rd, 2006
Replies: 1
Views: 4,014
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
Re: It's all about datagrid

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: 7,094
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
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
Posted By williamrojas78
Re: Populate Listboxes with table data

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: 1,655
Posted By williamrojas78
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
Posted By williamrojas78
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
Showing results 1 to 40 of 85

 
All times are GMT -4. The time now is 7:41 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC