vb

Visual Basic 2008 'tests'

Are there any sites which a similar program or web-exam? The best example I can give is Auto-it's "Auto-it 1,2,3" found here. This is for an absolute-beginner, myself, so even the simplest questions are going to be helpful. ...

Incompatible signatures when spawning thread with ThreadPool.QueueUserWorkitem

The error is: Method 'Private Sub ProcessToolWork()' does not have a signature compatible with delegate 'Delegate Sub WaitCallback(state As Object)'. What's the deal here? I've never experienced this error spawning a thread in this fashion. Here are my routine definitions: Public Sub ProcessWork() ThreadPool.QueueUser...

How can I validate text box input in Visual Basic?

I am doing a program and I need to validate my text boxes. For the program the user needs to put in a phrase. But I am not sure how to make sure that the user actually entered in a phrase, the phrase isn't (ex.) skldkfdl, or that there isn't a space. ...

Exclusionary Set Syntax with Linq, VB

I'd like to do a subtraction of sets based on criteria. A pseudo-query would look like: select table1.columnn1 ,table1.column2 from table1, table2 where (table1.column1.value1 not in table2.column1 and table1.column2.value2 not in table2.column2) I can make it to about here: dim list = From tbl1 In table1 Whe...

Working with Anonymous Types with Linq in VB, C#

Say I create two sets of tuples like so: Dim losSPResults As List(Of spGetDataResults) = m_dcDataClasses.spGetData.ToList Dim loTupleKeys = From t In losSPResults Select t.key1, t.key2 '' Query on an existing dataset: Dim loTupleExistingKeys = from t in m_losSPResults Select t.key3, t.key4 Now I want to perform set op...

VB 2008 -- Exception handling in property for ambiguously typed data coming from web service

Hi, I need to consume data from a webservice. I am receiving xml data and using this to create objects through property setters. In one particular case, an attribute of the object (called "is_active" and indicates whether the object is active or inactive in the application) is represented sometimes by <field type="BooleanField" name="...

How should I bind to my textbox's events?

I am populating a textbox (txtFileNature) with a value from a popup window. The textbox has an onfocus handler set to onfocus=("this.blur();") The problem is that I want to do some calculations based on the value of txtFileNature and want to display the result below it. In which event can I can use my VB code. I can't use the textcha...

VB6: Runtime Error '13': Type Mismatch when setting and int with an int

I'm not new to VB6 programming, but I'm not a master at it either. Hopefully someone can help me out with a question that I have concerning a Type Mismatch error that I'm receiving from trying to set an int variable with a int returned from a function. The integer that I'm trying to set is defined as: Global AICROSSDOCKStatus As Intege...

how to call vb function from javascript

Hi guys, i am using textbox(txtFileType) with event OnFocus=("this.blur();"), so i cant use textchanged event for this textbox, i have written a vb code to calculate my FileNumber using Storeprocedures based on the value of textbox(txtFileType). can i call this vb code from javascript which can be used in clientside.. please help with a...

confusion over datagrid erasing entries and general datagrid access

Hello, I have a datagrid which I am using Linq to fill, I then add some custom columns and fill them in programmaticly - if the users clicks on the column header to re-sort, all the data in the added columns disapears. I am obviously missing something very basic here but can't seem to see the forest for the trees. I also have a couple...

change datagrid columns order or index

OK, This is something that I cannot believe I have not been able to figure out -- please tell me I am missing someting simple... I have a datagrid, I am filling it with Linq as well as a custom class to add data to it. Afterwards, I need the data in a specific order - it seems to ignore me. How do I change a columns properties, like ...

IIS7 automatically redirect to null (in IE).

I'm developing an ASP.NET web site with VB. My web site is work perfectly with Firefox. But, with IE, it's redirect automatically to null. When I try http://localhost/mysite/Default.aspx IE6/IE7 automatically redirect to http://localhost/mysite/null But, there is no problem with pages inside sub folders. When I try with ...

Session Problem ASP.NET - SQL VS 2008

I have an odd session problem. I store a session in a global session class and access it on different pages. Anyway, most of my pages work fine except this one page which is really preplexing me. I set the session in one page and access it on the next for a SQL select / update /delete and with my FormView / GridView /Details View. Needle...

how to create windows applications in VB.Net or ASP.Net

which method is more efficient to use: DataAdapter and DataSet Or DataReader when importing data from a certain database table??? ...

Efficient way to check if DataTable has row

Hi, I have a function that search for a keyword and then return DataTable. I want to check if there rows inside because sometimes there's no query found. 'which one shoud I use ? If dtDataTable Is Nothing Then 'some code lbl_count.Text = "Found 0 result" End If If dtDataTable.Rows.Count > 0 Then ...

How to get date from datetime format

hi guys, I have a datetime for eg:23/9/2009 10:00:00 AM .I want to get date from datetime.Means 23/9/2009 .Can anybody help ...

Encryption Problem TDES

Hi there, I have a class called tdes which looks like this: Imports Microsoft.VisualBasic Imports System Imports System.Collections.Generic Imports System.Text Imports System.Security.Cryptography Imports System.IO Namespace security Public Class tdes Private des As New TripleDESCryptoServiceProvider() Private utf8...

Convert VB's Val to Java?

How to implement VB's Val() function using Java programming language or is there any API that has the same method? ...

Error regarding AjaxControlToolKit

Hi guys, While iam running a page iam getting following parse error. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load file or assem...

How to code a button to get data from a table in database and display in datagrid view ?

I'm trying to code a button which has a SELECT statement to get information from one table but I want the information displayed in a data grid view. From the data grid view, this data will be stored in a different table within the same database. Previously i had used a list box to display the information but i could not save it in the ...