Im coding in vb.net, and I havent in forever so im a little rusty now.
Question is, I want to beable to post data to a website, it can be anything as long as it can call the url (without being in a browser).
a url like
http://website.com/login.php?username=USERNAME&password=PASS&rememberme=1
...
Not sure how to do this, here is my code
Dim oWeb As New System.Net.WebClient()
oWeb.Headers.Add("Content-Type", "application/x-www-form-urlencoded")
Dim bytArguments As Byte() = System.Text.Encoding.ASCII.GetBytes("username=username&password=password")
Dim bytRetData As Byte() = oWeb.UploadData("https://www.website.com",...
Hello to all,
I need to have plenty of checkBoxes & textBoxes in my vb.net form.
So I really need CheckBox array to reduce coding of their events.
But I am not able to create array of them like in VB-6
Also I need to make them at design time only.
So in coding writing like
dim chkBox as new CheckBox()
And then setting location & t...
i have developed a small application and was working fine on developing machine but when i installed it on another computer and double click on it to start it starts and after splash screen it gives don't send error [ an error occured ] and getting closed ..... how can i fix that....is there any extension missing or there is any other pr...
setup and deployment project template is missing in my installtion is there any alternate for that are please let me know the download link from msdn...
...
anybody know how to use skincrafter3 ?
I am new to vb.net and skincrafter
...
Hello everybody
In a scientific application I'm writing (vb.net) I use a huge collection of object stored in a tree structure. Every object exposes a LastAccessed property (datetime) that stores the last time the node was accessed by the algorithm.
I need to find a fast way to find the N least accessed objects in the structure.
I'm us...
What is the optimal approach to a WithEvents Collection - VB.NET?
Have you any remarks on the code bellow (skipping the Nothing verifications)?
The problem is when I obtain the LinkedListNode(Of Foo) in a For Each block I can set
myNode.Value = something, and here is a handlers leak...
-Could I override the FooCollection's GetEnumera...
I ran some code through an automatic translator for C# to VB, and it translated some code like this:
Public Property Title As [String]
How is this different to
Public Property Title As String
and why do both exist?
...
When you create a webpage in ASP.net, the codebase inherits System.Web.UI.Page
Now when I extend the page object to check for SessionExpired for example, I create a new class and inherit from system.web.ui.page, and overwrite some functions.
The problem then is that on each page, I have to replace system.web.ui.page with my custompage ...
Hello,
I'm learning about VB.Net and need to work with an SQLite database using the open-source System.Data.SQLite ADO.Net solution
The examples I found in the HOWTO section are only in C#. Would someone have a simple example in VB.Net that I could study to understand how to use transactions when INSERTing multiple parameters?
FWIW, h...
At the moment I'm trying to create a kind of model in vb.net which can be used to create/fetch database entrys.
I created a main class Model with a shared function to fetch the datasets, e.g. Model.find().
Now I'd like to create Classes which inherit the main Model-Class, e.g. a separate one for users: UserModel.find() => "SELECT * FROM...
So I've got this context menu working out except that the event behind the actual selection of the menu item seems to fire multiple times. First time I click it, it fires once, then twice, then 3 times. So, in the example I just gave, for 3 clicks it would have fired a total of 6 times (1 + 2 + 3). Why is that?
Below is my code on how I...
Hi,
what tools do you use to create programming flowchart/documentation from VB.NET source code? There are absolutely no comments/documentation at present. I am a beginner, i.e. I tried Sandcastle but it is way over my head and could not get it going, not even with GUI.
Fatesoft's CodeVisual To Flowchart is OK but it is almost the same a...
Several of my overriden Equals methods have started throwing Invalid Cast Exceptions -
Unable to cast object of type 'System.DBNull' to type Common.ResolveUser'.
This occurs when binding List (of T) (where T is of type ResolveUser in this case) to a combo.
Equals Method:
Public Overrides Function Equals(ByVal obj As Object) ...
i am try to develop a small application.
Now should i organize my 3rd party dll libraries so that when i publish the project and than install that application on another computer all the libraries should move with installer...
...
I need to avoid serializing an Event class member because when the event is handled by an object that is not marked as Serializable the serialization will fail.
I tried using the NonSerialized attribute on the Event class member but it fails to compile with the following error:
<NonSerialized()> Public Event PropertyValueChanged()
re...
Hi,
I need to highlight changes(diff) between 2 database text fields in a asp.net application.
I'm used to "beyond compare" text compare, so the Ideal solution will do something like it, but if it just highlight the differences, that would be OK.
http://www.scootersoftware.com/moreinfo.php?zz=screenshot&shot=TextCompare
The conten...
Trying to parse an SQL string and pull out the parameters.
Ex: "select * from table where [Year] between @Yr1 and @Yr2"
I want to pull out "@Yr1" and "@Yr2"
I have tried many patterns, but none has worked, such as:
matches = Regex.Matches(sSQL, "\b@\w*\b")
and
matches = Regex.Matches(sSQL, "\b\@\w*\b")
Any help?
...
Hi,
I am not sure why VB makes everything such a pain. I have a fields which stores the date and time in the format required to store in MySQL database
Dim AppDate As String = String.Empty
If Not String.IsNullOrEmpty(Me.AppDate.Text.Trim) Then
AppDate = Format(CDate(Me.AppDate.Text), "yyyy-MM-dd h:mm:ss")
Else
...