Thankx for your valueable help .
but if i read a page, word by word OR para by para then how can i come to know that the end of page is here.
suppose, if there is 10 pages then it is go on reading till the last page comes.. how can i come to know then that the page 1 is over and 2 is start ???
If u know plz help ....
thankx again for your reply
Be A Good S/W Eng... Life is swing with you..Enjoy..
I am trying to read a file that has a long adress (its in many sub directories) and I get an error saying that VB.net can't access it because the path is too long does anyone know an alternate way of accessing files which isn't restricted by the nuber of characters in the path ?
The maximum path supported by Windows is 260 characters. You can kind of get around this with cautious use of CurrentDirectory. But, since this limit also applies to any application, like backup packages, you're better solution is to manage the path length. You can write the code to change the current directory, but you have to be VERY careful in maintaining that path. For example, using the Open/SaveFileDialogs will change the current directory.
The 'External links' section has links to implementations of this in various languages including C# and VB. I think the VB implementation is VB6 so you'll need to from C# to VB.NET if it's VB.NET code you want. I believe there are tools to do this.
How do i make a custom control that has a collection like a listbox or combobox? When i define the property it automatically gives the option to open the collection editor in design view, but upon clicking add, it doesn't work. Error: Constructor on 'System.String' not found.
I have two listboxes and 4 buttons to move values from one list box to another listbox and remove items from second listbox.
I am getting values from datbase to the first listbox
btn1--> for to move all items from first listbox to second listbox
btn2--> to move selected items from first listbox to second listbox
btn3--> to remove selected items from second listbox
btn4--> to remove all items from second listbox
now everything is fine.. i completed all the task..
i have one more button to save second listbox values into database.
if i selected one by one and click save.. it works fine..
but if i selected all button and click save.. it does not save into database.
The code is as follows in btnsave_click
Dim cnt As Integer
Dim num As Integer
cnt = ListBox2.Items.Count
For num = 0 To cnt - 1
Dim cmdAdd As New SqlCommand
Dim insertAdd As String = "insert into JOB(JOBNO,PHASENO,USERS,BUILDNO,REVNO,REF,CUSTNAME) values (@JOBNO,@PHASENO,@USERS,@BUILDNO,@REVNO,@REF,@CUSTNAME)"
Dim sqlcmdAdd As New SqlCommand(insertAdd, con)
sqlcmdAdd.Parameters.Add(New SqlParameter("@JOBNO", SqlDbType.NChar, 20))
If TxtJobNo.Text <> "" Then
sqlcmdAdd.Parameters("@JOBNO").Value = Trim$(TxtJobNo.Text)
If CmbPhase.Text <> "" Then
sqlcmdAdd.Parameters.Add(New SqlParameter("@PHASENO", SqlDbType.NChar, 10))
sqlcmdAdd.Parameters("@PHASENO").Value = Trim$(CmbPhase.Text)
' sqlcmdAdd.Parameters("@PHASENO").Value = 0
' sqlcmdAdd.Parameters("@PHASENO").Value = CmbPhase.Items.ToString