Unable To Access Class

Dec 8, 2010

I"m developing a small app in silverligh with VB

I created an :SQL Database , ADO.Net model and a Domin service

The code was auto generated for me.

All im trying to is access the class and call my query.[code]....

View 1 Replies


ADVERTISEMENT

Asp.net - Unable To Access Session State From Class?

Jul 2, 2010

I have a Dynamic Data application to which I have added a class for extending EDM. Everything works great, but now I am trying to set an entity property value equal to a value in session state - and its not recognizing the Session command. I'm trying to do something like this:

audit.action_by = CStr(Session("person_name"))

I think this is because I do not have the class Inheriting Page, but if I do add Inherits Page it breaks other stuff. How can I have the class include the ability to utilize sessions directly without inheriting Page?

View 2 Replies

Unable To Access AppSettings From App.Config In A Class Library Project

Mar 1, 2012

I am trying to access appSettings using the following syntax and I have used it before in my many website projects but not in a class library project. In this class library project I cannot even access the AppSettings Keys. Is there any way I could access the AppSettings Key from my class? Is the class library project's app.config or project structure behave in a different way?

[Code]...

I have already added Project Reference to System.Configuration and imported in my class. When I run my code it says, "Object not set to an instance of any object".

View 2 Replies

Unable To Use An Instance Of The Nested Class Through A Public Variable Of The Parent Class?

Jun 7, 2012

I want to created a nested class that can only be visible to and instantiated from the parent class.But I also want to be able to use an instance of the nested class through a public variable of the parent class.I tried making the nested class private, or making the nested class' constructor private, but it won't compile.Is it possible to do this in .NET?

[Code]...

View 3 Replies

Class Property Usage - Unable To Retrieve A Variable From On Class

Nov 14, 2009

I have three class files, accounts.vb and transactions.vb in addition to my form.vb. I am unable to retrieve a member variable from on class from inside the other. When the combobox index changes, the program loads the correct account (checking or saving) from two different sequential files. I don't think I have the calcBalance procedure in the correct class file. And that is what I am having trouble with. Accessing it to display it. [Code]

View 1 Replies

Unable To Find Class

May 25, 2010

I wrote a class and now that i find it works, I need to tweak it, but cannot locate it.

View 4 Replies

Access To Object Passed ByRef In The Constructor Of A Class Through Another Part Of The Class?

Aug 18, 2009

I have some classes, BsfciFile and StudyFlashCard. Bsfci is the extension to which I save my set of flashcards in an INI format. I am currently working to transform my code from using Windows API calls to access the INI to using a IniFile class that I found on the internet. I would like the BsfciFile to have a Array of StudyFlashCard objects, but I would like the StudyFlashCard class to use the IniFile class object contained in the BsfciFile class. I can pass the IniFile from the BsfciFile class to the constructor for the StudyFlashCard class, but I want it to modify the same IniFile as the BsfciFile class has later on.

[Code]...

View 1 Replies

Unable To Change Base Class Name?

Aug 20, 2005

Anyone here ever tried to convert DockPanel (by Weifen Luo) from C# to VB?In another post I was able to change my base class name, but the child form is not going inside the DockPanel control of my main Midi Form.

View 11 Replies

Access Members Of A Sub Class Through A Property Of The Parent Class?

Mar 30, 2010

This is a bit of a continuation from a previous post for which AtmaWeapon was very informative.

Problem:
A parent class has a sub class with various properties. A property of the parent class is a List(of T) with T = the sub class The issue is how to store data in the sub class of the instantiated parent

Some example code (hopefully formatted correctly):

Code:
'=========== Class Definitions =============
Public Class courseClass
Public Class timeTableClass

[Code].....

View 7 Replies

Access The Base Class Inside A Derived Class?

Oct 22, 2010

How do I access the base class inside a derived class?

View 1 Replies

Can't Access Class From Code-behind. Class Is App_Code Folder?

Feb 15, 2011

I have a very simple class that is located within my App_Code folder in my VS2008 web application project. I am trying to instantiate an instance of this class from my code-behind file. Intellisense does not seem to be seeing my class and I am not sure why. I am using VB.NET which I am admittedly not that familiar with as compared to C#. Perhaps I am missing something. I would bet it has something to do with something I am missing in VB.NET.Here is my simple class (for testing):

[Code]...

View 2 Replies

Private Read/Write Access And Public Readonly Access For Variable In Class?

Jan 12, 2012

Is it possible to set a variable in my custom class for Private Read/Write access and Public Readonly access without creating Properties with Get and Set? In other words, from within my class I want full access and from my form I only want read access. Right now I declare my variable as either Private or Public to control Public read/write access. I tried googling my question a bit but I'm not sure what the correct terms even ar

View 5 Replies

Listview - Unable To Cast Custom Listviewitem Class In .net?

Apr 29, 2011

I'm trying to use a custom listviewitem class that attaches additional information to a lisview item. Here is the class:

Public Class albumListViewItem
Inherits ListViewItem
Public hash As String

[code]....

When I try to cast a listviewitem to my custom class like this:

Dim albumItem As albumListViewItem = CType(lsvHidden.items.item(0), albumListViewItem)

I get the following error, "Unable to cast object of type 'System.Windows.Forms.ListViewItem' to type 'AudioMatic.albumListViewItem'."

View 3 Replies

Unable To Print Using Access?

Jan 9, 2009

I found this for Access Automation: How To Automate Microsoft Access From Visual Basic .NET

BUT, the "Imports" statement given on that page doesn't work in VB.NET Express 2008, so far as I have found. Imports Microsoft.Office.Interop

Why is this? Is there a way around it, without buying Crystal Reports or Visual Studio Pro?

View 3 Replies

IDE - VB - Business Logic - Unable To Inherit Or Call The Location Collection Class

Feb 17, 2010

my form displays locations and owners for a same product, the forms have a data grid view that actually takes in the details of the location and owner of that particular product. a product can have multiple owners and locations once its manufactured over time, the forms actually display this all i need is some kind of business logic that can actually manage the historical events of the location and the owner that when a user actually goes in and adds a new entry, the end date of the previous owner gets reduced to one less than the start date of the new owner. this in formation is stored in business layers called the owner collection and the location collection, i am not able to actually inherit or call the location or the owner collection class in the classes.

View 1 Replies

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

[code]....

View 1 Replies

2008 Unable To Access Database In Win 7?

Sep 30, 2011

Here my proj details

details:
application:vb.net 2008
database:ms access2007
32bit OS vista

actually what the problem is my project is working fine with windows vista in all the systems my other teams members are using 64 bit windows7 in windows 7 projects runs but couldn;t able to connect with database not able to save the data.

i want to use the project in windows 7

View 2 Replies

Asp.net - Unable To Access Resources In .net Web Project?

Mar 6, 2012

How do I access resources in a .Net Web Project. I created a web project and then in App_LocalResources folder added a resx file "AstroWap.resx". Now how do I access values from that. The property My.Resources itself is not available.

View 3 Replies

IDE :: Unable To 2008 Data Access?

Jul 6, 2011

tell what 'visual' designer was used when developing an existing a VB.net 2008 desktop application? What do I click on to tell what 'visual' designer was used? Also once I know what visual designer was used, can you point me to a url to tell me how to use that visual designer? need to change some of the tables behind an existing desktop application. Basically some of the production tables will be changing. The users want to keep the existing desktop (gui) interface since they like it alot.

View 1 Replies

Unable To Access A Database Without The Need Of An Sql Server?

Jun 6, 2009

First off this isn't a homework assignment I am doing, I'm making a customer database program for my husband.The problem I am having is that I need to be able to access a database without the need of an sql server.

[Code]...

it is a GUI application, and the only book i have on the subject deals mostly with console applications. I also added the data source to the project in visual studio. please tell me what I am doing wrong and how to correct it?

View 6 Replies

Unable To Access Database On Deployment?

Apr 24, 2012

I have created a program to log company and programming information for a radio station, on the test machine it works perfectly when deployed the program cannot read from the database. It creates it fine and can write to it without complaint but when opening the program which is supposed to read information from the database the program crashes, if i ask it to continue then it will bring up the form but nothing which is supposed to be populated by access to the database is populated.ed onto the deployment machine and this does not solve the problem.

this is code relating to the issue:frmMain:
' == frmMain_Load ==
' ==================

[code]....

View 6 Replies

Unable To Access DOM Of Mshtml.HTMLDocument

Dec 17, 2010

I have one sample project to automate Internet explorer in VB 6.0. The same thing when I am trying to do with .Net its just hangs my Internet explorer document. I am not able to type or click on any control on the page.

Here is the sample code block.

[Code].....

Even i am not able to fire any htmdoc_focusin or focusout of DOM which was really easily accessible from my VB code.

View 1 Replies

Unable To Access File Message?

Sep 27, 2010

I have just downloaded Visual Basic Express 2008 and am trying to create a new database file called Genealogy_Filing_System using mssql compact edition 3.5. When I try to create the file I get the message Unable to acces file Genealogy_Filing_System.sdf.

View 2 Replies

Unable To Access Oci.dll Due To Application Type

Oct 5, 2009

I am using attempting to create a connection to an Oracle database via entity framework in Visual Studio 2008. I am running 64 bit Vista Ultimate.At first, I had difficulty even making a connection to the db through Visual Studio, but eventually got things working by installing 10204_ vista_ w2k8_x64_production_db AND ODTwithODAC1110720, but only the minimal parts needed to interface via Visual Studio.I am completely new to this setup, so it's likely I have already made a mistake, but installing both packages is the only way I could create a connection via Visual Studio.I made the connection, and used the wizard to create a . edmx file. The model and associations were created perfectly, and I thought things were going to work well. I used the default name "Entities" as the reference name.[code]How is it that I can connect to the oracle db at every point except when I'm running the application?

View 2 Replies

VS 2010 Unable To Connect To Access DB

May 30, 2011

I am trying to make a new data connection to an Access DB using the Server Explorer. The connection test OK then when I click on the OK button to finish I get the following error message.

Unable to add data connection. Index was outside the bounds of the array.

I am using VS2010 and the 4.0 .Net Framework. I have found several posts on this but done have worked out.

View 1 Replies

C# - Access Class And Its Functions From Another Class?

Apr 13, 2010

This is my first major application using multiple classes. It is written in vb and I know about creating objects of the class and using that instance to call functions of the class. But how do I create an object with constructors to allow another program written in C# to access my classes and functions and accept things from the program.

View 3 Replies

Unable To Delete Records From MS Access - OleDbConnection?

Feb 6, 2010

In my application, I open a "Customer Details" form and on confirming I have to delete all records from other 2 tables (Order & OrderDetails) of the database. I am not able to delete records. It somehow stops by on - ordDetAdap.Update(ordDetDs) . The code is as follows :

[Code]...

There may be N number of Orders and each order may have N number of OrderRedetails. There are rows and also shows proper data in MsgBox, also row.Delete works fine, BUT why does it stop at Update(OrdDetDs) I can't make out. Any idea where am I going wrong.

Also Is their any easy way out to delete all records using just a single statement providing OrderId from OrderDetails table ? As of there are 10 rows of a single order, then For loop will iterate 10 times and delete 10 rows, instead if I can delete all 10 rows at once would be beneficial.

View 10 Replies

Unable To Insert Data Into Access Table?

Mar 13, 2011

I am trying to insert data into access table using VB.Net 2008. But each time I am getting error: "Syntax error in INSERT INTO statement". I typed following code.

On Error GoTo errores
Dim cn As OleDbConnection
Dim cmd As OleDbCommand

[Code].....

View 5 Replies

Unable To Access Events Of HtmlDocuments With Internet Explorer?

Dec 18, 2010

I have one sample project to automate Internet explorer in VB 6.0. The same thing when I am trying to do with .Net its just hangs my Internet explorer document. I am not able to type or click on any control on the page.

Here is the sample code block.
Imports SHDocVw
Imports mshtml
Public Class FrmRecorder

[Code]...

View 16 Replies

Unable To Access The Dynamically Created Controls In Tabcontainer?

Jan 20, 2012

I'm developing a chat system. In this I'm creating dynamic tab panels in a tab container when I change the selected index of the list box of users. In these tab panels I'm creating 2 text boxes and 1 button dynamically and adding a handler for the button click event. I'm storing the tabid's in the session state and recreating all the tabs in the page_init event. I can fire the button click event in the tab panel, in which I'm unable to access these dynamically created text boxes but I can access a label which I created statically. I used the findcontrol() method but it is showing an error message: "Use new command to create the textbox instances". It is showing something like I haven't created the instances of textbox.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved