How do I delete the bindings from a list box. My code fails at:
Dim i As Integer = objAddTo.Items.Count
Dim SortListA As ArrayList
Dim j As Integer
Do While i > 0
If objAddTo.Items.Item(i - 1).Selected = True Then...
Hi,
I am wanting some help with list boxes. I have a web form with two list boxes (1 for available list and the second for selected list).
What I want is some code which will be able to transfer one item from the first list box and transfer this to the other.
Any ideas?
Bob
I have a standard text box with no style attached.
However, when my page loads this text box turns yellow. This is because of the text in the td next to the control. If this TD reads Email then the control turns yellow!!!
Any ideas how to stop this?
Hi,
In a field called address I have records such as:
25 Steven Rd
Bloggs Avenue
How can I determine whether the first couple of charaters are numeric or text?
When I delete from a table without setting the where clause, everything is deleted. However, when I insert into the table again the identity starts where it left off and not at 1 again.
Does anyone know how to stop this?
The example below returns the full name from Active directory. How do I return other information such as email address etc?
[code]
Dim dsDirectoryEntry As DirectoryEntry
strPath = "WinNT://" & strDomain & "/" & strLogin
dsDirectoryEntry = New DirectoryEntry(strPath)
strFullName =...
I can't view the word document which I have created.
Dim oWord As New Word.Application
Dim oWordDoc As Word.Document
oWord.Documents.Add()
oWordDoc = oWord.Documents.Add()
why is this?
Hi I have a panel box which dynamically adds labels at run time. However, the panel display is always at the top.
When I add labels I set application.doevents so the user can see the labels being drawn.
However I want the user to be able to view the bottom of the panel, maybe something like...
I have a program that when you go from one form to another, on the second forms load event I run code that dynamically creates controls and places them in a panel.
However, only after the program has ran the controls appear. What I want is the controls to appear as the program runs.
How could...
I have this code which opens outlook and displays an email. However, I was wondering how to then switch back to excel from outlook.
Sub EmailandSaveCellValue(ByVal strRec As String)
'Variable declaration
Dim oApp As Object, oMail As Object, WB As Workbook, _
FileName As...
Hi there I'm creating an App where I want to write everyones IP address and UserName to a SQL Table. However, I was wondering how to go about this.
Do I need to create a windows app that needs to be loaded onto everyones machine so that everyday I can get that information.
Any ideas.
Cheers...
Using the following code
Dim blnGotListOfSQLServers As Boolean
Dim colSQLServers As Collection
Dim objSQLServer As Object
Dim m_dataset As DataSet
Dim m_clsNetAPI32 = New clsNetAPI32
blnGotListOfSQLServers =...
Hi,
I'm trying to list all SQL servers using vb.net.
I have added a refernce to SQLDMO and I am using the following code (which I found off another site).
Dim oDmoApp As New SQLDMO.Application
Dim oDmoList As SQLDMO.NameList
Dim i As Integer
oDmoList =...
Hi there I know how to create web pages but I am unsure how to create a total project where ever page you access, the top of the page remains the same.
For example with this web site no matter which page you browse the logo, donate, start a group jobs is always present.
What do I need to...
Hi I ant to create a function that returns a temp table. What I want to do is pass a string into a funtion then this function returns a table.
My string will be '215,216,303,782'
The table it returns will be
ID
215
216
303
782
My function will have the main code like
CREATE TABLE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.