Search Results

Showing results 1 to 39 of 39
Search took 0.01 seconds.
Search: Posts Made By: 4advanced ; Forum: VB.NET and child forums
Forum: VB.NET Apr 29th, 2009
Replies: 6
Views: 328
Posted By 4advanced
First, it's better to organize your code and make it readable :)


con = New OleDbConnection(constr)
adpt = New OleDbDataAdapter("select * from drs_entry_list where drsno='" +...
Forum: VB.NET Apr 28th, 2009
Replies: 3
Views: 893
Posted By 4advanced
This example code explains maybe :=)


Dim _DT As DataTable = Nothing

Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
_DT = New...
Forum: VB.NET Apr 28th, 2009
Replies: 6
Views: 328
Posted By 4advanced
At which point it generates that error? If the index is out of range you're trying to get a non existing row in the collection of rows......

Could you show some code?

Regards
Forum: VB.NET Apr 28th, 2009
Replies: 6
Views: 328
Posted By 4advanced
If you don't want the blank row to be shown you have to set the 'enable adding' property in the designtime to be false.
Forum: VB.NET Apr 28th, 2009
Replies: 1
Views: 183
Posted By 4advanced
Try this


Private Sub DataGridView1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGridView1.KeyUp
If Keys.Enter Then
Dim _Dt...
Forum: VB.NET Feb 23rd, 2009
Replies: 5
Views: 2,826
Posted By 4advanced
*only for your attention*

I guess you should also check the TextFieldParser object :=)


Using MyParser As Microsoft.VisualBasic.FileIO.TextFieldParser =...
Forum: VB.NET Feb 23rd, 2009
Replies: 3
Views: 1,049
Posted By 4advanced
Ossehaas,

Check the StreamingContext class for additional info.... I think it will help ya out....

According MSDN:


Imports System
Imports System.Text
Imports...
Forum: VB.NET Feb 9th, 2009
Replies: 2
Views: 1,594
Posted By 4advanced
Dim newRow as DataRow = yourDatagrid.newrow()

newRow.Item(0) = "yourText"
etc. etc. etc.

yourDatagrid.rows.add(newRow)
Forum: VB.NET Feb 6th, 2009
Replies: 3
Solved: login form
Views: 585
Posted By 4advanced
Can you tell us what happens before we have to puzzle?

(think about getting your car back to the shop & ask the technician if he can tell you what's wrong with your car?)
Forum: VB.NET Feb 6th, 2009
Replies: 3
Views: 757
Posted By 4advanced
Why not storing them in a List(Of String)?


Dim listOfNames As New List(Of String)

Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As...
Forum: VB.NET Feb 5th, 2009
Replies: 16
Views: 2,032
Posted By 4advanced
No sorry, it's time to find out yourself....
I coded an example and added comments to it, so you know what steps to take.

Now it's up to you.......
Forum: VB.NET Feb 5th, 2009
Replies: 16
Views: 2,032
Posted By 4advanced
Okay, here it is :


Private Sub cmdSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSearch.Click

'variabeles (objects and strings)
Dim _root As...
Forum: VB.NET Feb 5th, 2009
Replies: 1
Views: 305
Posted By 4advanced
An excellent resource for you is : http://www.startvbdotnet.com/
Forum: VB.NET Feb 5th, 2009
Replies: 16
Views: 2,032
Posted By 4advanced
Like Jx_Man says.... use that condition in your select statement. For example like this : SELECT * from UMP WHERE ID = yourID -> 'yourID' is the ID which you are looking for.

A better approach is...
Forum: VB.NET Feb 4th, 2009
Replies: 4
Views: 1,745
Posted By 4advanced
First, try it in the same sub/function. If it works you can export the functionality to some global functions/subs

try this:

Try
strCon = "provider=SQLOLEDB;User id=" & U &...
Forum: VB.NET Feb 4th, 2009
Replies: 6
Views: 2,292
Posted By 4advanced
Take a look at these :

http://aspalliance.com/622
...
Forum: VB.NET Feb 4th, 2009
Replies: 16
Views: 2,032
Posted By 4advanced
At least you are pointing to the right directions at this moment. The questions you ask seem to me you are now in the right 'developer-mode' :=)

Professor can be right but it's up to you where to...
Forum: VB.NET Feb 4th, 2009
Replies: 4
Views: 2,078
Posted By 4advanced
There are a few options but one of the simplest is to detach the database from the server, copy the phisical files to the new dataserver's datapath and attach it to the new dataserver.

For those...
Forum: VB.NET Feb 3rd, 2009
Replies: 2
Views: 935
Posted By 4advanced
You must have 2 parameters declared in your Stored Procedure, called @DR and @CR, both of the type Decimal.
While looping through your rows in your LoadCashBookDataSet.Tables(0) you have to execute...
Forum: VB.NET Feb 3rd, 2009
Replies: 7
Views: 776
Posted By 4advanced
Aha, this points out the way you think.
Yes, there are so many solutions in solving a problem in VB.Net. You can still use some good'old VB6 syntax. The designers of .Net, esspecially VB, didn't...
Forum: VB.NET Feb 3rd, 2009
Replies: 4
Views: 977
Posted By 4advanced
To help you a little more:

You also can add a ContextMenuStrip to your solution and respond on the rightclicking of a user into one of the columns in your datagrid.
For example, if the user...
Forum: VB.NET Feb 3rd, 2009
Replies: 4
Views: 977
Posted By 4advanced
Something like this?
It will expand the last column in the datagridview. You can edit it to your needs :=)


Private Sub DataGridView1_DataBindingComplete(ByVal sender As Object, ByVal e As...
Forum: VB.NET Feb 3rd, 2009
Replies: 22
Views: 1,841
Posted By 4advanced
Hehehe..... absolutely no hard feelings :=)
I am glad you figured out the databinding issue.

Binding can be done on tons of different ways, even runtime. You have to find the way which you are...
Forum: VB.NET Feb 3rd, 2009
Replies: 22
Views: 1,841
Posted By 4advanced
Rapture,

Thank you for your clarifying words. What you describe is exactly what I was thinking about. Exclamation points are a real pain in the *** sometimes but they do give some expression to...
Forum: VB.NET Feb 3rd, 2009
Replies: 22
Views: 1,841
Posted By 4advanced
Euhh..... insulting your intelligence? Excuse me, that's not what i intended to mention.

Lets start over again. You are trying to view some table-data in a datagrid in a "windows application"....
Forum: VB.NET Feb 3rd, 2009
Replies: 22
Views: 1,841
Posted By 4advanced
Databind() is a function which needs to be called when binding data to a datagrid in ASP.NET !

Only use datasource when binding in Windows.Forms solutions!

yourGrid.DataSource = yourDataSource...
Forum: VB.NET Feb 3rd, 2009
Replies: 4
Views: 991
Posted By 4advanced
My.User.Name

Environment.UserName.ToString()

You can checkout the My or Environment objects to find more interesting things.

The My.Computer.Clock object provides properties to find the...
Forum: VB.NET Feb 3rd, 2009
Replies: 1
Views: 1,095
Posted By 4advanced
Check this : http://dotnet.mvps.org/dotnet/faqs/?id=setscreenresolution&lang=en
Forum: VB.NET Feb 3rd, 2009
Replies: 7
Views: 776
Posted By 4advanced
Does it matter if 'all' or 'most' are supported?

What are you trying to point out with that.....? (the same on your #1 question about experienced programmers)...

Like RamyMahrous said, the...
Forum: VB.NET Feb 3rd, 2009
Replies: 16
Views: 2,032
Posted By 4advanced
I really don't understand a thing about your question!

If you are asking for some help you really need to explain everything into details. We can't guess about what your goals are.....
Forum: VB.NET Feb 3rd, 2009
Replies: 2
Views: 355
Posted By 4advanced
Have you ever checked the Date options?

date.Day, date.Month, date.Year etc etc etc
Forum: VB.NET Dec 4th, 2008
Replies: 2
Views: 965
Posted By 4advanced
Try to find the Table, TableRow, TableCells OR Fields with yourPage.FindControl("")
If the control will be found the value can be added to it. As jbennet says, the code didn't change thát much.......
Forum: VB.NET Nov 28th, 2008
Replies: 5
Views: 538
Posted By 4advanced
Forum: VB.NET Nov 28th, 2008
Replies: 4
Views: 5,992
Posted By 4advanced
hmmm..... Shouldn't thé approach be : only insert a warranty-card-number into the database after a check if the card-number already exists?
You could write a stored procedure for example in which...
Forum: VB.NET Nov 27th, 2008
Replies: 7
Views: 876
Posted By 4advanced
It should work with the fields.add() like you mentioned before. Did you also checked if your firewall blocks ports 25? If so, port 2525 might do the job....
Forum: VB.NET Nov 27th, 2008
Replies: 7
Views: 876
Posted By 4advanced
Okay, just for asking.....

Check this site, it's a good reference for programming-help. Try the simple example and if that works, extend it piece by piece.
Let me know if it worked....

...
Forum: VB.NET Nov 27th, 2008
Replies: 7
Views: 876
Posted By 4advanced
SmtpMail.SmtpServer = "mysmtpserver"

mysmtpserver, did you stated this value for testingpurposes? It should be a real smtpserver like mail.yourcompany.com.....

Regards,
Richard
The...
Forum: VB.NET Nov 26th, 2008
Replies: 3
Views: 1,125
Posted By 4advanced
The way I should implement is : using the LostFocus event for the textboxes. After the lostfocus you can warn a user corresponding the maximum or minimum values needed. Second is creating yourself a...
Forum: VB.NET Nov 26th, 2008
Replies: 2
Views: 1,323
Posted By 4advanced
Sure you can, see the implementation below. This example is a copy/paste code from my project in which I added a class "ValidationInstance" which holds a collection of items which should be checked...
Showing results 1 to 39 of 39

 


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

©2003 - 2009 DaniWeb® LLC