Webrequest populate UserAgent and Headers
asp net version 2.0 asp.net forms with vb.net Dim strData As String = String.Empty Dim wr As HttpWebRequest = Nothing Dim wrRes As HttpWebResponse = Nothing wr = DirectCast(WebRequest.Create(URi),…
Query is too complex.
Hello To delete many selected records at once: In a loop I populate question marks: QuestionMarks = QuestionMarks + "?, " Then: "DELETE FROM table WHERE theID = ? AND fld IN (" + QuestionMarks + ")" And: For Each MyRow As…
Select from table
Hello Using Access mdb with OleDbRader (Access Database Engine) to select all: "SELECT * FROM tabke WHERE clmn = 'blah'" This might return 100 items, how can I use select to read from number 5 to 50, for example? Possible? Thank you all
Get data with post method using webclient
Hello There's a POST sample at the bottom of this page: https://ws.interfax.net/admin.asmx?op=GetAccountPPCardsBalance2 Sample HTTP POST request and response. The placeholders shown need to be replaced with actual values. POST…
Memory access violation when writing a combobox in Visual Basic
I've had a program since 2004. I've been updating it since then. The GUI is in Visual Basic. Suddenly a statement that simply takes the text from one combobox and puts it in a second (invisible) combobox is giving me a memory access violation during…
Rename mdb table
Hello I use Access Database Engine and OleDbReader to work with mdb and accdb files, need to rename a table: ALTER TABLE <table name> RENAME TO <new table name> OleDbException, anyway using ADE? Thanks
VB support in VisualStudio 2022 for ASP.NET Core Web App
Hi, There is no more Visual Basic support in Visual Studio 2022 for ASP.NET Core Web App? Is Visual Basic EOL program language now and their will be no future support for it? Thx
Simple program using a Background Worker freezes anyway
Program gets every filename from a folder, then creates a text list of unique extensions found and the frequency. In this case there are around 35000 files. I put most of the work into the Background Worker but the UI freezes anyway until it is finished.…
FileIO.TextFieldParser
Hello, Dim Blah As New FileIO.TextFieldParser(src) MyTextParser.TextFieldType / .SetDelimiters / .TrimWhiteSpace etc While Not MyTextParser.EndOfData Blah.ReadFields()... End While Before entering the While loop, how can I get how many times this…
DataGridView column alignment header vs data
In the pic below, the DataGridView column header (Column1) is misaligned with the data cell text below it (XXX). The misalignment is nearly one character width. It is more visually obvious with a larger font. The pic comes from a minimal Forms app. …
How to get specific image coordinates from within bitmap
hi Is there a special (Library/Class) for such an achievement? which can find and return the coordinates by giving a symbol of a specific image from within the larger image
Integer equivalent in Access
Hello I work with Access mdb with OleDbRader (Access Database Engine) in vb.net and need to set the data type to Integer (NOT Long Integer) so: Dim cmd As New OleDbCommand("ALTER TABLE Blah ALTER Column colm ???",…
DataGridView RowCount vs Rows.Count
Hello, RowCount: Gets or sets the number of rows displayed in the DataGridView Rows.Count: Returns the number of rows What does it mean, when they can have different values? The only condition I can imagine is if a row is invisible, then RowCount does…
.Net problem/Question
I haven't programmed in .Net, last used VB 6 several years ago. I'm trying to make a Windows Form application in VB.Net, and it won't let me use the "Add New Data Source" option to connect my database to the project. When I click "Add New…
How to Joint elements from within the array with specified Step and the array result LINQ
hi Dim ByStep as integer=3 Dim MyArray as Integer()={2,5,4,0,0,4,24,6,5,2,5} need Result As String()={"254","004","2465","25"}
Visual Studio 2022 - VB.Net Desktop application error message hindering functionality
My desktop application developed with Visual Studio 2022 - VB.Net codes, generated an error message that is hindering the functionality of the application. Please see the message below: Severity Code Description Project File Line Suppression…
ToUpper and ToLower first char and first word
Hello, Going to convert the first letter of each word to upper and lower case, to upper is simple, but to lower? System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(---) And to convert the first word of string to upper and lower case, no…
WebClient Timeout
Hello, I used many WebClient : OpenRead, UploadValues, DownloadString, DownloadStringAsync, DownloadFileAsync in my app. Need to set a timeout for each one and found this code, added the Dispose sub myself, needed to check if it's fine to use it? A class…
Structure member name conflict rules
Hello When using Structures: Public Structure Blah Public Name As String Public Home As String End Structure I have 2 strings: Name and Home, does it matter for the variable names inside the Structure to be unique? ie if I have another string…