Search:
Type: Posts; User: MarkGB
Search:
Search took 0.03 seconds.
-
It gives the directory C:\working.
As kaliman79912 suggested with his location of a Breakpoint its the tvprogress.selectednode.fullpath thats empty. Once the error is suppressed and the node...
-
I'm just learning with this. I've removed both suggestions from ident. I am aware that the code could be written far better but this is a first attempt so I'm just finding my feet and this works for...
-
Thanks, tried that and its the tvProgress.SelectedNode.FullPath which is empty. Don't quite understand as the path exists?
-
I've been struggling with this for a while and finally gave in and am seeking some help.
The below runs on a `After Select` event in a treeview. The code runs absolutely fine but since I've made a...
-
I'm using the below to generate the list of installed printers and add them to a Tool Menu Strip
Private Sub PrinterToolStripMenuItem_DropDownOpening(sender As Object, e As EventArgs) Handles...
-
I'm having a bit of trouble with a File System Watcher and what looks like Windows Vista. My project has been built on Windows 8.1 as an Administrator and shows no signs of these error messages I get...
-
Thanks, the removing from the original database is the bit i'm more concerned with not doing!
I'll see what i can come up with
-
If i remove the item from the datatable will it still be available if selecting a different node?
-
The below code is populating a listbox form a data query when a node with a specific string value is clicked on in a treeview. The items that are displayed in the listbox can then be double clicked...
-
The nodes are created at runtime and on a refresh by getting a list of directories and files within the target folder and adding them to the treeview.
I was thinking of adding a routine that maybe...
-
I have a treeview which is used as list for daily jobs, files are added to the root node and these then appear as child nodes. Once the job is complete the files behind the node are zipped up,...
-
The below code searches through a directory and returns the relevant defined files as treenodes in my treeview.
The problem I'm having that if the file has an extension .xlsm (and possibly .xlsx...
-
If I use the Process.Start and double click on the node that has the extension .mdb then it will open Access. The .mdb files are used in some other bespoke software that requires some other...
-
I'm really asking on how to find the file extension that relates to the treenode
-
Hi,
In my treeview i have a collection of nodes that are file types (.xls, .pff, mdb for example) that have their extension shown in the node. I'm using Process.Start to initiate the programs from...
-
Thanks both of you - tried both answers and they both worked. Thanks again
-
Running the below SQL query from a VB.Net project into a Access Database. This all works fine however i need to add some pre-defined rows if the query returns nothing.
I've added the following...
-
OK so whats the best way of accomplishing that please?
-
Yes, I suppose so if you put it like that!
-
Date Node
| |___Parent Node
| | |___Child Node
| | |___Child Node
| |
| |___Parent Node2
| |__Child Node2
|
Date Node2
| |___Parent Node3
-
Hi,
I have a control that has GrandParent, Parent & multiple Child nodes and would like to return all the parent nodes into an array (or Listof) so i can reference them from a listbox. I only...
-
Thanks both so much, you've helped massively
-
Thanks, thats working with searching for a single file extension however if i try to search and add 2 extensions (.xls & .pdf) for example it returns 2 sets of parent nodes.
This part of the code...
-
Hi, Im using the below code to look through a directory and add the folder names as treenodes to a treeview control. I'm needing then to search the folders and add to each respective node any file...
-
Need to try it but that looks just what I'm looking for. Thanks so much
-
Sorry 1 Parent Node with multiple child nodes that are folder names within 1 directory.
I actually have a listbox that, when the child node is selected, a SQL query is executed and some file names...
-
Hi,
Is there any code that can display the name of a child node in say a Message box on an AfterSelect or click event?
The nodes that i have are basically folder name's and i just need to be...
-
Thanks jmcilhinney, let me give that a try
-
Thanks, I understand that the error message is displaying as it thinks the selected item is returning Nothing however towards the end of the 1st code there is this block
If...
-
the line that throws the exception is
If AllDetails(n).uName & " - " & AllDetails(n).uCode & " - " & AllDetails(n).uOps = lstProgress.SelectedItem Then
and it gives the...
-
Hi,
I have the following code that runs on Load and that reads from text files in a directory and stores the info in an Array. This then loads the relevant info into a listbox based on the date...
-
Hi, I've tried by both ident & dday9's answers and neither work for me.
The code I posted does exactly what i need for now however i need to change this
If MyVariable = "Spreadsheets" Then...
-
Yes sorry - the original code i've posted was taken from a VB6 application which i'm updating in VS12. The code i have used worked in VS12
Thanks for all your help
-
Sorry the code i'm using is below
Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
Dim lyxfle As New...
-
Hi,
Below is a snippet of my code which helps determine which files to pull through to a listbox via a dropdown result. What I'm struggling to do is make it so it also recognises .xlsm & .xlsx...
-
Thanks for all your help, I'll give them all a try
-
Sorry Ian,
This is exactly what i want to do but I only want it to show the the file name in the listbox
Currently the file path would be C:\Dropbox\Test
Hope that makes more sense.
-
Ah thanks let me have a play
-
Thanks. however if I apply this to the List box click it opens a dialogue looking for a Picture File. I'm looking for that if i click on a file with the .pdf extension it will open the actual PDF...
-
Hi,
Please excuse me I am very new to Visual Basic
I have a listbox on a form that populates from a text file on a button click. This works fine but only brings through the fie name and not the...
|
Click Here to Expand Forum to Full Width
|