Finding A Cycle In Graph

Feb 9, 2011

Now what I am trying to do is to find cycles in my graph. I have a user drawn graph using lines. Now what I want is to find out if any cycles exist in the graphs. My idea is to find a way to recognize a closed shape and then fill it in. I get this idea from ms paint , where if you draw shapes, the lines must intersect each other and form a cycle for the color to be in.

[Code]...

View 8 Replies


ADVERTISEMENT

Use Zed Graph Web To Graph A Dataset Or Datatable?

Feb 23, 2011

How can i use zed graph web to graph a dataset or datatable, the only examples i have found use test data.

View 2 Replies

Draw Bar Graph - Draw A Graph Except MSChart Tool?

Jul 2, 2009

I have to draw a bar graph in my vb.net program. I used AxMSChart to create a graph. Everything has gone fine but when i published this and run on Vista PC, all form was good except my form includes MSChart. It says class not registered.So i have to draw a graph except MSChart tool.

View 10 Replies

Cycle Through A Sortedlist?

Oct 28, 2011

Here's a list example

SortedList name = test
"nothing" | 0
"something" | 1

How can I go about running a for each loop or something to add each first column in test to, say a listbox.

Listbox should just have listed.

nothing
something

I tried

For Each i In text.Values
lbTest.Items.Add(i)
Next
But that produces:
0
1

View 4 Replies

Cycle Through RichTextBox

Nov 5, 2008

Just had a question regarding a Windows Form Application in Visual Studio 2008.I was wondering if it is possible to have a RichTextBox and have a < (previous) and >(next) button. When the user selects the Next button, a new blank RichTextBox will be displayed, when the user selects previous button, the prevoius RichTextBox w/ whatever text was in there before will be displayed.

View 2 Replies

Cycle Through Files In A Folder?

Jan 15, 2010

In Visual Studio 2005 Visual Basic, I want to create an exe (without any forms) that will cycle through each file in a folder. I have not found any method of cycling through file names in a folder.

View 1 Replies

Sql - Cycle Through Query Results?

Feb 27, 2009

I am familiar with the VB6 ADO way of dealing with SQL queries and looping through the record set results.

However, what is the correct way to query a server, cycle through the results, and dispose of my query in VB.Net? All the ways I have been using seem to be unstable and crash randomly.

I have been using the following code:

Public Function GetSQLTable(ByVal strSQL As String) As DataTable
Dim table As New DataTable
Dim adapt As SqlDataAdapter

[Code].....

View 1 Replies

Step In A For Cycle On The Following Index?

Oct 20, 2011

how can I step in a for cycle on the following index?

f.e.
for i = 0 to 10
if (some condition) then next i
next

View 3 Replies

Anything Can Do To Make Cycle Reach 128 Clicks?

Jun 22, 2010

I have a subroutine with a for i as integer=1 to 128 it should send 128 mouse clicks to another application sometimes it does sometimes it doesn't (it works well until it reaches 64 then the numbers go crazy). i suppose that because vb debugger reports that for my form there are 2 threads running (i have a Core2Duo processor and i've read somewhere that multithreading has something to do with the processor).Is there anything i can do to make the cycle reach the 128 clicks? i've tried setappartmentstate to STA, i've tried synclock monitor.enter nothing works, it fails it returns from the subroutine to where it started from and the next time the same story

View 8 Replies

Child :: Cycle Through Specific MDI Children?

Dec 22, 2011

My application creates MDI Children programatically. I have a frmBrowser as an MDI Child which I create multiple instances of. There are several other MDI children in the MDIParent. How do I only cycle through the frmBrowser MDI children?

For Each Child As frmBrowser In frmMain.MdiChildren
'perform action on child
Next Child

The code above gives an error for all the Child that aren't of the type frmBrowser.

View 1 Replies

Counting Clock Cycle Per Block?

Jul 29, 2010

i need to count the number of iterations which occure in algorithms Blowfish, DES, and RC4.

blowfish i use this class DES i use DESCryptoServiceProvider and for RC4 i use this class Public Shared Function RC4(ByVal bytes() As Byte, ByVal key() As Byte) As Byte()

[Code]...

View 1 Replies

Cycle The Number From 0 - 100 Using RANDOM Methhod?

Jun 13, 2010

l try to cycle the number from 0 - 100 using RANDOM methhod.but everytime push the button , the different number come out..how to get same number when the button was press.

View 14 Replies

Cycle Through Listbox On Click Event?

Aug 10, 2009

I have a listbox with items, and when I press a button I would like to go to the next item.I'm having a horrible brain fart and have been for quite some time.

for x = 0 to listbox1.items.count - 1
label1.text = listbox1.items.item(x)
x += 1
next

View 1 Replies

VS 2005 Winforms Life Cycle?

Jun 17, 2010

What events are hit before form_load in a winforms app? Somewhere before the form_load a file called .ini is created and I can't figure out where it's being created. It's just .ini with no name before the extension.

View 2 Replies

VS 2008 For Cycle In Pause For Some Seconds

Feb 18, 2010

I have a loop and I need that at the end of each step of the cycle that it sets in pause for a few secondsHow?

View 3 Replies

VS 2008 For Cycle In Pause For Some Seconds?

Mar 9, 2010

I have a loop and I need that at the end of each step of the cycle that it sets in pause for a few seconds How?

View 5 Replies

Which Methods Are Feasible Towards The End Of The Development Cycle?

May 21, 2009

Let's assume one joins a project near the end of its development cycle. The project has been passed on across many teams and has been an overall free-for-all with no testing whatsoever taking place along the whole time. The other members on this team have no knowledge of testing (shame!) and unit testing each method seems infeasible at this point.

What would the recommended strategy for testing a product be at this point, besides usability testing? Is this normally the point where you're stuck with manual point-and-click expected output/actual output work?

View 4 Replies

ADODB.Recordset Support Life Cycle?

Mar 5, 2009

I'm in the middle of porting a VB6 product to VB .NET and .NET Framework 3.5, using Visual Studio 2008. Backward compatibility with customer VB6 legacy code is a requirement.Our VB6 product uses the COM ADODB.Recordset objects extensively both internally and in our API. They port directly to VB.NET if I add an adodb interop reference to my VS 2008 project. My question is how long will Microsoft continue to support ADODB.Recordsets in their languages and operating systems? 2018?I'm trying to make a design decision. Since backward compatibility with VB6 is a requirement, I would prefer to leave them in the .NET code. However, if support will be dropped soon in the near future, then I will use ADO.NET datasets instead, and convert between ADODB.Recordsets and datasets until support is dropped.

View 1 Replies

List Of Words - Cycle Through Text File

Dec 8, 2006

I have found a list of words [URL] that I saved as a txt. I want to be able to cycle through it with my program I am making. I have a string and I want it to change everytime that timer3 is finished, timer1 will use it again.

An example:
dim theWord as String
timer1.tick....textbox1.text = "It is a " & theWord " day!"end sub
timer2.tick....Whatever I have this doend sub
timer3.tick...theWord = the next word in the listend sub

How would I accomplish this? Anyone better list of words than 850 in txt format.

View 7 Replies

Reading Data From Textboxes Using Cycle And Variable N

Oct 16, 2010

How can I read data from textbox1 to....n using cycles? Something like this:
1. For n=1 to 50
2. text=textbox_n.text
3. Output=output+text
4. Next
5. Msgbox(output)
The question is in line 2. Syntax "textbox_n.text" is not right. How is it possible to read from textboxes using cycle and variable n?

View 14 Replies

SQLite Field Updating - Cycle Through All Rows

Feb 16, 2011

I have a system whereby I have a SQLite database with around 200+ records. I basically need to cycle through all rows, get the value from one of the columns, perform an algorithm, then re-insert the value.

I know I could do this in a long engrossed way, by getting all data, updating in arrays and such, and then re-inserting via tons of sql queries, however this seems a bit slow and I am sure there is some better way of doing it.

View 4 Replies

VS 2010 Cycle Through Background Images From Resources?

Jan 4, 2012

is it possible to cycle through background images from my resources for a button by pressing it the button, what's the simplest code to do this?

View 8 Replies

Write A VB Script That Will Cycle Through A Folder In Outlook

Oct 9, 2009

I am trying to write a VB Script that will cycle through a folder in Outlook and take the body of the emails and format them to send to a MS Access database.

View 3 Replies

Asp.net - Cycle Through A CheckBoxList And Submit Values To The Database For Each Checked Value?

Jun 10, 2011

I am trying to insert checkboxlist values into SQL using a stored procedure.Getting This error Item In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user. System.Data.SqlClient.SqlParameter Here's my stored procedure

[Code]...

View 1 Replies

C# - Whats The Page Life Cycle In Ajax Call In Asp.net

Mar 28, 2010

whats the page life cycle in Ajax call in Asp.net?

View 2 Replies

Determe Longest Repeating Cycle In A Decimal Expansion?

Jul 3, 2009

Today I encountered this article about decimal expansion and I was instantaneously inspired to rework my solution on Project Euler Problem 26 to include this new knowledge of math for a more effecient solution (no brute forcing). In short the problem is to find the value of d ranging 1-1000 that would maximize the length of the repeating cycle in the expression "1/d".

Without making any further assumptions about the problem that could further improve the effecienty of solving the problem I decided to stick with[code]...

View 3 Replies

Forms :: Objects - Cycle Through A Arraylist And For Each Item In That List

May 15, 2009

I want to cycle through a arraylist and for each item in that list I need to create a picturebox, label1, label2 each with specific name attributes

[Code]...

View 6 Replies

Unable To Cycle Through Entries In The Database Wit Ha Next And Previous Button?

Apr 17, 2009

Im making a 'DVD database'. I need to be able to cycle through entries in the database wit ha next and previous button but for the life of me cannot figure out how to do so.

[Code]...

View 12 Replies

Cycle Through Emails In Outlook Inbox In Descending Order By Date Received

Aug 15, 2009

I'm trying to cycle thru the emails in an Outlook Inbox, but strangely, when my code cycles thru each individual email, the order of each in the FOR....IN.... loop is non-sensicle. The loop seems to start from the email in the middle of the list, cycles down to the end, then starts at the last email received and cycles down from there. When viewed in Outlook and sorted by latest email first and descending, the emails seems to be in order. This is my code:

[Code]....

Should I have to sort the emails first by received date descending? If so, how do I do that? If you look at my code, I have attempted that but it doesn't seem to work.

View 1 Replies

LDAP Authentication - Cycle Through The Local Domain Controllers Listed On The Machine?

Jul 6, 2010

Our company is developing software projects that use a users windows username/password for program authentication. Our programs encrypt the username /password, send them to a web service. The web service decrypts the username/password and authenticates the user against our LDAP using the System.DirectoryServices namespace. This works well. There are two methods, one that validates the user and passes back the user's LDAP info in a datatable, the other passes back a boolean that indicates the user is on the domain. This is working just fine. Over the 4th of July weekend, our domain server hung. While it slowed down the login process for windows while it re-routed to a secondary domain server across the country, all our programs could not validate the users because our local domain controller was down.So I have been asked to update the web services to include a list of domain controllers that can be used if the local one is not available. Below is a snippet of code I use to validate a user:

[code]...

The getinfo function uses the directory services to create an LDAP entry, then do a search based on the account name (windows username) and populates properties for common LDAP information. How can I extend this function, or re-write it, to run down a list of domain controllers found on the network to validate a username? I was thinking of putting the domain in a database, but that requires administration as they change. Is there a way to cycle through the local domain controllers listed on the machine?

View 1 Replies







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