Program Detect If 2 Nodes Have Same Name?
Feb 14, 2010How can my program detect if 2 nodes have the same name ?
View 3 RepliesHow can my program detect if 2 nodes have the same name ?
View 3 RepliesI'm all new to this treeview business. I have a fixed treeview, very simple and basic. Only two levels, parent and child nodes. I just need two things out of this treeview.
1) If parent is checked, check all child nodes.
2) If just one child node is unchecked, uncheck parent node.
That's it! I've been looking for this for 30 mins and I cant find it. Maybe because my vb.net is old, it doesnt seem to be the same as others =/ I'm using vb.net 2003.
I have a problem with my treeview. I have two child nodes with different parents which contains a literal (*x). In this case (*1) (view image)
[Code]...
Is the following possible in one XPath expression (see sample below) Select all (span tags of class msg) AND all ((img tags that have a non-empty alt attribute) AND (are NOT located inside a span tag of class msg))
[Code]...
I'm trying to get my program to append a child to one of my parent nodes in an XML file. I have looked online for quite some time trying to determine the best way possible, and have come up with the following
[Code]...
I'm working on a web browser named Hyvar.NET and i'd like to integrate a form of shutdown detection into it.
Currently, it simply uses a tri-option setting to decide how it opens - like this
If My.Settings.LoadLastOnStart = True Then
frm.wbTab.Navigate(My.Settings.LastOpenedPage.ToString)
ElseIf My.Settings.HomeOnStart = True Then
[Code]....
Each variable is appropriately named for its job as you can see.
However, i want to change this to react to correct and incorrect shutdowns - unexpected and user instigated ones for example. I.E: if the settings variable for the detection contained 0x000000, it could indicate a clean exit and continue as normal with a new session, but 0x000001 would indicate an unclean shutdown and present the user with an option of reopening the last session or continueing as normal, like in IE 7/8
Im 100% sure this will require a windows API call
I have been developing all sorts of programs and have found myself making a password safe program. While making this program I tried to use a listbox to display the passwords and such but have found that to be insecure and hard to manage and so I decided that adding a treeview to replace the listbox would probably be my best option. So in my program the user has an 'Add Entry' option and that loads a form where they enter the information they want put into the program and saved. So far I have it set up like this, They enter the user name in textbox 1, their password in textbox 2 and the website this information goes to in textbox 3. And then I have an 'Add Entry' button and when they press the button it adds the website to a node, and I'm trying to make the username a child of that node, How should I do this because I've been messing with this for about an hour and can't seem to figure anything out. Here is the code for the 'Add Entry' button if it helps:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form3.TreeView1.Nodes.Add(TextBox3.Text)
Me.Close()
End Sub
I have a treeview that is populated from a HDD folder collection. Its structure is similar to the following (however the structure is dynamic):
My Disk:
|
|--folder1(tag:folder)
| |--subfolder1(tag:folder)
[code]....
I call the sub as follows:
deleteNode(treeview1.Nodes(0).Nodes)
However, the above is not working properly. It deletes only some nodes and not all the targeted nodes.
how to add treeview nodes and sub sub nodes using functions
View 1 RepliesI'm running out of walls to bang my head against. Okay new windows form with a textbox, button and TreeView Populate the TreeView.nodes with the default nodes via properties
[Code]...
I want to click button1 and have the name of the childnode? Node3? placed in the textbox. Not via selection, I can do that. But via index or item number. The code I have is as follows
[Code]...
How do I make VB constantly check for keypresses?[code]...
View 1 RepliesObjective : Time how long a user has been on the internet. I have never delved this deep into Visual Studio. I am suing Visual Basic 2010 Express. Please move it if you need to.
I want to have a program - that will detect running processes. If Internet Explorere EXE or Chrome or FireFox exe or any other browser is installed - as soon as that process starts the timer will appear.
When those processes are closed by the user the timer stops counting. This is possible but i dont know how. But i only want it to time just one internet process because timing them all when they are openend up at different times could cause bugs. Unless on the time form you have 1 timer for IE, 1 for FFox, 1 for Chrome 1 for Opera..
does anyone know how to get my program to scan for a program such as ie then add it to a toolstrip as a button then when i click it it opens ie??I like..... Understandable Answers
[Code]...
I have Windows XP Pro, SP3 on a Dell Dimension 9150 with VB 3.0 and all other Visual Studios up to and including VS2010 Pro.I'm not exactly an expert VB programmer, but I have written several different programs.I would like to write a VB program to run in the background and detect when the program regedit.exe/regedt32.exe tries to run.Once the regedit program tries to run, I would like my background program to pop up a message with three options. Allow, Do Not Allow and Cancel.
The Allow button would allow regedit to run.The Don't Allow button will not allow regedit to run and continue to run in the background. The Cancel button would not allow regedit to run and would cancel the background program.Can this be done?I would explain why I want to do this, but it would take too much of this thread. However, if anybody really needs to know, I will accommodate their request.
How to detect collision for a game in vb.net ( i using picturebox for every thing ).
View 1 RepliesHow to handle the Network failure error message,and how to simulate it?
View 3 RepliesIn my program I need to make various word replacements but I don't want to replace the word if it's encapsulated[cod]e...
View 1 RepliesHow do i actually detect a card is being read by a card reader by using events handler?Like the card reader is connected to the PC using USB, and when a card is flash on the card reader, it will be detected.
View 5 RepliesI have a custom button in IE8 which starts up my program. Now what I wanted to do, was pass an arguement such as: 'myprogram.exe /ie'
From the IE8 button, and well my program will do rest from there. Now my program adds the button just fine, shows up fine, all that works. But each time i'd add an argument after my application path, IE8 would say it can't find the program. If you want to test this out, goto run, type in gpedit.msc, then 'User Configuration'->'Windows Settings'->'Internet Explorer Maintenance'->'Browser User Interface', and double click on 'Browser Toolbar Customizations'. And in the small window that pops up, is an option for adding custom buttons to IE. I was using this for testing purposes, since it was faster to edit a button here than in my program. When you add a button you choose the executable to link it to. But if you add any arguments after it, IE will simply not be able to find the program. Even if that same command works when you type it from 'run'.
So, now my question is, since apperntly you can't have any arguments in the button, is it possible to detect what executable starts your program? For instance, detect if iexplore.exe started up my program?
I have a function designed to detect if the program is being run on Win7. However, when it is run on a Win7 machine, it says it is NOT a Win7 machine. [Code]
View 3 RepliesIs there a way to detect a Chinese character in a string which is build like this:
dim test as string = "letters 中國的"
Now I want to substring only the Chinese characters. But my code is database driven, so I can't substring it, because the length is always different. So is there a way I can split the string, from the moment I detect a Chinese character?
How to make program to detect mouse click and run vb script for action?
View 4 RepliesI am linking VB.2008 with a software called R.
Different people may install R in different directories or different versions.e.g. My R dir is C:Program FilesRR-2.9.0
How can I let VB automatically detect it and return the directory path to me?
Let's say I have only Notepad.exe running. No other items are on my taskbar except "Untitled - Notepad". How do I tell VB that i want it to find notepad and for example, dock itself to the left hand side of the notepad window?
View 3 RepliesHow would I make my VB Program detect mouse clicks? I want the code in a timer. So if I turn the timer on, my program will detect a Mouse click and then do the rest of the Timer code. And after the timer code is done, I want it to do it again until the timer is closed. So if the timer is on, every time I click the mouse, (anywhere on screen) it will do the rest of timer code.
View 2 RepliesIs there anyway to make a program that auto detect the verification code ..like when sign up for a site..because i want to make a program like roboforum.
View 11 RepliesI have a picturebox that the user can draw on and I need the program to detect if a specific point has been drawn on. For example, I need the program to detect whether the user drew at location (8,8) and give a basic True/False answer.
View 4 RepliesWay to detect the windows version, form say 95 to win7, in vb.net? pardon my ignorance but im not a big coder and norm only do python.
View 5 RepliesThe purpose of the code below is to scan a program of mine to detect a pixel color change. It loops through until a change is detected. It works fine for about 10-15 seconds and then I get an ArgumentException was unhandled error. So far this has happened on two different lines at separate times...
Image = New Bitmap(Rec.Right - Rec.Left, Rec.Bottom - Rec.Top)
I am trying to write a VB program to automatically detect and identify a particular device that will only communicate to my program when I have 2 or more devices plug into the USB port. One way of doing it that I can think of is to scan through the available port and do a write and read to identified the port. But that would take up a lot of time if I were to scan through say 5 available port.
View 16 Replies