I have a property Cmd defined as follows
Private _cmd As ADODB.Command
Public ReadOnly Property Cmd() As ADODB.Command
Get
Cmd = _cmd
End Get
End Property
However, when I try to use it like this:
y = x.Cmd("abc")
I get:
Overload resolution failed because no accessible 'Parameters' accepts this
number of argum...
I want to be able to iterate through a tree and compare nodes one tree to the nodes in another tree of the same format.
EX: There are five categories.
1 - 5. Are all static and identical between both trees.
In 1. All static values. So i need to just compare the values of the nodes there.
In 2. This is comes from a KVP object and...
How do you open a word document in VB.NET. The document is a manual for the program.
...
While I used to VB 6 like the back of my hand, it has been a very long time I have never attempted to convert a large project. Are their any guides to help me along the process?
...
My current solution consists of several Class Libraries and a Website. I'm in the process of globalizing the application and I realized that my resources need to be accessed by all the projects not just the website so placing my resources in the App_GlobalResources folder didn't work.
I added my resources to one my class Libraries and ...
I have a class called Person:
Public Class Person
Private PersonID as String
Private Name as String
Private Records as GenericCollection(Of PublicRecord)
Public Sub New(ByVal ID as String)
Me.PersonID = ID
Me.Name = getPersonName(ID)
End Sub
'Get/Sets
End Class
getPersonName is simply a function ...
The question quite an older and often asked around, i have similar questions here but my question is a bit more specific.
Q1. Is it legal to mix C# and VB.Net code in ASP.Net Web Application? Will it work or not? If it works how it may be done? Any sample will be good.
Q2. If there are any repercussions of mixing C# and VB.Net code the...
Currently in our VB.Net windows application, 'C' libraries are present under 'bin' directory but we want to store it under aplication root directory where other forms and classes are present...How can we do this in Vb.Net 2008?
...
I am trying to setup a few fixes in some code that have caught me out, and am trying to get some exceptions to spit out if the developer trys to access a property where rules haven't been met.
nb. Lots of this class has been omitted for Clarity.
myobject = new POSTerminalList(mCommonManagers)
' This should throw an error which it doe...
I have several classes, that all derives from SuperClass.
When the classes are created, they all are put into a List(Of SuperClass).
When I go through the list, i would like to downcast the SuperClass object to its baseObject, and put it into the correct list. (I have one list created for each of the sub types of SuperClass).
It is p...
Hi,
I have a date like this:-
20091023
i have to convert it to a suitable format so that i can insert it into the database.For this firstly i have to convert it to 2009/10/23.How can i do this?
...
I have a WPF VB.NET project in Visual Studio 2008. For some reason, Visual Studio thinks that it needs to add an
Imports MS.Internal.Xaml.Builtins
to every auto-generated XAML partial class (= the nameOfXamlFile.g.vb files), resulting in the following warning:
warning BC40056: Namespace or type specified in the Imports 'MS.Interna...
I'm developing an application in VB.Net (VS2008) which allows the creation of classroom layouts. The layout is a panel and has child panels (seat objects) the seats are then populated using drag and drop and show a preview of the person sitting there.
I would like to export this panel to a printable format such as jpeg, pdf etc.
I have...
Hello,
I would like to create programmatically an animation for the background color of a label but I have some problems.
I have implemented the following code:
Public Sub DoBackgroundAnimation(ByVal obj As Label)
If obj Is Nothing Then Return
Dim animatedBrush As New SolidColorBrush()
animatedBrush.Color = ...
I have a datagridview and once I populate the view with the data source I hide the columns that I do not need. For some reason the 1st column is not hiding. I have checked the column name and they match and the 2nd line executes fine hides the column for the EVENTID. I even did a messagebox.show( dgvTourOther.Columns("OTHERID").name)...
I'm making a VB.NET application with an SQL Server 2005 in the background. Naturally the user can not edit the database directly but will use a number of UI features to be able to add and modify the data.
However, there are a few tables that should be easily accessible from the admin interface such as specific information about a vendor...
How to find the position or location of string in given document.I have one word document and i want to store all its words and word positions in database so thats why i need to find the position of the words.
so please tell me how can i find position or location of word or string in given document.
i intend to use vb.net or c# for a...
Hello everybody
I am in a crucial project and I am trying to speed up the development phase by using codesmith for generating the business class DAL and info class for the tables of my project.
There are about 50 tables with relationships parent child many to many and for retrieving data I have to code several inner joins in stored pr...
I have been struggling with getting FormViews to work the way Microsoft expects me to for about a day and have figure a bunch of great stuff out.
I can catch e.Exception and e.ReturnValue in the ObjectDataSource.Inserting Event Handler and I can even cheat and check other properties of the Object in the ObjectDataSource.ObjectDisposing ...
We are currently hiring at the company where I work, and here the codebase is in VB.Net.
We are worried that we miss out on a lot of brilliant programmers, who would never ever consider working with VB.Net.
My own background is Java and C#, and I was somewhat sceptical as to whether it would work out with VB, as - to be honest - i didn...