Struct Or Class For List Members
Apr 16, 2012
I have an application that reads data from a SQL query into a list corresponding to the rows of the query. So, I have something like this:[code]What I'd like to know is if I should be using a class (as above) or a structure, and what the difference may be in terms of memory or runtime, if any.
View 3 Replies
ADVERTISEMENT
Feb 14, 2012
Public Structure testStruct
Dim blah as integer
Dim foo as string
[code].....
View 3 Replies
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
May 18, 2009
I usually use which is free, works a little too well, it's obfuscating the code that passes between my scripting class and the other classes, so after obfuscating the app, the scripting functions no longer work.However I found another obfuscator called Skater lite which is a free edition, it will only obfuscate private classes and members, so what I would like to do if possible is make most of my classes private and their members (except for the scripting class, which should allow it to work properly after being obfuscated), and somehow still use them globally, declaring an instance of the class doesn't seem to work, I'm not even sure it's possible and I know little about the scope of private classes, so anyone got any ideas or workarounds?
View 14 Replies
Oct 24, 2011
Im trying to search the entire active directory to look for a group and then see if the current logged on user is listed, then take an action based on that result.So far i have the below code which doesnt return the users who are members of the group MyTestGroup. Could anyone assist or guide me to see how i achieve this?
View 4 Replies
Aug 1, 2011
I'm going to do my best to describe what I'm trying to do. I have a class that has an enum in it.[code]...
View 2 Replies
Aug 23, 2011
I was looking on the interweb to see if there were any good examples on how to initialize shared members within a class while still initializing instance variables.[code]How do I initialize both instance and shared members without re-initializing the shared members every time an object is created from a class?
View 1 Replies
Sep 19, 2011
I have a Data class whichs hold 70 class members to save me a hole lot time and effort not having to type all the properties for hand I'm wondering if there is a simple tool i VS2010 that I can use to auotgenerat the "property stubbs"
[Code]...
View 2 Replies
Jun 7, 2011
How to list Enum's members in code? I have following Enum:
Public Enum TestEnum As int32
First = 0
Second = 2
Third = 4
Fourth = 6
End Enum
And I try to list all members of TestEnum via following code but it failed:
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
[Code].....
View 2 Replies
Mar 10, 2009
This might seem like a silly question, even for a newbie but I can't access the members of a class from a user control. I am developing a shopping cart application in vb 2008. inside the app_data folder i have a folder name BusinessObjects which contains a class called Catalog. This is the code for this class:
[Code].....
View 2 Replies
Jul 14, 2010
I am attempting to share a sub menu among several different parts of an application so that it is consistent (not wanting to copy/paste.) I thought it would be simple. I am doing something like this:
[Code]...
View 3 Replies
Jun 13, 2011
I have a 3rd party object that gets passed to one of my methods. The object contains 20 or so string members. How can I easily list all of the string names and their values?
View 2 Replies
Jun 20, 2012
Need a list of Pcap.Net members or classes? Their website doesn't have much documentation and have looked around in the forums.
I have found..
PacketTs = Packet.Timestamp.ToString("yyyy-MM-dd hh:mm:ss.fff")
PacketS = Packet.Ethernet.IpV4.Source
PacketSp = Packet.Ethernet.IpV4.Transport.SourcePort
PacketD = Packet.Ethernet.IpV4.Destination
[Code]...
View 1 Replies
Apr 28, 2009
I have a Base Class, called primitive Graphics. derived from this class are several different types of graphics, squares, rectangles, lines, etc. I am storing those graphics in an object that inherits collectionbase. This causes a problem because I cannot access any of the members in the derived class when they are added to the collection. Here is the default property for my primitivecollection class
[Code]...
My current workaround is to just put all of the public members in the base class, however this is starting to look ugly as I add more derived classes that need members available to the derived class only
View 3 Replies
Dec 8, 2010
I was looking on the interweb to see if there were any good examples on how to initialize shared members within a class while still initializing instance variables. I did find an expression that might fit to the answer:
[code]...
How do I initialize both instance and shared members without re-initializing the shared members every time an object is created from a class? Thanks!
View 2 Replies
Mar 13, 2011
Is there a way to disable the default members and methods inherited from the base class?
I made some classes in which elements like "Equals" and "ReferenceEquals" are confusing or I don't want them to show, or I have other methods providing similar functionality with different names and I don't want to override and use the default name.
View 3 Replies
Oct 25, 2009
In C++ using std::list, this is a simple matter of erasing what an iterator is pointing to (the erase statement returns the next valid member of the list).What's the best way to iterator through a list and remove members that match a certain criteria?
View 4 Replies
Jul 27, 2009
I'm working on small project for my site... basicly we have over 600 memembers.. and every day new member registers as we can keep of track of all the new members we would like to do the following
By CLicking Button Importing members.php list in to our program so we can see all the new members that have registerd
This is good for our modirator so they can keep an eye out on new members
SO basicly
I click button and my program grabs my user list from my website and puts it in my list box ( but program will have to go to page 2 then 3 and so on and so on )
View 26 Replies
Jan 5, 2010
ok this is annoying, i've got a structure RInteger.
Private VAR_Value As Integer
Private VAR_Max As Integer
Private VAR_Min As Integer
[code]......
View 5 Replies
Jan 24, 2010
Need to display the Gold, Silver, And Bronze members in a list box from a TXT file. Have problems isolation each group. When I run the program all of the name in the TXT file come into the list box.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
Dim strMembers As String, objStreamReader As System.IO.StreamReader
[Code].....
View 3 Replies
Feb 10, 2011
I can access a module from code behind but not from the aspx page in inline VB code <% ... %>.
View 2 Replies
Oct 19, 2010
I have a base class (ex: Class1) containing a list of another base class (ex: ClassA). Each child class of first base class (ex: Class1AA, Class1AB,..) containing a list of child class of second base class (ex: ClassAA, ClassAB,...)The client must never know which child class is using, then i don't think i can use generic for my bases classes.I try something like this and many more, but i always received errors..Imports System.Collections.Generic
[code]...
View 1 Replies
Apr 27, 2011
I want to read a number of items from a file and then associate each of those items with a new button at run-time, so that when the user clicks one of the buttons I can display some information about that item.Can I use a LIST to manage these buttons and items? Can I create a new class and have each list item of that class, such as 'btnID', 'btnText', etc... ?
View 2 Replies
Jun 21, 2010
I am trying to create an list or an array of a class.Here is my "Ingredient" class that I am trying to create a list of:[code]In my "recipe" class, I am want to create a list (or array) and I am drawing a big blank on how to do it. Can anyone point me in the right direction?
View 2 Replies
Oct 16, 2009
Say I have a List(Of Tag) with Tag being an object. One member of Tag, Tag.Description, is a string, and I want to make a comma-separated concatenation of the Description members.Is there an easier way to do this than to read the Description members into a List(Of String) and then use the Join function?
View 2 Replies
Mar 23, 2011
Public Class notifierMain
Public Class Contacts
Inherits List(Of row)
Public Sub New()
[code]....
When I debug this winforms application I get curType = "notifier.notifierMain+Contacts+row" I want to the Validate function to know it is in MyContacts. How do I do this?
View 3 Replies
Nov 5, 2011
I wish to make a project where a teacher views a list box with a list of students of a class. When he selects a name from the first list box the second listbox would change its data to show the grades for that one student.
View 10 Replies
Jan 27, 2011
I'm getting System.NullReferenceException error when I try to add the employee info to the Employees list.
[Code]...
View 4 Replies
May 26, 2012
y have this class
Private Class MyClass
Public Property propertyOne() as String
Public Property propertyTwo() as String
[code].....
View 2 Replies
Apr 2, 2010
I'm looking for a tutorial on how to Adding a list(of Class) or Collection as another Class's Property.What I am after is something like the Columns Collection for the DatagridView control.I would like to add Items in the graphics screen. Where the item list is displayed in the left panel and the selected Item properties are displayed in the right panel.
View 4 Replies