Runtime Error '380':Invalid Property Value

May 2, 2006

A VB5 program I wrote years ago stopped working and is now giving me this error:

Run-time error '380':Invalid property value

I cannot figure out what has changed, since I run that program almost daily.   It was working fine, then stopped (without any changes to the program).   I suspect I may have uninstalled something it uses, but cannot figure out what.When I open the VB5 IDE, I get an error saying:

'c:program filesdevstudiovbComct232.ocx' could not be loaded--Continue Loading Project?

If I say no, it does not load and I cannot see the source code.If I say yes, it does load and I can see the source code but I get weird compiler errors.


Runtime Error '-2147418113 (8000ffff)':Could Not Get The CurLine Property. Unexpected Call To Method Or Property Access

Sep 24, 2009

start with I was given a program by a friend that was created in Excel 2003 with the help of Visual Basic Editor. He said he used Visual Basic 2003, which he is not 100% sure about. Anyways he used CurLine in the program and when I try to open it in Excel 2007 and then open the Visual Basic Editor and run the program I get the following error:Run-time error '-2147418113 (8000ffff)':Could not get the CurLine property. Unexpected call to method or property access.

View 2 Replies View Related

Unexpected Error Number 380 Has Occurred: Invalid Property Value

Dec 6, 2011

OS: Win7 64bits Software Tools:Package and Deployment Wizard (for VB6.0)The vbp file is working in XP. Installed the VB6.0 in Win7 64bits, it can make the exe file.However, the setup file can be made using the 'Package and Deployment Wizard' Tool.

View 2 Replies View Related

ERROR : Wrong Number Of Arguments Or Invalid Property Assignment

Dec 9, 2011

I generally use VB.Net for programming but I have been delegated to a VBA project that would benefit from using script control for running script. Here is sample code but errors out on the .Run line of code. I can do this in VB.Net easy but can't get it to work in vba.

ERROR = Wrong number of arguments or invalid property assignment

Option Explicit
Dim sc As New ScriptControl
Sub RunFunctions()


Using the .Eval function from the script control object runs ok in vba but does not run scripts.

Sub SimpleTask()
Dim expr As String
sc.Language = "VBScript"


View 2 Replies View Related

Changing A PictureBox Image On A SerialPort_DataReceived Event Yields Runtime Error: Invalid Operation Exception Was Unhandled?

Nov 28, 2009

Any thoughts on what might cause a thread error like this?Error:InvalidOperationException was unhandledCross-thread operation not valid: Control 'Form1' accessed from a thread other than the thread it was created on.

Relavent Code:
Private Sub SerialPort_DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived


View 3 Replies View Related

Query Return Value - Getting An Error In Runtime That Is "Invalid Attempt To Call Read When Reader Is Closed" ?

Aug 31, 2009

I have an error that is during the query to a database ExecuteReader 'phase' of my program, i am assigning an .OleDbDataReader to a variable RetVal and then, i am giving this RetVal = Query.ExecuteReader, and then in the while the query is being read loop(While RetVal.Read) i am getting an error in runtime that is "Invalid attempt to call Read when reader is closed." I know this means i have to open the reader, but i don't know how to do this, as i have been using this process for a few weeks and haven't had this error pop up. (and i have managed to use the while loop)If you're not living on the edge, you're taking up too much room

View 7 Replies View Related

Show The Error Provider Properties To Property Grid At Runtime?

Feb 23, 2011

In designer i had a button with errorprovider.The button show 3 extra properties at button's property grid in design time.Error on ErrorProvider1

IconAlignmnent on

IconPadding on

But how can i show this 3 extra properties in propertygrid at run time?

Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim propertyGrid1 As New PropertyGrid()
propertyGrid1.CommandsVisibleIfAvailable = True[code].....

View 4 Replies View Related

Runtime Error 1004 : Unable To Get The Correl Property Of The Worksheetfunction Class

Apr 9, 2012

my error code is run-time error 1004 unable to get the correl property of the worksheetfunction class. I read the data from xlsx-files to one dimensional arrays in my vb - program. the essencial code parts are

Option Explicit
Option Base 1
Dim winvyf() As Double, winvx() As Double


View 1 Replies View Related

Runtime Error: This Application Has Requested The Runtime To Terminate In An Unusual Way

Aug 6, 2007

I have a Visual Basic 2005 program which runs fine if I execute the built Executable. However if I start the application in VS2005 debugger it gives a weird error


View 5 Replies View Related

Error - In Order To Evaluate An Indexed Property, The Property Must Be Qualified And The Arguments Must Be Explicitly Supplied By The User

Jun 20, 2012

I'm having a few problems converting some code into VB.NET from C#. Most of the translating is done, but I am getting errors when I try to run my code, and I can't figure out what is causing them. Here is the Sub I translated.

Public Sub CreateWidget()
Dim blue As LCDColor
blue.Red = 0
blue.Green = 0


The error I receive on this line ("vision.Widgets.CreateWidget(wg1)") reads "In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user."

View 11 Replies View Related

Know Name Of A Method / Property At Runtime?

Nov 17, 2009

I'm writing a debug dump for my app and need to know which Method or Property caused the error along with a trace of the last few routines.

View 3 Replies View Related

Read Only Property In Runtime?

Aug 12, 2011

How to declare property which can be modified in project mode but will be read only in runtime mode? 

View 3 Replies View Related

VS 2005 Error: Property Access Must Assign To The Property Or Use Its Value?

Aug 13, 2011

got an ErrorProperty access must assign to the property or use its value.Here i attach the code which have an error.In this program i tried to add data into form . I also create button , textbox. i am using visual studio 2005 and sql 2005. i also have attach the imagece

Private Sub btnregister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnregister.Click
admin1.LoginDataSet.staff(Me.NAMETextBox.Text, Me.TELEPHONEMaskedTextBox.Text,


View 7 Replies View Related

Can't Set The Name Property For The Timer Control At Runtime?

Feb 3, 2010

I am relatively new to programming and have managed so far with google and a lot of patience! I am having a problem naming timer contols at runtime. This is what I am trying to achieve.

1. I connect to my dataset and to my first record

2. I create a loop for the recordset

3. I create various objects on a form and name them using the info in the dataset

I also need to create timers and name them using the first field of my dataset. It needs to be dynamic as its database driven. There could be as many as 100 timers at any one point.


View 1 Replies View Related

Refresh A Property Of A Graphic During Runtime?

Dec 20, 2010

I have a form where there's a shape and I'm trying to change the properties of the shape during runtime. For example, you press the Up button and it's supposed to move 30 units up:


View 5 Replies View Related

Invalid Argument Error?

Apr 19, 2010

Private Sub lVW_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LVW.Click
With LVW 'LVW=ListVew Name
LVW.Text = .SelectedItems.Item(0).Text


View 6 Replies View Related

Invalid Conversion Error?

May 25, 2011

I recently upgraded a VB 6 project to .net. I'm having a problem with this block of code:

Dim CtrlName As System.Windows.Forms.MenuItem
For Each CtrlName In Form1.Controls
'Some code here


View 3 Replies View Related

Runtime - Error "microsoft Common Languages Runtime Version 4.0.30319.0"

Jul 29, 2010

Soemone recently downloaded my software and they got this error: microsoft common languages runtime version 4.0.30319.0 how do i fix this

View 1 Replies View Related

Change The TypeConverter Attribute Of A Property At Runtime?

Dec 20, 2011

I have a class created for use with the PropertyGrid control in a VB.Net application. One of the properties of the class is:

Private _someProp As String
<Browsable(True), _
BindableAttribute(False), _


View 1 Replies View Related

Custom Control Property Persistence During Runtime

Aug 30, 2011

How to get a property to persist after its been changed dynamically during run-time? When Visual Basic reverts back to the IDE, the property goes right back to its original value.

View 3 Replies View Related

Get A Property To Access Its Own Name And Type At Runtime Using Reflection?

Mar 12, 2010

Is there a way for a property to access its own name and type at runtime using reflection? I want to access this info without hard coding the name or index of the property in the class.

Simple Example Code:

Private ReadOnly Property MyProperyName() As String
Console.WriteLine((Get Current Property Info).Type.ToString)
Console.WriteLine((Get Current Property Info).Name)


View 1 Replies View Related

Modify Property Code At Runtime In Program?

May 15, 2012

Let say I have the following classes[code]...

If I wanted to say, alter the code definition of the automatic property X (at runtime, perhaps in Sub New), such that I could throw the PropertyChanged event

View 2 Replies View Related

Set Property Values At Runtime By Control Type?

Feb 21, 2010

I thought I saw how to do this but can't seem to find it now.Is there a way to set the properties of all controls on a Form by Control Type?Meaning, if I have 5 textboxes on a form can I write code like .If page.contol is TextBox then

textbox.forecolor = Blue

Then when the page loads is sets all the textboxes forecolor on the form to Blue.

View 8 Replies View Related

Compile Error Invalid Qualifier

Mar 2, 2010

i am using vb6 and sql express. came to this error when i press the update button it says "compile error invalid qualifier". the error is at " live.tostring("dd/mm/yy") "

private Sub cmd_update_Click()
Dim conn As New ADODB.Connection 'ADODB Connection Object
Dim recset As New ADODB.Recordset 'Recordset Object
Dim sql As String ' String variable to store sql command


View 2 Replies View Related

Error 481 Invalid Picture In Using Vb6 App In Win7

Jun 11, 2010

I've had developing an old vb6 (sp6) app in my pc with winxp and running it in other with win7.

View 1 Replies View Related

Run-time Error 94 Invalid Use Of Null

Apr 16, 2009

Run-time error 94 invalid use of Null

View 16 Replies View Related


May 11, 2010

Has anyone ever received an "INVALID CONTEXT ERROR" while running a threaded VB.NET 2.0 application? We seem to be getting this error very sporadically, but can't seem to determine the root cause.

View 1 Replies View Related

VS 2008 : Error : Invalid Dn Syntax

Oct 13, 2009

Trying to run the following

treeval = e.Node.Text
Dim strVal As String = New String("LDAP://,OU=Desktops,OU=Devices,DC=domain,DC=suffix")
Dim domain As New DirectoryEntry(strVal & "'DOMAINusername', 'password'")


I get an error saying "Invalid dn syntax"

View 7 Replies View Related

Error 83 Property Access Must Assign To The Property Or Use Its Value

Dec 22, 2010

Well in my vb project it has started giving me a really weird error underlining all my msgbox codes for some reason

this is the error  Error 83 Property access must assign to the property or use its value. C:UsersAidanDocumentsVisual Studio 2008ProjectsXeX 360 ModzZ B0XXeX 360 ModzZ B0XForm1.vb 56 17 XeX 360 ModzZ B0X

View 4 Replies View Related

Error: Property Access Must Assign To The Property Or Use Its Value

Apr 20, 2010

I have a property in a class as below:

Public MustInherit Class AddOn
Public Delegate Sub UpdateProgress(ByVal fractionComplete As Double)
Private privateProgressUpdate As UpdateProgress
Public Property ProgressUpdate() As UpdateProgress


I am getting the error that "Property access must assign to the property or use its value" in the above code.

View 8 Replies View Related

Can't Access Collections.Item Property In Sqlserver.dts.runtime With C#

Jun 20, 2012

I recently implemented a solution to take an SSIS package and reconfigure the connection strings of the package using[code]...

View 1 Replies View Related

Custom Control's Property Resets To Default At Runtime?

Mar 27, 2011

I created a Custom Class and Implemented a Type Converter for it. I used this Custom Class as a new property of a Custom Control.Everything is fine at design time. I can set the values of this property but at run-time the values i entered resets back to the initial declaration i made.

View 5 Replies View Related

VS 2005 - Setting Browsable Attribute Of Property At RunTime

Mar 24, 2009

I have done some searching, but am still having trouble trying to set the browsable attribute of property to false at runtime in order to hide in the properties grid control (based on certain conditions).

View 9 Replies View Related - Error : Hexadecimal Value 0x1F, Is An Invalid Character

Jun 25, 2012

I am getting the following error:

' ', hexadecimal value 0x1F, is an invalid character

Here is my function. I get this error when it hits "reader.MoveToContent()" for the first time. Can anyone point me in the right direction?

Public Function GetSyndicationFeedData(ByVal urlFeedLocation As String) As SyndicationFeed
Dim settings As New XmlReaderSettings() With { _
.IgnoreWhitespace = True, _


View 1 Replies View Related

Decryption Error : Padding Is Invalid And Cannot Be Removed

Apr 23, 2010

I have been writing a security class in my application, I am able to encrypt the string correctly and without error. However every time when I try to decrypt this string again, i get an error with this as it returns the following Padding is invalid and cannot be removed.

Here is the code:

Public Function DecryptKey(ByVal plainText As SecureString, ByVal key() As Byte, ByVal iv() As Byte) As SecureString



And it provides a stack trace with:

at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)


I have found simular issues on web, and most of them say that the IV is not the same the encrypted version, but I can confirm that the IV is the same as they both access the exact same variable.

View 1 Replies View Related

Decryption Error : Padding Is Invalid And Cannot Be Removed?

Jul 13, 2011

decryption error : Padding is invalid and cannot be removed.

View 1 Replies View Related

Error : Invalid Cast Exception Was Unhandled

Aug 15, 2011

I am getting  Invalid Cast Exception was unhandled.Conversion from String 'abc' to type 'Double' is not valid in the following line!

((xlBook.Worksheets(2).Cells(iRowIndex, iColumnIndex).Value)) = avFoundKeywordds(iSearchText)

The business intent is that user enters the keyword 'abc' and clicks search button . We have defined different keywords in a xls which has 1600 rows and 16 columns . so when finding abc in any of the cells ,it has to return the value of a column#4 where the name is specified !

View 3 Replies View Related

Error Cross Thread Called Invalid.txt

Apr 7, 2012

Cross Thread Calld Invalid.txt?

View 1 Replies View Related

Error Is: Invalid Operation Exception Was Unhandled

Feb 6, 2010

i have a datagridview that show an access database also there is toolstrip menu i defined the datasource and everything is fine except that when i run the application and edit anything and when i press the save button on the toolstrip an error appear and highlight this: Me.TableAdapterManager.UpdateAll(Me.My_phone_numbersDataSet)

and the error is: invalid operation exception was unhandled

View 1 Replies View Related

Old Format Or Invalid Type Library Error In .net

Jan 9, 2008

Iam getting an error "Old format or invalid type library" when im running the .net application in systems(pc) having MS Office 2000 versions.and im not getting any errors for higher versions like 2002,2003 etc.This error im getting when exporting to Excel.And i tried the following link [URL] Then also im getting same error.

View 5 Replies View Related

Copyrights 2005-15, All rights reserved