vb

webdav enabled windows server 2003, "SEARCH" http method available

webdav enabled windows server 2003, “SEARCH” http method available BUT... is not in the responseheaders for "DASL" (using http options), only e.g the following would return http 400 bad request. HTTP SEARCH <?xml version='1.0'?><DAV:searchrequest><DAV:sql> some query </DAV:sql></DAV:searchrequest> using asp.net ...

cast an object to a dynamic type

How would I accomplish this: CType(abstracttype, DynamicType) I need a way to figure out what figure out what the Dynamic Type would be. ...

How do I send keystrokes to a serial port in vb.net?

I am trying to send a ctrl-x keystroke to COM2 and I ahve to code to open the port and read and write but when I tried to send Chr(Keys.ControlKey + Keys.X) it did not work. any ideas? ...

Get process id of process started with CreateObject in .NET

Hi! I'm using VB.NET for a web-application that starts some process using CreateObject, like this: Dim AVObject = CreateObject("avwin.application") After all is done everything get closed down en stopped using the proper release functions, however, for some reason the process remains. Is there some way in which I can get the proces...

VB.NET vs. C#.NET?

The company I work for has all of its legacy ("legacy" being used rather liberally in this context) code in VB.NET. They have about 6000+ lines of VB.NET code, so all of the developers are comfortable with it. We have started to develop a new product, and are finding that some modules are easier to complete in C# than in VB.NET, such as...

OleDbExeption Was unhandled in VB.Net

Syntax error (missing operator) in query expression '((ProductID = ?) AND ((? = 1 AND Product Name IS NULL) OR (Product Name = ?)) AND ((? = 1 AND Price IS NULL) OR (Price = ?)) AND ((? = 1 AND Quantity IS NULL) OR (Quantity = ?)))'. I need some help sorting this error out in Visual Basics.Net 2008. I am trying to update records in ...

Passing parameters to a flash movie inserted in a VB program

Hi! I need to insert a Flash movie in a Visual Basic 2008 express form and send parameters to the movie, but am a newbie to VB. The flash movie will plot points sent by VB in a graph. I tried to insert the Shockwave Flash control in the form but cannot find it anywhere. So I inserted the webbrowser control, which I understand can be use...

Read VB binary file with c# (knowing the structure)

I'd like to read a file that has been binary saved by a vb prog. the file should be read line by line, 'cause every single line represents an object with many attributes. a link looks the following: 999011011/10/1 ELW the structure of data types is: Public Type ...

Loose coupling of COM in C# or How to avoid COMException 0x80040154

I have a .Net 2 C# application I am developing which uses a VB 6 generated COM DLL. The VB DLL is updated frequently any my application crashes with a System.Runtime.InteropServices.COMException (0x80040154). The part of the COM DLL I use does not change but the version (and CLSID) will. The "Specific Version" option for the reference ...

Where and how to store functions in asp.net.vb

Hi. I am using visual studio 2008, asp.net.vb I have various functions; 1 that calculates totals, 1 that calculates averages, 1 that calculates percentages etc. The data they act upon is different depending on the particular web page, but all my pages use these functions. So I want to know how I can store these functions in a single p...

MS Access 2003 - VBA for altering a table after a "SELECT * INTO tblTemp FROM tblMain" statement

Hi. I use functions like the following to make temporary tables out of crosstabs queries. Function SQL_Tester() Dim sql As String If DCount("*", "MSysObjects", "[Name]='tblTemp'") Then DoCmd.DeleteObject acTable, "tblTemp" End If sql = "SELECT * INTO tblTemp from TblMain;" Debug.Print (sql) Set db = CurrentDb db.Execute (sql...

Read a binary file into an array.

What's the fastest way (using VB6) to read an entire, large, binary file into an array? ...

Visual Basic (VB) Forms: wait for a user click?

Making a simple form that is to step through a program iteratively. How can I get it to run a method each time a user clicks a button and wait once it is finished for the next click? Thank you. ...

iTextSharp and VBnet question about headers

Hello! I'm wondering how can I put a header into my pdf file, cause i've tried the tutorials from here: http://itextsharp.sourceforge.net/tutorial/ch04.html And it have not worked. Ive done this: Dim head As New HeaderFooter(New Phrase("This is page: "), False) head.Border = Rectangle.NO_BORDER document.Header = head But VS2008 say...

Accessing a CheckBoxList control in a DotNetNuke Module

Hey all, I'm hoping I can get some quick help on this as I've been stuck here for the last week and can't move on until I get this figured out! I have a dynamically created CheckBoxList in a DotNetNuke module I'm building. When DNN creates the page, it prepends the control name with the moduleID and moduleName. So, when I have "AddLice...

Using Cases to change background colour | Visual Studio 2008

I really need help working with cases, I'm only learning it so far, but just can't get a drop down menu to work that would change the background of a Textbox. Private Sub cbColours_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbColours.SelectedIndexChanged Select Case colours Case...

asp.net dynamic checkboxes

OK, I hope this hasn't been asked anywhere before (my searching suggests not - but I know thats not a guarentee!!), if it has, please point me to it etc?? My problem is basically this... I have an asp.net page which a user types in a "search" box, the code behind functions/subs etc produce a list of users matching the search criteria. ...

Why GUID is returned as empty?

Hi, After loading an entity from the database using LINQ-to_SQL,I pass the entity.ID(the value is GUID after loaded from the db) to a method having argument of type GUID.When I access this parameter in the method,I get an empty value,and not the GUID.Why is it so? public sub DoSomething( ByVal userID As System.Guid) So, when I pass e...

Import Twitter XML into Visual Basic

Hello, I'm trying to import an XML that's provided by twitter into a readable format in Visual Basic. XML looks like: <?xml version="1.0" encoding="UTF-8" ?> - <statuses type="array"> - <status> <created_at>Mon Jan 18 20:41:19 +0000 2010</created_at> <id>111111111</id> <text>thattext</text> <source><a href="ht...

ListView not importing data

Hello, I'm trying to import data into a listview and this is the code I'm using: Private Sub form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim doc As New XmlDocument doc.Load("http://user:[email protected]/1/statuses/mentions.xml") Dim nodes As XmlNodeList = doc.SelectNodes("St...