Obtain A Collection Of ProcessThreads By ID Like You Can With Processes?
Jan 15, 2010
Is there a way to obtain a collection of ProcessThreads by ID like you can with processes? I know the ID of the threads and I need to obtain additional information about those threads. So I was hoping I could get a collection of threads and then pull the required info.
View 3 Replies
ADVERTISEMENT
Jan 15, 2010
Is it good practice to store sub-collections of item X inside a parent collection of item X for caching 'filter-queries' which are performed on the parent collection? (They won't be used together (as in color AND type).) Or is it also ok to just Loop over the collection and return the correct entities in a temporary collection?
[Code]...
View 1 Replies
Sep 7, 2011
I have the following classes:
Product, Service and OrderItem
Product and Service must inherit OrderItem. So basically I want to store OrderItem object in my shopping cart and these object are store in a list.
Public MustInherit Class OrderItem
Private m_enuItemType As TypeOfItem = TypeOfItem.None
Private m_strUserID As Integer[code].....
View 1 Replies
Feb 8, 2010
I have been researching for a couple of days now and to no avail. Does Anyone know how to make a custom collection that take advantage of the collection editor? I would like to be able to have 3 Color Values, 1 Boolean and 1 String.
View 15 Replies
Jul 25, 2011
I'm trying to support Basic.NET on my framework so I'm trying to convert C# 4 code to Basic.NET 10. Microsoft is committed to "co-evolve" these two but I'm having a problem with collection initialization... I found that I can initialize a collection much like in C#:
[Code]...
View 6 Replies
Apr 15, 2009
I've got the following ADO.NET Entity Framework Entity Data Model:I want to find all the Policyholders with both a Service of a given Id and also a Keyword of a given Status.
This LINQ Does Not Work:
Dim ServicesId As Integer = ...
Dim KeywordStatus As Integer = ...
Dim FoundPolicyholders = From p As Policyholder In db.PolicyholderSet.Include("Keywords").Include("Services") _
Where p.Services.Id = ServicesId _
And p.Keywords.Status = KeywordStatus _
Select p
The Where clause cannot search the p.Services and p.Keywords EntityCollections in that way.
[Code]...
View 1 Replies
Apr 6, 2012
currently in my application I have a Global Collection that is a Collection of Collections.Currently I am trying to add items/ elements to one of the child collections of the Global Collection but I am unable to use the collections methods of the child.When I assign a variable to the child collection and return the collection it is just an object with the collection inside.
Ex:
Dim GlobalCollection as New Collection
Dim ChildCollection1 as New Collection
Dim tempCurrentCollection[code]......
View 3 Replies
Dec 17, 2009
I've been working with a CMS called InsiteCreations 2008. I'm running into an error I just can't wrap my head around. I would even be willing to compensate anyone a small amount over paypal, for a solution. The error is rare in occurance, and appears when clicking about 3-4% of links to other pages within our CMS.The full code page is quite large, but there seems to be only one function associated with the error. The error also only appears when not logged into the CMS. If logged into the CMS, clicking the link simply displays the page as normal. I have already checked permissions on the page from the CMS admin console, and it is public.
The error message is as follows:
Server Error in '/' Application.Collection index must be in the range 1 to the size of the collection.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
[code]....
View 2 Replies
Apr 15, 2011
search the collection of a collection in my LINQ Where clause?
View 11 Replies
Apr 14, 2011
Take the following scenario:
Public Class Store
Public Overridable Property Areas As List(Of Area)
End Class
Public Class Area
[code]....
What's the quickest way to get a total count of shelves for a store? I.e. for a store I get the total count of areas by using Areas.Count Or will I need to loop through each area and tally the count of shelves?
View 2 Replies
Mar 25, 2011
I have an ASP.NET app with lots of textboxes all over the page that need updating at various points through program execution. These textboxes actually belong to a certain class, so for easy updating I thought I could create a Dictionary(Of string, object) and add the control.ID and the control to it and then for updating do something like this:
[Code]...
View 3 Replies
Jun 26, 2012
I need to convert a VB Collection to a modern one, like Dictionary or Hashtable. For my approach, I need the Collection's KEYS. Googling tells me that it's impossible. Re-writing the entire application using new collections is not an option as the application is really old and large (converted from VB6 to VB.Net).Using the old Collection also is not good - as there are new components in development.Converting a - for example - Hashtable to Collection works:
using VBCollection = Microsoft.VisualBasic.Collection;
public static VBCollection ToVBCollection(this Hashtable table)
{
[code]....
View 1 Replies
Nov 11, 2011
I'm trying to obtain data from a dll, but I do not know how to do it.My code is:
'Function
Public Declare Function SET_XML_PATH Lib "EbmPapstFan.dll" (ByRef ruta As String) As Long
Public Declare Function GET_PRODUCTS Lib "EbmPapstFan.dll" (ByRef ruta As String) As Long
[code]....
This isn't a mistake with the path because Int_A is 0. In addition, GET_PRODUCTS gives me the number of products that software has.The manual say that this function also has string character output.I don't know how obtain this other string character output.
View 2 Replies
Mar 15, 2012
How can I obtain the first row value. ex.
Table
ID NAME AGE
1 peter 14
2 Jogn 13
3 Luke 6
If i click peter I will get 1.I can get the clicked value but I do not know how to get the first item in the selected row.
View 2 Replies
Jan 10, 2012
I am following some instructions that apparently work with vb6, but as i have downloaded the lastest version of visual studio i think its up to version 10.
The code i am trying to make work is,[code..]
I searched a bit for an equivalent.
View 3 Replies
Sep 27, 2011
my problem is that is have to create a program in which I enter some text in a text box and then in an other text box it will display the value store in a selected byte. I really don't know where to start. I have a form with three text box and a button. One of the text box to copy o write whatever I want, the other text box to write the number the byte I want to get the value and the last text box to display the value stored in the byte I choose. With the button I will start the function that will get me the value in the byte.
View 6 Replies
Jan 10, 2012
I am following some instructions that apparently work with vb6, but as i have downloaded the lastest version of visual studio i think its up to version 10.[code]The error is that hWnd is not a member of windowsapplication1.form1.
View 3 Replies
Dec 14, 2011
I have a general idea of what the code should look like but I can't seem to finish/put it together.I have a year's worth of data such as December 01, 2010 to December 01, 2011.The problem is that there are more than 365 points, some days for example have 3 data points and others have 4, etc..What I would like is to only have 365 points of data by averaging the data points for the days that have multiple points.
[Code]...
- So far I have another column with dates from Dec 1st 2010 to Dec 1st 2011.
- I think I'll need an IF statement for if the whole range of A column equals one of 365 days, it'll equal the average data.
- then I'll need to have a statement for x+1 date for each consequtive day.
View 1 Replies
Apr 9, 2012
[code]...
Is there any trick that could give me the first word of the str [code]...
View 1 Replies
Aug 20, 2009
Say I have a rolling collection of values where I specify the size of the collection and any time a new value is added, any old values beyond this specified size are dropped off.Obviously (and I've tested this) the best type of collection to use for this behavior is a Queue:
myQueue.Enqueue(newValue)
If myQueue.Count > specifiedSize Then myQueue.Dequeue()
[code].....
View 5 Replies
Sep 28, 2009
I'm testing a window application which was written in VB.Net 2003.I set a few BreakPoints and Debug the project.When the debugger hit one of the breakpoints, it stops at there. Its correct.But when I try to add one of the variables to "Watch", it said "error: cannot obtain value".I tried to search the Net and found that some said "its because of structures", some said "its because of passing too many parameters." and some said "its because of too many line of codes (LOCs)".but my problem is not in passing parameters or too many line of code.the function i set breakpoint has only around 300 LOCs (including around 100 line of comments)And the value I tried to get is from my TreeView which is on my Win Forms.its very strange that I can't even get the value from Forms.
View 7 Replies
Mar 28, 2011
I have a listbox with urls. For example
View 5 Replies
Mar 10, 2010
I have a .dll provided by a vendor and it requires me to pass a handle to the com port the device is represented as in order to access some other functions. Can I get the handle from the SerialPort object? The device I'm working with is a USB-UART converter chip with auxiliary I/O. I need to access the I/O which involves using a Visual C++ 6.0 .dll which is the one that requires the handle to the Com port.
View 2 Replies
Sep 3, 2009
I am trying to obtain a value by calling a stored procedure I am trying to use the n tier design as opposed to the wizards. I am not sure how my function should look when it is called from the persistance class. I am using MYSQL for the database.
The persistance class works and the stored procedure works in the database.
View 4 Replies
Jul 15, 2011
Is there a way to obtain the "default" network card that's being used by the OS (WinXP, WinVista and Win7)?I've been able to get all stats from all NICs (or just a particular NIC); however, I can't figure out how to identify the "default" network card or "default" network connection or the network connection that's being used to send/receive data.
View 1 Replies
Sep 8, 2011
how to obtain eigenvalues and eigenvectors in VB2010 ?
View 20 Replies
Jun 9, 2011
After trying to port a C++ program which was a console application where it crawled the forums with the url provided and in the end stored the result inside a database for further analysis.
[Code]...
View 2 Replies
Dec 23, 2011
i downloaded vb 2010 express. as usual it requires a registration key after 30 days but i cannot get the registration key . i have an live id but still i cannot get a registration key.
View 2 Replies
Mar 27, 2011
I am looking for a way to obtain some additional features on a treeview. Both, to show as to be able to input some data with a particular hierarchical structure For that on each node I need next to the nodetext a entrypossibility to input some data or to make a selection. This input possibility should be either a textbox, a combobox or a chechbox. An example of what I wisch is almost this article, except that the comment column is only a fixed text, and that I need there a input control like a textbox, or combobox.
View 4 Replies
Oct 11, 2009
I am having problems using the GetWindowRect statement I've searched many forums and used the API text viewer to obtain the declaration statement of which there are a few different versions, a couple being :
View 3 Replies