Quantcast
Channel: VBForums
Browsing all 42215 articles
Browse latest View live

Merging two txt files into new file

Hi there! I'm working on an app that merges two txt files ( Input1.txt , Input2.txt ) and create a new file (Collection.txt). What I did so far is this : Code: Public Class Form1     Private Sub...

View Article


I need some serious help

Hi when ever I open a project I get this message object library not registered and that happens under components and says c:\windows\system32\mscomctl32.ocx this just started to happen when I moved to...

View Article


I need some help please!

I am new to writing VB. I like it, it's simple and I have learned a lot in 1 month. I co-modified an application that displays information on TV screens. Nothing complex, just changes the image every...

View Article

[RESOLVED] Conversion Problem???

Hi guys.. i am having problems with this code: Code: dsNewRow.Item(4) = 6.41 * CDec(DateDiff(DateInterval.Hour, TxtTimein.Text, TxtTimeOut.Text)) It just doesn't allow it. i have option strict on. it...

View Article

value error

hello everyone i have a form with 2 combobox now i added a text and i get a error message this is the code Cn.Execute "INSERT INTO Curses " & _ "(LssID, LssDate, LssStudID, LssTchrID ,Lsname)...

View Article


Concurrency violation

Got this error: Concurrency violation: the Delete Command affected 0 of the expected 1 records. on a database update line. Only happens every so often. Please explain this error

View Article

VS 2008 [RESOLVED] VB dynamic array from objects

Hi, I'm working on some automation for MS Reporting services and I have following problem, I need to convert array of objects into array of object with dynamic size. Original working code is: Dim...

View Article

Crazy conversion of unique integer to alphabetical string

Hey guys, got another crazy idea to throw at you :) I have a string that is comprised from two separate unique numbers (Only Numbers, that are random lengths) Code: Dim PrePhrase As String =...

View Article


Clock and Calendar activeX for VB6?

I want two activeX for a small project that I finished long time ago, but I want to renew. I've got a cool activeX that mimics Windows Vista but I don't want the whole package as it has got a lot of...

View Article


Different Icon in the taskbar

I installed VB6 application using our installation package. If run the application program, icon is displayed in the taskbar. And I changed my application's icon, compiled it and replaced existing...

View Article

VS 2008 How to hide gridview but still access?

Hello, I know that when you hide a control is asp.net that you cannot access it. Is there a way of hiding it as far as a panel? Can I put it in a panel but size the panel to 1x1? Or in a div and hide...

View Article

Can't open .ocx file

I'm trying to open a source code project which I know works because many years ago I had it open with no errors. I installed VB 6.0 to get a look at the project once again, but when opening the project...

View Article

VS 2010 Problems with Case Statement

I am very new to visual basic and I am having problems with my code. I think it is my case statement. Everything else is working fine. But when I try to calculate the commission it returns a $0.00...

View Article


looping just continue up to end of RS

Code: Public Sub KillBlacklisted() On Error GoTo Err_Handler Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim con As New DLLConnectionFunction Set con = New DLLConnectionFunction Dim...

View Article

Editing text file issues

Using MVSE 2012 when use this code it says the file is still inuse after it loads not exactly sure how to fix this Code:         Dim line1, line2, line3, line4 As String         Dim path As String =...

View Article


Export to excel

Hi, I'm having problems exporting data from a listview control to excel for example we have item "serial" with the child items "pass value". PHP Code: serial | value1 | value 2 | value 3 | value 4 |...

View Article

VS 2010 Game Controller on VB?

Is there a way to accepts button pushes & DPad control from a USB game controller? To have it tab over & select a new current active object or to move a picture on the screen? Is XNA the only...

View Article


Image may be NSFW.
Clik here to view.

VS 2010 Call Function

hi.. I'm new to vb.I'm using vb2010. I have declare values to comboboxes and i want the value to pass on to a function.Here is the code Private Sub InitialData_Parameter() Dim M3S As String = "m³/s"...

View Article

Which laptop upgrade: HDD to SSD or 2GB to 4GB RAM?

I am more inclined to believe the HDD to SSD would be better but I just want to make sure. Of course, I'm into programming (.Net, VB6, SQL Server, NetBeans).

View Article

Printing on a Picturebox

I thought that when you printed text on a picturebox control that the CurrentX always reflected the new X position. When I do this: For n = 0 To 100 Picture1.Print "X" Next n I only get one "X" and...

View Article
Browsing all 42215 articles
Browse latest View live