.net - Intelligent Selection Algorithm?

Apr 29, 2009

I am using VB.NET and I am trying to come up with some algorithm or some pseudo-code, or some VB.NET code that will let me do the following (hopefully I can explain this well):I have 2 collection objects, Cob1 and Cob2. These collection objects store objects that implement an interface called ICob. ICob has 3 properties. A boolean IsSelected property, a property called Length, which returns a TimeSpan, and a Rating property, which is a short integer.

OK, now Cob1 has about 100 objects stored in the collection and Cob2 is an empty collection. What I want to do is select objects from Cob1 and copy them over to Cob2. I want the following rules obeyed when selecting the objects though:

[Code]...

View 2 Replies


ADVERTISEMENT

VS 2008 2D Array Selection Sort Algorithm

Mar 6, 2011

I have a 2D array which holds 5 students and two test results. I have initialised my array as studentTestResults(4,1) However, I am looking for a sorting algorithm which will displays the students in order of combined results when the user clicks "sort results". I have had a hard look around the net, but finding a bubble sort for a 2D array is difficult, especially as my knowledge is minimal.

[Code]...

View 4 Replies

Implement An Algorithm Called "Diamond-Square Algorithm"?

Jun 8, 2009

I am trying to implement an Algorithm called "Diamond-Square Algorithm" I am having trouble ending it so that it retiurns the required result. So far I have the folloiwng.

[Code]...

View 3 Replies

Create An Intelligent Agent?

Feb 14, 2012

I am currently doing my Honours in Computer Science and taking Artificial Intelligence as a subject. As part of completing the subject I have to develop my own basic intelligent agent.

I have yet to rap my head around what I actually have to do for this project. I am not the most technically gifted programmer and I have no idea of what to do or where to start

View 1 Replies

Make Intelligent Agent 2008?

Jun 9, 2009

How can i make Intelligent Agent vb 2008

you know if you are doing a game and will play to the computer.

View 3 Replies

Using Background Intelligent Transfer (BITS)?

Feb 11, 2012

I'm trying to use MS BITS (Background Intelligent Transfer service) to upload files from many computers to a server, but the only useful example I read was in StackOverFlow, and here it is:

[Code]...

but frankly, I don't know how to handle the whole thing about BITS jobs management, and I could not find a complete example demonstrate how the management will be so

View 1 Replies

Intelligent Combo Box With Type Ahead Capability?

Mar 29, 2012

I am writing a windows application in VB.Net.

My client wants an intelligent combo box with type ahead capability. For example let's I have a list of companies. I want to find my company "MetaPro". With the Microsoft combo box if you type in the first letter of the name it will bring up first one starting with that letter. For example I type in "M" it will bring up "Mass. Dept. of Ed.", I then type in "E" I get the first one starting with "E" maybe "E, G & G" where I want the first one starting with "ME".

Perhaps there is an open source solution to this or I could create a custom control. But I don't know how.

View 1 Replies

PC Communications To Intelligent Instrument With 485 Serial Port

May 7, 2011

Now I'm doing a VB project about pc communications to a intelligent instrument with 485 serial port. I want to use API but I'm not good at it.

View 2 Replies

Use BITS (Background Intelligent Transfer Service) In Program?

Aug 23, 2009

On the site below they tell me how I can use BITS (Background Intelligent Transfer System). The only problem is that the Microsoft.Msdn.Samples.BITS namespace doesn't exist in Visual Basic Express Edition. Does Anybody know how I can use bits using vb.net?

View 2 Replies

BITS - Background Intelligent Transfer Service - Convert Each Class In The SharpBits.Base Folder

Apr 8, 2009

Has any one used BITs in VB.NET? If so, do you have code samples? I was looking at SharpBits but I have a VB project that I wanted to use BITS for. Is it possible to use it with my VB.NET program? (.NET 2.0) I was tempted to try to convert each class to VB.NET in the SharpBits.Base folder but figured I'd ask in case someone has headed down this route before.

In case you run across this question. What you can do is in the Sharpbits.Base folder (that you download from codeplex) there is a DLL you can reference in the Bin directory. You can add that into your references to access it. Marking Konrad as answer since he was kind enough to post.

I managed to get sharpbits working with some quick code which I pasted below for anyone who might stumble upon this question. Like I mentioned above add the DLL to your project.

Dim b As New SharpBits.Base.BitsManager
Dim mynewjob As SharpBits.Base.BitsJob = _
b.CreateJob("jobname", SharpBits.Base.JobType.Download)
mynewjob.AddFile("\servershareigfile.zip", "c:igfile.zip")
mynewjob.Resume()

You'll need to write some logic to check for the status of the job. Once it hits "Transferred" status you can then mark it as complete. This will write the file from a .bin to the file name you listed. Something that helped me was installing the Windows Support Tools (you can get it from a Windows 2003 Cd/DVD in the sup tools folder)and using Bitsadmin.exe to view the status of the job while debugging.

View 2 Replies

Data Grid Selection Load Form - Call A Stored Procedure With The Value Of The Selection

Feb 27, 2009

I am trying have a data grid selection populate a form. I am new to this.Basically I have a connection persistance object and I would like to call that and call a stored procedure with the value of the selection. The datagrid is bound to an object.

[Code]...

View 1 Replies

Listbox (20 Items) With Multi-selection And Label That Disply The Selection And One Button

Dec 25, 2010

I have a listbox (20 Items) with multiselection and label that disply the selection and one button. So I wrote (it works fine)

[code]...

Now when I click on button the label show lets say Item2,Item5,Item10,How do I take off the last ","

somthing like that Item2,Item5,Item10

I used to do: Dim s As String = Trim(Label1.Text)Label1.Text = s.Substring(0, s.Length - 1) but it give me an error converting intiger to string

View 6 Replies

Office Automation :: Range(Selection, Selection.end(xlDown)).Select In .NET?

Jun 16, 2009

osheet.Range("A1").Select
'The line below is the one I would like to know how should I write it in VB.NET:
osheet.Range(Selection, Selection.end(xlDown)).Select

[code]......

View 3 Replies

File Selection Versus Folder Selection?

Aug 26, 2011

I am using this code to select a folder.how to do the same kind of thing selecting a file instead of an folder.

Private Sub PathButtonB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PathButtonB.Click
Using FolderBrowserDialog As New FolderBrowserDialog
With FolderBrowserDialog
.Description = "Kies die Folder waar hierdie ResepteBoek die Kunswerke vir sy Resepte moet gaan soek."
.ShowNewFolderButton = False

[code]....

View 4 Replies

Using Background Intelligent Transfer Service To Transfer Files To Server?

Mar 20, 2012

I will use the Background Intelligent Transfer Service (BITS) to transfer files from a client (laptop) to a shared folder on a server within our local network.The problem is a very slow network bandwith, if we transfer a file, the other clients can´t work, all requests to other clients (application) or viewing internet pages needs a long time.My idea is to use BITS in my tool to copy/transfer a file from client to server, also I hope to get more performance for the internet requests.

View 2 Replies

Visual Studio Macros: Loop Through Selection, Add .Append(" And ") To Each Line In Selection

Mar 18, 2010

Found this:

Sub SurroundWithAppendTag()
DTE.ActiveDocument.Selection.Text = ".Append(""" + DTE.ActiveDocument.Selection.Text + """)"
End Sub

But I can't seem to figure out how to loop through each line of text in the selection.

View 1 Replies

Looking For An Algorithm In C#?

Apr 14, 2010

I'll do my best to explain what the algorithm is supposed to do:There's a class 'Recipe'.ach Recipe can include other Recipes but cannot include itself or any other Recipe that includes it. So, a simple example is we have just two Recipes A & B.A,B,C(1) Recipe C Adds B(2) Recipe B Adds A(3) Recipe attempts to add C, but can't because of the relationship. C- B - A.

View 4 Replies

RSA Algorithm

Sep 8, 2010

I'm Micah. Electrical/Electronic engineering 500 level student. I'm working on my final year project. please i need a code for the implementation of RSA algorithm in VB.NET. your assistance will be appreciated.

View 2 Replies

Algorithm For VB Editor?

Dec 26, 2009

is the algorithm for VB editor released anywhere? because i'm trying to create my own editor that gives various options like Linking and self defined array functions (see below) such that one edit can update several others in various places, but i do still wish to have the auto formatting VB editor provides us with.an example of a self defined array function (count):we can transform this:

Public Class test
Private Shared number_of_methods As Integer = 2
Public Function get_number_of_methods_juz_an_example() As Integer
Return number_of_methods

[code]....

well of course instead of the code it would be just click and select (i wrote out the code in <> just to show what's happening)

View 5 Replies

BLS Algorithm Guide

Mar 15, 2012

i need some tutorial to implement BLS (Boneh-Lynn-Shacham) signature algorithm to create private key and public key to encrypt a message.I need tutorial to implement this in VB.NET.

View 1 Replies

Converting And Algorithm In C# To C?

Oct 21, 2005

I found an algorithm in C# that I need to convert to C. Problem is, I have never used C# so the syntax is really strange to me.

Implementation of Berlekamp-Massey algorithm for calculating linear complexity of binary sequence
s = byte array with binary sequence
returns Length of LFSR with smallest length which generates s

[Code].....

View 7 Replies

Create My Own Algorithm?

Dec 14, 2010

I want create my own algorithm

View 1 Replies

Using Own Encryption Algorithm In VB?

Aug 21, 2009

How would I be able to use my own Encryption Algorithm in my program such as encrypting text. I havn't been able to figure this out.

View 1 Replies

An Algorithm Which Can Calculate 500 factorial?

Aug 25, 2007

can you write an algorithm which can calculate 500 factorial.scientific symbol(mode) is unauthorized.Answer should be in String mode.

View 1 Replies

Algorithm For Temperature Conversion?

Nov 20, 2009

[code...]

So far, my friend has this, and we're trying to figure out how to get the code to tell convert F to C, and back. All we can use for input is (example:) 10,f and it will change it to 40,C.

View 2 Replies

C# - Implement Your Own Sorting Algorithm?

Apr 29, 2011

Forgive me if this is a silly question....but I think back to my Comp. Sci. classes and I distinctly remember learning/being quizzed on several sorting algorithms and the corresponding 'Big O' notation.

Outside of the classroom though, I've never actually written code to sort. When I get results from a database, I use 'Order By'. Otherwise, I use a collection class that implements a sort. I have implemented IComparable to allow sorting; but I've never gone beyond that.Was sorting always just an academic pursuit for those of us who don't implement languages/frameworks? Or is it just that modern languages running on modern hardware make it a trivial detail to worry about?

Finally, when I call .Sort on a List(Of String), for example, what sort algorithm is being used under the hood?

View 9 Replies

Convert Algorithm From C# To .NET Fail?

May 30, 2011

I'm trying to convert the following algorithm from C# to VB.NET and the VB.NET I have is not producing the same results as my C# algorithm, can someone tell me where I've gone wrong in my conversion?

public static IEnumerable<T[]> Combinations<T>(this IEnumerable<T> elements, int k)
{
List<T[]> result = new List<T[]>();

[code]....

View 4 Replies

Encrypt Vbs File Using Some Algorithm?

Oct 17, 2011

I need to encrypt vbs file using a cryptographic algorithm. I read about converting it into vbe file, but is there any other way to do it?

View 1 Replies

Euclid's Algorithm And While Loops

Mar 17, 2011

I have visual studio 2008, and we have been given specific tasks to carry our for our course, we have been asked to implement euclid's algorithm by using a while loop, doing so without the visual part of visual basic whatever that means an example of a question they gave was 1)HCF(88,26)=2 how I would go about doing this, as I am thoroughly confused, and deadlines are fast approaching.

View 3 Replies

Find And Replace Algorithm?

Sep 9, 2010

I have some text files that contain

<img width="100" or

<img width="1400" or....

How could i replace all above with the following, since the image width is not static?

<img width="200"

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved