Search Results

Showing results 1 to 40 of 63
Search took 0.01 seconds.
Search: Posts Made By: 4advanced
Forum: VB.NET Apr 29th, 2009
Replies: 6
Views: 296
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: 720
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: 296
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: 296
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: 175
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,304
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: 918
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,285
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: 536
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: 736
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: 1,845
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: 1,845
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: 283
Posted By 4advanced
An excellent resource for you is : http://www.startvbdotnet.com/
Forum: VB.NET Feb 5th, 2009
Replies: 16
Views: 1,845
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,540
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,105
Posted By 4advanced
Take a look at these :

http://aspalliance.com/622
...
Forum: VB.NET Feb 4th, 2009
Replies: 16
Views: 1,845
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: 1,755
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: 825
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: 725
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: 886
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: 886
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,641
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,641
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,641
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,641
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: 830
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: 929
Posted By 4advanced
Check this : http://dotnet.mvps.org/dotnet/faqs/?id=setscreenresolution&lang=en
Forum: VB.NET Feb 3rd, 2009
Replies: 7
Views: 725
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: 1,845
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: 338
Posted By 4advanced
Have you ever checked the Date options?

date.Day, date.Month, date.Year etc etc etc
Forum: ASP.NET Dec 18th, 2008
Replies: 3
Views: 669
Posted By 4advanced
Check the MSDN website....there are too much changes.....
Forum: ASP.NET Dec 18th, 2008
Replies: 2
Views: 373
Posted By 4advanced
The default size of the threadpool is 25 ;)

Regards,

Richard
The Netherlands
Forum: ASP.NET Dec 15th, 2008
Replies: 6
Views: 2,050
Posted By 4advanced
Create a templatefield, insert the checkbox and afterwards, check with FindControl() wether the checkbox has been checked. The mastercheckbox needs to be inserted in the headerrow of the control....
Forum: ASP.NET Dec 15th, 2008
Replies: 5
Views: 1,302
Posted By 4advanced
Maybe cmd.CommandType needs to be stated as text.
Forum: ASP.NET Dec 11th, 2008
Replies: 3
Views: 388
Posted By 4advanced
Did you try your stored procedure? Does it return the correct values?

Also the parameter method is deprecated....you should use AddWithValue("yourParameterName", yourParameterValue)
Forum: ASP.NET Dec 11th, 2008
Replies: 3
Views: 388
Posted By 4advanced
What's the error it's givving you?
Did you try the stored procedure in your sqlserver?

regards
Forum: ASP.NET Dec 11th, 2008
Replies: 11
Views: 2,346
Posted By 4advanced
from the conversiontool ;)

http://www.developerfusion.com/tools/convert/vb-to-csharp/


protected void // ERROR: Handles clauses are not supported in C# Page_Load(object sender,...
Forum: ASP.NET Dec 10th, 2008
Replies: 11
Views: 2,346
Posted By 4advanced
hmm... did you read my last post serkansendur? :P
Forum: ASP.NET Dec 8th, 2008
Replies: 11
Views: 2,346
Posted By 4advanced
I've worked it out to an example for you....

Place 1 textbox control on your page, make it multiline and insert the below stated code in the code-behind page.

Regards,
Richard
The Netherlands...
Showing results 1 to 40 of 63

 


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

©2003 - 2009 DaniWeb® LLC