I need to draw large networks (Finite state automata, with nodes connected by directed edges).
I am searching for some DLL or class that will help me draw these networks in c#. So far, I have used GLEE, but it is still very primitive. I would like to be able to assign an event handler to the nodes in the graph, so that when i click on them, something happens...
Does something similar exist!? Or am I the only person...
User Profile
Collapse
-
Drawing Networks (DFAs) in C# .NET 2.0
I am writing an application that works on Deterministic Finite State Automata, and processes them to gather some information. I, however, need to draw the DFAs (networks). I am searching for some DLL or class that will help me draw these networks in c#. i know that something simialr exists for Java!
Something like this:
Any ideas please!? Kind of urgent!
Thanks... -
Filtering web sites
Hi,
I am writing an application that will have a webbrowser control in it. i want the users to be able to access ONLY websites "A" and "B" from the application. If website "B" has a link to another website (for example, a link to www.google.com), i do not want to allow him to follow this link!
Any idea how it can be done?! I need to keep a list somewhere of the allowed websites, and block... -
full screen application
i would like to create a full screen c# application, that will prevent the user from using the windows start menu or loading any other application. ie i want to prevent the user from using any other application but this one, while it is running, since the application will be running on a publicly accessible computer. i do not want users to stay running other programs on the computer but the one i will be writing!
how can this be... -
Bind DataSet to ComboBox
I have a dataset with one table, which has a column "Descriptio n" in it. the dataset is populated with data.
i want to bind the dataset to the combo. i'm doing it as follows:
cb.DataSource=m yDataSet.Tables[0];
cb.DisplayMembe r = "Descriptio n";
cb.ValueMember = "Descriptio n";
Problem is my Combobox remains with 0 items instead of the 80 rows in the datasource!!!... -
Binding DataSet to DropDownList
I have a DataSet which is obtained using the following query:
I want to place the results obtained in a DropDownList, without iterating through the results (i.e. using binding). How can this be done?Code:SELECT RefNo, LastName + ' ' + FirstName as USERNAME FROM myTable WHERE <where condition> ORDER BY FirstName, LastName
thanks -
Loading a file only once then sharing it...
I have a class has a number of class variables. I created a save() method that saves the value of these variables to a file on hard disk, using a binary formatter (c#).
now, i need to create load this object from hard disk many times concurrently (using threads).
How can I avoid having to read the file from disk every time? i.e. i would like to load the object once, then just create copies of the object in memory.... -
Centre Bitmap in another one!?
I have a small bitmap, and I want to place it in the centre (horizontally and vertically) of another Bitmap object. (i.e. replace the pixels)
how can this be done? -
Resize an image... quickly!
Hi,
I have an image (Bitmap), which i loaded in my C# application. Now, i want to stretch it horizontally and vertically so that I bring it to the desired size. (note that this might not necessarily be uniform scaling - i.e. the image might need to be stretched more horizontally than vertically, for example).
Is there a *quick* way of doing this in C#?! I imagine it will probably use some unsafe{} code, to speed up... -
threads & concurrent read
I have a number of threads running simultaneously, and one of the lines of code running in each thread is the following:
threadBmp = myBmp.Clone(rec t, PixelFormat.For mat24bppRgb);
//"myBmp" is a class variable
The problem is that if i do not preceed this statement with:
lock(myBmp)
I get an error saying that the object is in use elsewhere.
Now, aren't all the threads... -
BTW, the size of the loop is not known. I might have even a couple of hundred elements to process... :SLeave a comment:
-
Multithreaded loop?!
Hi guys!
I have a simple for loop in c# that traverses all elements in an array, and invokes a method ProcessArrayInd ex() each time. The result is stored in another array, at the same index.
Now I would like to make this faster, through the...Code:int[] processedArray; int[] myArray; for (int k = 0; k < myArray.Length; k++) { myArray[k] = ProcessArrayIndex(k); } -
RichTextBox and RTF?
Hi,
I have a paragraph of text, which i want to display to the user (possibly in a richtextbox). However, some words need to be in another colour.
I tried to use rtf, but when i use:
- richTextBox1.RT F = "my rtf string", the richTextBox1.RT F does not change (seems like this property is read-only!)
- richTextBox1.RT F.insert(index, string) again does not change the value of the rtf property.... -
Thanks for your reply RedSon!
When you say "constructi on of the packet" what do you mean exactly? I managed to send a string or a byte[] before using sockets.
Are you suggesting that I make a new class called "Packet", serialize it using a BinaryFormatter and stream, and send it over?
If I understood you well, the packet will hold a value indicating which method the client should...Leave a comment:
-
Sockets for communication!?
I have a Server side application and a Client side application, both written in C#
The 2 applications run on different machines, and I need bi directional communication. So i thought i would be using sockets. However, as i soon found out, it's not going to be simple!
assume that on the CLIENT, i have 2 methods:
- MethodA() //no parameters
- MethodB(String msg) //one parameter
Now,... -
i still haven't figured out how to bind the arraylist to the listview!
I tried using a hashtable instead of a sorted list, then iterating through the hashtable and updating the listview accordingly. this gave slightly better performance, but we are still far away from acceptable levels!
How can i do this using multithreading? maybe a threadpool or something?
my code is as follows:
...Code://populate
Leave a comment:
-
Documenting vs2005 c# application?
hi guys!
I used to use Java until recently, and I just loved that Javadoc feature. Auto documentation of the classes / methods was just great!
Is there something similar for C# Visual Studio 2005 (.net framework 3.0)?!
i tried getting hold of ndoc, but it keeps asking for .net 1.0 so i think it's no good for me! -
-
Create new table in database from DataTable
I have a DataTable that is passed to me from an external application.
I would like to save this DataTable to my database (MS SQL server) using .net (c#).
How can a NEW table be automatically created from a dataset? I imagine SQLDataAdapter and SQLCommand may need to be used, but i still haven't quite managed to figure out how!
any ideas?
thanks
No activity results to display
Show More
Leave a comment: