vb

Does anyone have a WORKING example that displays a directory tree structure in a TreeView for VB .NET??

I have looked everywhere and cannot find a version that works. The ones I found are all either outdated or have errors. I have something that is working for the most part, but I'm having some trouble with restricted-access folders. The code I'm using is as follows: Imports System.IO Public Class frmMain Private Sub frmMain_Load(B...

forms authentication with web.config. Always works on dev, never works on live!

Here is the web.config; <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.web> <customErrors mode="Off"> </customErrors> <authentication mode="Forms"> <forms name=".ASPXAUTH" loginUrl="login.aspx" protection="All" timeout="999999"> <credentials passwordFormat="MD5"> <user name="admin" p...

How to compress data on asp.net and uncompress in javascript

Hi this is my first Question :) I need a lib or way to compress a data in asp.net (vb) with the algorit deflate but the result inflate in javascript. I'm use a lib in javascript: deflate.js hxxp://www.codeproject.com/KB/scripting/Javascript_binaryenc.aspx?msg=2904739 First i'm deflate and convert to base64 the result but the result is...

MS Access 2003 - Combine last record of multiple tables into one query or table??

I have a couple of tables that are transaction tables, and I would like to make a simple pivot chart for comparative balances....which happen to be the last record of each of these tables in a field called "balance". so i know how to populate this on a form using a SQL statement, rs.movelast, but i do not know how to get to the pivot ch...

How do I properly manage memory when using COM objects in VB?

Hi, Can somebody please explain how the memory allocation/de-allocation occurs when we passing values between COM object and VB. My Concerns are: 1. IMyInterface::Method1 ([in] BSTR* pVal, [in] SAFEARRAY(BSTR)* pArray); do we need to free the allocated memory for above parameters inside COM object ? 2. IMyInterface::Method2 ([in, ...

Need Help Parsing File for This Pattern RH 09/27/08 11:49 11:49:00.024

Trying to parse a text file for records starting with an RH space and a date. I need to return the entire line. I expect to find about 6000 in the file. Any help would be greatly appreciated. Example of a full record: RH 09/27/08 11:49 11:49:00.224 COA292 H393 2664FB753 178 -54.82 8.98 C 431 264 13 040 34 24.45-074 58 57.93...

Why are array initializers only allowed for arrays?

This does not compile. Dim Tom As New List(Of String) = {"Tom", "Tom2"} This does Dim Tom As String() = {"Tom", "Tom2"} IMO this features should be allowed for all collection types and not only arrays. ...

How to get all forms in a VB.net (VS08) project in an array?

Alright, so I need a method that traverses all the forms inside a VB.net project under Visual Studio 2008, and create an array of type form with references to all the forms inside it, so that the array looks like this (pseudocode) FormsArray() = [Form1, Form2, Form3, Form4] However, I don't have a clue as to how to begin. Any help? T...

Adding a global namespace to .net Webbrowser Control

Scenario: A widget developer codes using HTML and javascript. My vb.net application allows developers to create widgets for other users. in javascript you can call window.external to comunicate with the host windows scripting object and I would like to add a helper namespace with many functions to aid the development of widgets similar ...

How may I upload live feed onto my application? Where can I get currency feeds for all currencies?

Can somebody help me with this? How may I upload live feed onto my application? Where can I get currency feeds for all currencies? ...

IHTMLWindow2 WebBrowser control vb.net

How do i implement IHTMLWindow2 in my own vb.net application? I would like to handle commands such as window.prompt with my own code and also add my own objects like the window object which can be accessed directly from javascript without using window.external. Thanks. ...

How to bind a function to "Click" event of a dynamically added ImageButton?

Hi, I am completely new to Asp.net. I am currently working on a asp.net page coded via Visual Basic On the page I have these image buttons that are dynamically generated based on the SQL Data the page retrieves. Unfortunately I could not figure out how to bind a click function to each of these buttons. the [Control Name].onClick = "F...

What does putting an exclamation point (!) in front of an object reference variable do?

What does putting an exclamation point (!) in front of an object reference variable do in Visual Basic 6.0? For example, I see the following in code: !RelativePath.Value = mstrRelativePath What does the ! mean? ...

Excel VBA: how to cast a generic control object into a ComboBox object?

Hi, I need to cast a generic VBA form control object into a ComboBox object so that I can add items to it. The generic object won't allow me to insert items into my existing lists Dim ctlCurrent As MSForms.Control For Each ctlCurrent In frmItemInput.Controls If TypeName(ctlCurrent) = "ComboBox" Then Dim lbCurrentComboBox As...

Cover the task bar with VB

How can i make a program stay above the task bar even when it loses focus with visual basic 2008? ...

Automation Error - Not enough storage is available to process this command

VB6 CreateObject() is advising this error msg: "Automation Error" - "Not enough storage is available to process this command" The object being created is a DLL written in C. I'm running the application that's trying to create the object on my machine, and the object itself is being created on my machine also. I'm running Windows Vi...

Due to Shared memory, when MS Visual C 6.0 DLL crashes it also causes VB 6 EXE to crash

I have a problem where Due to Shared memory, when MS Visual C 6.0 DLL crashes it also causes VB 6 EXE to crash. Our main program EXE is written in VB 6. It calls plug-ins (DLL's) for the various file types, these are written in MS Visual C 6.0. When a "C" plug-in (DLL) encounters a problem it some times crashes and this causes the EXE pr...

VB (macro in excel) - compile error

i am try to create an uploader in excel using vb (macro) to store data in an access database. i believe in terms of the script everything is ok. its just that when i run the upload it gives me the error Compile error - User-Defined type not defined and once i click on OK it highlights the part where it finds the error which is: Private...

Call a COM DLL dynamically

I have an application in VC++ which needs to execute a function provided to it (function name entered in a text box) from a COM DLL (file name provided in another text box). I have seen code for loading a Win32 library using LoadLibrary and GetProcAddress. How can this be done for a COM DLL file (created in Visual Basic 6.0)? Is there...

Why would this event handler code cause a Object reference not set to an instance of an object. Error (only present on live server, ok on dev) ?

Here is the code for the button click event; Protected Sub CompetenciesButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CompetenciesButton.Click Dim con As String = WebConfigurationManager.ConnectionStrings("foo").ToString() Dim selectedrow As String = Competencies.SelectedValue.ToString ...