|
Also take look at Emil Post's stuff on 'productions', circa 1930s.
The authors initial was wrong, it's Douglas R. Hofstadter. I need better glasses.
The NKS book is more along the lines of cellular automata. You might want to get the legs on your coffee table reinforced first.
|
|
|
|
|
|
treddie wrote: But I am curious now, if vb.Net has the ability to turn a string into a code statement, or maybe even multiline text into actual vb.Net code?
There's various ways to compile code (from your app) and execute it. I don't think it'd be very helpful in finding a TreeNode though.
treddie wrote: If I already have the full path to the correct folder, then I need a quick way to get to the node without having to search the entire tree.
Start at the left of the folder-string. Find the item in the root-node. Open that node. Find the second part of the path in the current node's children. Repeat until the path is empty.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
That is where the frustration is. There is no way to set any ARBITRARY node as a "current" node and start the search from there, in a Find() method. Although you can restrict the search to a node and none of its children, you can't programmatically start a search at any node without it being specific. There is no general statement for:
= MyNodes(2).Nodes.Find("Hello", True)
and
= MyNodes(2).My1stChildNodes(3).Nodes.Find("Hello", True)
|
|
|
|
|
treddie wrote: There is no way to set any ARBITRARY node as a "current" node and start the search from there, in a Find() method
Ano node contains a node-collection that can be searched. If you know what node to start from, that is.
treddie wrote: There is no general statement for:
TreeView1.Nodes.Add("Node1", "Node1").Nodes.Add("Sub1", "Sub1").Nodes.Add("Hello", "Hello")
TreeView1.Nodes.Add("Node2", "Node2").Nodes.Add("Sub1", "Sub1").Nodes.Add("Hello", "Hello")
Dim foundNode As TreeNode = TreeView1.Nodes("Node2").Nodes("Sub1")
If foundNode IsNot Nothing Then
TreeView1.SelectedNode = foundNode
TreeView1.Focus()
End If
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Eddy Vluggen wrote: Ano node contains a node-collection that can be searched. If you know what node to start from, that is.
Eddy, is that a product?...The only thing I found was a site called "Ano Node", a freenet help site.
|
|
|
|
|
That should have been "A node contains a Nodes collection...".
|
|
|
|
|
Lol! Reminds me of the commercial where the guy is one question behind, due to buffering.
|
|
|
|
|
If the user is going to change large parts of the code,
use a ScriptControl COM component. It allows you to run a String as code.
|
|
|
|
|
Thanks, Edward! I'll check into it and report back.
|
|
|
|
|
Hello guys,
I'm creating an windows application using vb.net 2010 with mySQL as my database. My question is, if i deploy my application to another computer do i need to install too mySQL program? Thanks
@athan_MaKuBex13
|
|
|
|
|
How else is the database going to run?? Yes, you have to install the MySQL database engine on the machine.
|
|
|
|
|
Hello dave, thank you for your quick response. So it is the same when you have MS Access as your database, you cannot run the application without MS Access installed on the machine? Am i right?
|
|
|
|
|
You need the ACE Runtime installed, not all of Access or Office.
|
|
|
|
|
Now i understand.. Thanks dave!
|
|
|
|
|
Hi Everyone,
Can sombody help me how I can written a monitor en datalog program for get the data from my Digital Multimeter via the serialport. It's okay if someone here written an console application or an short GUI application. I would like to use VB6 and VB.NET
Here in attachment show you the dataformat :
Communication settings
=================
Übertragungsrate : 9600 baud
Charakter code : 7-bit ASCII
Parität : keine
Stop-Bits : 2
Dataformat Settings
===============
<a href="http:
Example
=======
<a href="http:
Kind regards
Steven
|
|
|
|
|
There's nothing special here. It's a standard serial port trans/receive app. It doesn't matter what you're talking to or what parameters you're using.
"VB.NET Serial Port example"[^]
|
|
|
|
|
remove this message from the vb forum
modified 10-May-13 16:44pm.
|
|
|
|
|
There's already a class written to do this: Microsecond and Millisecond C# Timer[^]
Don't expect 1us accuracy as Windows is not a real-time operating system and there is overhead to account for when the code calls your callback method.
Here[^] is another article, but the guy arrogantly claims sub-1us accuracy using flawed measuring techniques. It's simply not possible to achieve on Windows on todays hardware.
|
|
|
|
|
Hi,
Thanks for your response but I can't programming in C# and it's mangaged code. I looking for unmanaged code that written without classes and uses winapi and c++ or c
Can somebody help me for writing the code for the microseconds functions TimeInit_us(), TimeRead_us() and Delay_us(). It's no problem if there inline assembly
Not code with C#.NET with classes
|
|
|
|
|
You're not going to get that in the VB forums...
VB6 has been dead for a long time and it's very unlikely you're even going to find a solution that's not wrapped in a class.
Here's a thought. Study the code in the articles to see how they work and rewrite to your specifications.
No matter how much you inline or convert to assembly, you STILL cannot get microsecond accuracy because Windows is a PRE-EMPTIVE multitasking O/S. That means your code can and will be stopped at any point in time and control of the core your code was running on moved to another thread, including during the code that's running when kicked off by your timer.
|
|
|
|
|
Hi.
I am starting to get into user controls and I have one I was using as an example. All it has on it is a TreeView, but when I place an instance of the user control on a form, I cannot access all of its usual properties, such as TreeView.Nodes...In other words, .Nodes does not even show up as a property. I am assuming that somewhere in the code for the control, something must be happening that prevents certain properties from being exposed.
UPDATE: I'm thinking it means that a usercontrol will not expose any properties of other controls placed on it, unless they are explicitly exposed via declaring properties for such.
Much obliged for any help!
modified 9-May-13 19:55pm.
|
|
|
|
|
OK...It looks like that is the case. According to MSDN, constituent controls' properties are Private and must be exposed manually by creating Public Properties with the Get and Set accessors.
|
|
|
|
|
HEHEH...Now I'm not so sure. When I tried accessing the properties of the CONSTITUENT control in the UserControl, I was able to get to the properties, like:
UserControl1.TreeView1.Nodes.Find
|
|
|
|
|
That is probably because your UserControl is defined in the same project as you are working in. The default access modifier is "Friend" so you can see it as long as you are working in the same assembly. If you move the UserControl to a library, you would not be able to access it unless you modified it's access modifier to "Public".
Take a look at your UserControl1.Designer.vb file.
|
|
|
|