vb.net

http post with vb 9.0 (2008)

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 ...

vb.net convert value to string

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",...

CheckBox Array in VB.net

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...

problem in running program after building in vb.net

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...

alternate for setup and deployment project in vb.net

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... ...

any good tutorials on skincrafter3 ?

anybody know how to use skincrafter3 ? I am new to vb.net and skincrafter ...

fast sorting using .net 3.5 framework

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...

WithEvents LinkedList is it Impossible?

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...

VB.NET, what is the difference between Boolean and [Boolean] ?

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? ...

Extending the base class

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 ...

INSERT with transaction and parameters?

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...

Method to "override" shared Members in child classes

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...

My Outlook context menu (add-in) button fires multiple times per one click

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...

How to create programming flowchart/documentation from VB.NET source code?

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...

Help, why have my Equals methods have all started thowing Invalid Cast Exceptions?

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) ...

how should i organize dll libraries in vb.net

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... ...

How to ignore Event class member for binary serialization?

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...

Changes highlight in asp.net (like beyond compare) : Text or HTML comparison

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&amp;shot=TextCompare The conten...

regular expression to pull words beginning with @

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? ...

How To assign null values in VB.NET

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 ...