|
|
Hi,
I have read that an array list stores objects. So, if an application creates Picturebox control objects at run time, can they be stored in an array list at run time?
Is an array list an array of objects or a linked list of objects?
Also, how do I pass the array list to a public sub as an argument?
LiLo is online now Add to LiLo's Reputation Edit/Delete Message
|
|
|
|
|
hi
yes , you can consider "an array list an array of objects or a linked list of objects", also you can create an array of Picturebox !!
pass the array list like this :
Dim zzz As New ArrayList
zzz.Add("a")
zzz.Add("b")
zzz.Add("c")
Dim c As Integer = zzz.Count
SunName(zzz)
Dim dd As Integer = zzz.Count
.
.
Sub SunName(ByVal al As ArrayList)
al.Add("5")
End Sub
' notes that all the operations on arrays on general are done
' by referance , notes the count of the items before and after the call
' of the sub
hope its help
Tamimi - Code
|
|
|
|
|
Yup got it......thank you for the help!
|
|
|
|
|
I 1 2 crate form when it running it look like person, car, something else, can anyone help me?
Thanks
................
|
|
|
|
|
Socheat, this[^] is a similar project that might offer what you need. But as I remeber, the PC world magazine in our country also publish an article about what you need to do in vb6 too. I forget the number of those book that write about it. If you are the person that keep those book since its first release, i think you might get the solution from those book and offer what you really need to do.
|
|
|
|
|
I 1 2 make application that convert code from html to xml or something if possible, if anyone can please help me
Thanks
................
|
|
|
|
|
Socheat, it seem that I also answer this question to you already around 2 weeks ago. Ok, if you still have some problem about this issue try to check this website[^].
|
|
|
|
|
|
plz help me how to create,read and write the excel and text file in windows application
sdivya
|
|
|
|
|
|
I want to create a system for CD/VCD lending library (with Phone Shop). I want to check a similar system to see its behavior,interfaces,databases etc. Pls help me. I wish to code it with VB.Net.
Nisala
|
|
|
|
|
Nisala wrote: I want to create a system for CD/VCD lending library (with Phone Shop). I want to check a similar system to see its behavior,interfaces,databases etc. Pls help me
No one will code it for you. You have to code by yourself and we just provide an idea or any link to support you during you do your project. Google is the best play for you to search for your answer. Example: http://www.freevbcode.com/listcode.asp?Category=16[^]
|
|
|
|
|
Hi,
i wanna create a car project in which i have functions as accelerate, in which i press the button the speedometer goes up and if reduce the accelerate then the meter goes down.
please help me out
SUMIT SAINI
|
|
|
|
|
If you are asking someone to write the code for you, that is not going to happen.
If you have a specific question, that may be addressed.
We learn by doing.
|
|
|
|
|
Hi! I need to do a web service that connect to the active directory and bring the information that it's in the AD. I did a program that does it, but whe i tried to translate it to a web service, it didn't work out. If someone can help me, thanks a lot!
|
|
|
|
|
It doesn't work, probably, because the account that the service is running under doesn't have any permissions to AD at all. Create a user account with the appropriate rights, then go into the Services manager and change the account for your service to this user account and it should work.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi, look, this is the error I have when I try to add the reference:
Imports System.DirectoryServices
Namespace or type specified in the Imports 'System.DirectoryServices' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
|
|
|
|
|
OK, the error that your now decribing doens't have anything to do with your original post. You said you had an app working, then converted it to a service, now it's not working. Apparently, you haven't converted it to a service yet...
You're getting this meesage because you haven't added a Reference to the System.DirectoryServices.dll file. Go to the Project menu, click "Add Reference...". A dialog window will pop up. Make sure the .NET tab is selected, then scroll down the list and find "System.DirectoryServices". Double-click that line and you've added the reference. That line of code should then compile successfully.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks a lot! it worked excellent!
|
|
|
|
|
I dont know if this is the best place to post this but here goes.
I have an exisiting VB6 application that uses SQLDMO to search for any SQL Server instance on a LAN. It works fine but SQLDMO is a nightmare to redistribute. I am currently re-writing the application in dotnet 2.0 (some C# for business objects and VB.NET front end).
My question is - is there any alternative to using SQLDMO? I would like to avoid any COM Interop if possible and dont wantthe hassel of distributing the dozen of so files to the multitude of directories the SQLDMO requires.
Jon
|
|
|
|
|
System.Data.Sql.SqlEnumerator - Provides a mechanism for enumerating all available instances of SQL Server within the local network.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Thats it. Thanks.
I knew there had to be a better way.
The hardest thing about .net is learning the framework itself, The languages are pretty simple. The framework is just so big.
Jon
|
|
|
|
|
how could i read data from excel sheet and and compaire them with some data in sql and save them in sql server .
amarni
|
|
|
|
|
I have solved some excel queries using ASD.Net - it is very powerful.
Thanks.
|
|
|
|