|
I have to make an application with web service but i never make that.
The web service is Kelio of Bodet.
Somes examples could help me.
Thanks
|
|
|
|
|
Google for "VB.NET webapi client".
There's plenty of examples.
|
|
|
|
|
I want to perform a search in a DataGridView. The search command is working, but I have a problem: a row always remains visible in the DataGridView even if it does not correspond to the search criteria. This row is always the last selected one. I have tried using 'ClearSelection,' and no rows are selected/highlighted, but the problem persists—the same row is still visible. this is my code :
Private Sub TxtboxReserch_TextChanged(sender As Object, e As EventArgs) Handles TxtboxReserch.TextChanged
If TxtboxReserch.Text = "" Then
For i = 0 To DataGridView1.RowCount - 1
DataGridView1.Rows(i).Visible = True
Next
Else
DataGridView1.ClearSelection()
For i = 0 To DataGridView1.RowCount - 1
Try
DataGridView1.Rows(i).Visible = (DataGridView1.Rows(i).Cells(1).Value Like "*" + TxtboxReserch.Text + "*")
Catch ex As Exception
End Try
Next
End If
End Sub
|
|
|
|
|
You already posted this question once; please do not repost.
|
|
|
|
|
I want to perform a search in a DataGridView. The search command is working, but I have a problem: a row always remains visible in the DataGridView even if it does not correspond to the search criteria. This row is always the last selected one. I have tried using 'ClearSelection,' and no rows are selected/highlighted, but the problem persists—the same row is still visible. this is my code :
Private Sub TxtboxReserch_TextChanged(sender As Object, e As EventArgs) Handles TxtboxReserch.TextChanged
If TxtboxReserch.Text = "" Then
For i = 0 To DataGridView1.RowCount - 1
DataGridView1.Rows(i).Visible = True
Next
Else
DataGridView1.ClearSelection()
For i = 0 To DataGridView1.RowCount - 1
Try
DataGridView1.Rows(i).Visible = (DataGridView1.Rows(i).Cells(1).Value Like "*" + TxtboxReserch.Text + "*")
Catch ex As Exception
End Try
Next
End If
End Sub
modified 2-Mar-24 7:25am.
|
|
|
|
|
Try setting the CurrentCell to Nothing .
NB: It would probably be simpler to filter the underlying data source, assuming you have one.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Private Sub Button9_Click(sender As Object, e As EventArgs) Handles Button9.Click
Dim i As Integer = DataGridView1.CurrentRow.Index + 1
If i < 0 Then i = 0
DataGridView1.CurrentCell = Me.DataGridView1.Rows(i).Cells(0)
DataGridView1.Rows(i).Selected = True
End Sub
|
|
|
|
|
Look at the error message again. It is telling you that the value of your index variable is outside the range of rows in DataGridView1 . Most likely because of the line below:
Dim i As Integer = DataGridView1.CurrentRow.Index + 1
If you are currently at the last row then "Index + 1" will refer to a row that does not exist.
|
|
|
|
|
|
Check to see whether the value is in range, and not just greater than zero.
|
|
|
|
|
Better user experience:
* Disable the NEXT button when the cursor is on the last row of the grid
* Disable the PREVIOUS button when the cursor is on the first row of the grid
|
|
|
|
|
I want to output a bitmap file to a POS printer using VB6. The ESC/POS mode should be used.
Does the file need to be converted? If yes how? Is there documentation or an example?
Printing and formatting text is no problem. I just can't find any way to solve the problem.
Thank you.
|
|
|
|
|
|
Thank you.
However, the solution does not describe how to use the ESC/POS mode.
|
|
|
|
|
In my experience, the printer would come with various Windows driver(s) and / or "DOS" programs when it came to printing "bit maps". You scoured the vendor's web site for samples, downloads and links. The "name" of your printer is more important than what you've posted so far.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Thank you.
All POS printers we use support ESC/POS mode.
Do the graphic files need to be converted? If yes how?
|
|
|
|
|
I'm completely confused with this error from VS2012 and VS2019 on an VB.Net app that has been running fine for years. This pops up while running a simple sub at the codeline:
OpenFileDialog1.ShowDialog()
What makes it really strange is that there multiple subs of this exact same OpenFileDialog on several other forms in this project that work perfectly fine.
I have removed the Dialog object from the form, replaced it, put a second Dialog object 'OpenFileDialog2'and still get the same results. This one Form out of 7 others just refuses to work with me on this
Anybody got a clue on what I should be looking for, please hit me with it, this is actually the most important OpenFileDialog in the whole project.
And Thank You in advance,
|
|
|
|
|
The message is telling you that something went wrong at that location in a system library. A possible reason would be that your code is passing a bad address to the library call which causes some unexpected error. The only way to find out why this is happening is to use the debugger to trace through the code.
|
|
|
|
|
Thanks Richard, I'll try the debugger to trace as you suggest, although I'm a little weak on tracing with debugger. Does it make sense that this same code block works perfectly well in 2 or 3 other Forms, and the entire project & code executes just fine on my laptop.
Appreciate your help and suggestions
|
|
|
|
|
Member 15109325 wrote: Does it make sense It is not just the code block that needs to be considered, but the parameters being used in its execution. And without seeing the specific code and all the values being used, it is impossible to comment further.
|
|
|
|
|
Might be a little labor intensive, but unless you have a single module that handles all similar requests, there is a chance, like Richard said, there's just one statement or parm that's throwing things off. You can look but not see ... then you pretty well have to run the debugger and "single step" to watch everything unfold ... the way you think it should.
With "file dialogs" you usually provide "patterns" for things; check those out. Compare it to the others.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
I am looking but haven't found anything yet. This project is almost 10 years old and has been working until about a week ago. I hear what ya'll saying but a) I admit my sheer incompetence with tracing and debugging and b) I can't grasp how I can copy this project to my laptop and it works perfectly. AND the exact same SUB is used on 2 other forms without incidence.
I'm about to start ripping the guts out of this main form hoping to find the culprit. I've already scoured it and REM'd a bunch of code.
|
|
|
|
|
Member 15109325 wrote: I can't grasp how I can copy this project to my laptop and it works perfectly
Two possibilities.
First the environment is different. Different OS, different libraries, different permissions, etc.
Second the data is different. You are running with a dataset X. But the problem occurs with dataset Y.
Member 15109325 wrote: AND the exact same SUB is used on 2 other forms without incidence.
That is explained easily - the data is different. Look at the differences and see how the code handles each.
|
|
|
|
|
Are you doing any threading or Tasks?
|
|
|
|
|
Years ago, I wrote a VB6 App to add creation date to certain Outlook items. Now, I don't even know how to access Outlook folders via VB.NET. A complete code sample to run through the Outlook folders would be much appreciated.
Thanks.
Marvin
|
|
|
|