|
many thanks. I used a different method:
Dim myconnection As SqlConnection = New SqlConnection("Data Source=localhost\SQLEXPRESS;Initial Catalog=test;Integrated Security=True")
myconnection.Open()
Dim ad As SqlDataAdapter = New SqlDataAdapter("Select * from tblcustomers", myconnection)
Dim ds As DataSet = New DataSet
ad.Fill(ds, "tblcustomers")
GridView1.DataSource = ds
GridView1.DataBind()
myconnection.Close()
Label1.Text = ("Database connection open")
Do you know how i can use the sleep function to let it sleep before displaying the next record...so as supopsed to displaying all the records at once, it will display it in time interval of say 3000 mseconds??
|
|
|
|
|
Use the Timer class.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
do you know how i can implement it or where i can get some information about it from?
|
|
|
|
|
Google.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi every body.
Can any body help me plz
I have a task that requires to read the text on a image
My requirement is
I take a image of a vehicle number plate through a web cam or a usb camera.
Now when i get the image when i click a button i should get the numberplate number into a text box I need this functionality using c# or vb.net plz help me i am doing my B.tech final year project, I would be very much thank full if any one will help me
thanks in advance
with regards
harivinod
|
|
|
|
|
I suggest you get some advice from your professor, that's his job. If this is your final project and you have a choice to switch, I suggest you do that. This is going to be a pretty tough project to undertake. If you choose to continue, good luck. Remember, google is your friend. If you have specific questions or problem areas, ask here.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Don't expect people to do your assignment for you. ASk your teacher for help, that is what he's there for.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
You will need to look into Optical Character Recognition (OCR).
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
first of all have u tried google for this question. if not that's bad. u must understand the way of searching.
ok now your answer. now its up to u how will u take this... best of luck.
Dim Doc1 As New MODI.Document <br />
Dim inputFile As String = "C:\test\multipage.tif"<br />
Doc1.Create(inputFile)<br />
Doc1.OCR()<br />
' this will ocr all pages of a multi-page tiff file <br />
Doc1.Save()<br />
' this will save the deskewed reoriented images, and the OCR text, back to the inputFile <br />
Dim strRecText As String = ""<br />
For imageCounter As Integer = 0 To (Doc1.Images.Count - 1)<br />
' work your way through each page of results <br />
strRecText &= Doc1.Images(imageCounter).Layout.Text<br />
' this puts the ocr results into a string <br />
Next<br />
File.AppendAllText("C:\test\testmodi.txt", strRecText)<br />
' write the OCR file out to disk <br />
Doc1.Close()<br />
' clean up <br />
Doc1 = Nothing
help everyone
Falling down is not defeat...defeat is when u refuse to get up...
|
|
|
|
|
How I can get the filename from the openfiledialog without the full path?
I have filename as in openfiledialog
"C:\Upload\trp.txt"
I want Only "trp.txt".
How this can be done by vb.net 2005?
THanks in advance
|
|
|
|
|
There is a better way to do it, I am sure. And perhaps someone else will also answer your question with this better solution, but here is the one that I remember using once:
<br />
Dim backslash As Char = "\"<br />
TxtFileName.Text = ""<br />
OFD.ShowDialog()<br />
TxtFileName.Text = OFD.FileName.Substring(OFD.FileName.LastIndexOf(backslash) + 1)<br />
My advice is free, and you may get what you paid for.
|
|
|
|
|
Imports System.IO
With OpenFileDialog1
.Title = "Get File Name"
.ShowDialog()
myFileName = Path.GetFileName(.FileName)
End With
|
|
|
|
|
|
What's your question? All I see is some deranged, half-assed looking run-on sentence. Where are you having problems?
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Justin Perez wrote: What's your question? All I see is some deranged, half-assed looking run-on sentence. Where are you having problems?
Thanks for new sig material
"What's your question? All I see is some deranged, half-assed looking run-on sentence. Where are you having problems?" - Justin Perez
|
|
|
|
|
My pleasure
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hi,
I have a datagridview control in which I populate data from a data table.When I click on the coloumn header of the gridview control,then the data which are displayed are sorted in the reverse order on which it was originally diaplayed.
Issue:Now I want that the data should not be sorted when ever I click on any of the coloumn headers of the data gridview i.e I want all the coloumn headers of the gridview controls should be read only irrespective of clicking on it.When I will click on the gridview column header no actions should not be there in th gridview.
Please help me out in this issue.Its very urgent.
Thanks in advance.
Pradip Kishore
|
|
|
|
|
Hi Pradip Kishore
Use DataGridView Properties
Columns->; Selected Columns, (Select Column) and use Behavior: SortMode->;(Select your options) Notsortable
Franics K Antony
|
|
|
|
|
Hi Francis,
Thanks a lot for the quick response.
I have a requirement that when even I checked on certain data items in the gridview(GV) then the color must be changed (which i did),but now the problem is that when I click on any of the coloumn headers,the colors of the items which I had checked got vanished and the data is shown in the GV as fresh data as if no items have been checked.
Please let me know how to prevent the color change when somebody clicks on any of the coloumn headers of the GV..?
Thanks in advance.
Pradip Kishore
|
|
|
|
|
I have two ListBox in vb.net. I want if a user drag any item from one listbox and drop it into other then it got add in other listbox.
please help
modified on Friday, January 25, 2008 5:44:23 AM
|
|
|
|
|
Handle the DragDrop event. Then get the text of the dropped item, and do a listBox.Items.Add(someItem); . Also, don't re-post questions, it's very rude. You asked this same question 2 days ago. You need to be patient, be prepared to wait up to a week. After that, then you may repost. Additionally, someone posted a response, with full, working source code. Instead of posting again, why not ask the guy who responded to you yesterday your more detailed questions.
Moving onto your apparent laziness. Why have you not posted what you have tried to get the thing working? This is a help forum. We won't do your work or hold your hand and explain every last little bit in detail. You need to come up with a list of what you have tried, what works and what doesn't. Then, you need to post the code where the problem is occuring. Not some generic ass question that google could give you 1,000,000 million responses for in 5 seconds. Lazy ass.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hello!
How can i make this vb6 code with vb.net:
<br />
For X2 = 1 To l2 Step 2<br />
cmd$ = cmd$ + ChrB(Val("&H" + Mid$(c2$, X2, 2)))<br />
Next X2<br />
When i tried to translate the code with vb express edition it make it like this:
<br />
For X2 = 1 To l2 Step 2<br />
cmd$ = cmd$ + ChrW(Val("&H" + Mid$(c2$, X2, 2)))<br />
Next X2<br />
And it's not workin properly with that.
Can anybody tell me what is wrong with this?
Thanks!
t:Stupid
|
|
|
|
|
I just tried this out, but I don't know what the ChrW function is supposed to do, I don't know what the result should be, I can't say whether it works properly or not. Could you give an example of the input and accordingly the expected output?
Here is the code I tried, which gave the result: "¼Þ"
<br />
Dim cmd As String<br />
Dim c2 As String = "abcdefghijklmnopqrstyvwxyz"<br />
For X2 As Integer = 1 To 12 Step 2<br />
cmd += ChrW(Val("&H" + c2.Substring(X2, 2)<br />
Next<br />
My advice is free, and you may get what you paid for.
|
|
|
|
|
The translation of the VB6 code is as bad as the VB6 code is, and the VB6 code isn't very good to start with.
Suffixes like $ aren't used for variables any more. That is an old artifact from the time when variables in BASIC were not declared with a type.
Instead of putting together a string that can be identified by the Val function, you should use the Int32.Parse method and specify how you want to parse the string:
Int32.Parse(c2.Substring(pos, 2), NumberStyles.AllowHexSpecifier)
Then convert the number to a char:
Convert.ToChar(Int32.Parse(c2.Substring(pos, 2), NumberStyles.AllowHexSpecifier))
So:
For pos As Integer = 0 To 11 Step 2
cmd += Convert.ToChar(Int32.Parse(c2.Substring(pos, 2), NumberStyles.AllowHexSpecifier))
Next
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I want help on design an ID Card to print without using a report form. just at a click of a button and the printing is done.
|
|
|
|