Listing Department And SubDepartment?
Jun 5, 2010
I am trying to read infofmation from the database where i list each department and thier subdepartments in the database so i have all departments and subdepartments in one database Called Departments there is also a field called SubDeptID the SubDeptID will have the value 0 if the department is a parent or a top level other wise it will have it's parent DeptID now i used 2 function to try to create this - it seems that the function add only the parents to the listbox but not the childrens?
here are my functions
Code:
Public Shared Sub FillDepartment(ByVal DropName As Telerik.WinControls.UI.RadListBox)
Dim displaymember As String = "DptName"
Dim valuemember As String = "Deptid"
[code]....
View 19 Replies
ADVERTISEMENT
May 8, 2010
All I am trying to do is write a simple program that will let me choose a directory and get a listing of all files in that directory and its sub-directories and show it in a RichTextBox. I got as far as being able to select the directory but when I click "OK" I get "access to c:documents and settingsstevedesktopmp3 is denied".The code I am using is listed below.
Imports
System
Imports[code].....
View 10 Replies
Jun 14, 2011
I have a collection of a DTO, Department, and would like to extract only one of the columns for all the Department-objects. I know that in C# you can do like this:
List<Department> departments = corporation.GetDepartments();
List<int> departmentIDs = departments.ConvertAll(dep => dep.ID);
Out from my understanding this is use of LINQ, with the argument to ConvertAll() being a lambda expression.
When trying to achieve the same in VB, it seems that one must define a Converter-method:Dim departmentIDs As List(Of Integer) = coll.ConvertAll(New Converter(Of Department, Integer)(AddressOf ConvertDepartmentToInt))Public Shared Function ConvertDepartmentToInt(ByVal dep As Department) As Integer
Return dep.ID End Function
View 1 Replies
May 11, 2009
I want to make a mini browser for my IT department. I want to have buttons that will load internal websites and log in. I understand how to load th epage but have no clue how to pass the log-in information.
View 3 Replies
Mar 18, 2010
I want to get a list of all users and groups that belong to a specific department (entered by the user) from Active Directory using VB.Net and DirectoryServices.
View 2 Replies
Aug 3, 2010
I urgently need a working routine which cycles thru all users in an AD domain to find those with the "Department" property set to "XXX" and change it to "YYY".
View 12 Replies
Jan 18, 2012
how to list all subfolders in vb.net. i want to put it on a listbox, i have created a code but it only search on the current location, and does not include subfolder. here is my code,,
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
[Code]....
View 2 Replies
Mar 12, 2010
I came across this on a VBA written program and was wondering if it is possible to do the same on visual basic with the divider?So far I tried to populate a combobox using sqldatareader but can't get the same result.
View 1 Replies
Jul 16, 2010
how to get a listing of a directory file, listed by bytes in basic? I'd like to how write a dump utility and no not of any particular diectory. I am interested in dumping directories in general.
View 1 Replies
Mar 22, 2010
I have a folder with .txt files in it. How can I make my menuitem get those .txt files and put the filenames in the menuitem, so that it creates a list of all .txt files in that folder. So when I put a .txt in the folder the program automatically creates the menu item.
View 1 Replies
Jan 29, 2009
Is it possible to list the available MySQL databases on a computer?At work we run a model that generates a MySQL database full of results, 360 odd tables, when the model is a MySQL database is created containing the results and what I need to do is to be able to list all available databases, allow one to be selected and transfer all of the tables to a blank Access database cretaing the relationships once all of the tables have been created.The tables contain all the primary keys and foreign keys, eg Table1 may contain cust_Numb and table2 may contain cust_numb_pkey.Is this possible?Initially I asked this on a ACCESS forum, but am hitting a few brick walls so thought I'd ask on here as well.
View 2 Replies
Nov 7, 2010
I have created my own file system that is used for heavily encrypting all files on the drive. It has to use up to 7 partitions though. What I need it to do is add all partitions/directorys/files to a treeview. Something like this:
for each partition as safTfiles.partitions.partition in drive
add_partition()
for each folder as safTfiles.folders.folder in partition
add_folder_to_partition
[code].....
so it need to be able to click on a treeview node and expand, showing all subdirectorys and files.
View 3 Replies
Jul 29, 2009
why my code is not listing the sub directories in the list box?
Public
Sub SubDirButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SubDirButton.Click
[Code].....
View 6 Replies
Dec 10, 2009
I am using Visual Basic in Visual Studio 2010.I need a code which will find clients opened on my computer Then put them in a list.How do I do this?
View 6 Replies
Feb 7, 2010
How can I loop through a folder getting each file listed and when its date/time?
View 1 Replies
Dec 7, 2009
I am using the following to get an array of a directory. I was recently told that I needed to process my files in date order.
Dim filelist() As String = IO.Directory.GetFileSystemEntries(CustomerDirectory, ConversionWildCard)
For Each filename As String In filelist
'do conversion here
Next
how I can get the list of files in date order?
View 3 Replies
Mar 15, 2011
I need to write a process which filters out 'old/dead' job files from a directory (actually two directories). This process needs to 'read' a number pattern (in a fixed position) off the filenames (for which there will almost certainly be duplicates), and having then 'got a list' of unique number patterns, give these to a function (which I already have) which will give a boolean, from which I can decide to either delete those files whose name contain this particular number pattern or not - this is intended to be run each night (windows task scheduler). Example directory content is:
[ode]...
I know I can get a listing using Directory.GetFiles(dirpath, "SUB_*.xml") but am stuck on how to go about the rest.
View 10 Replies
May 2, 2009
if anyone knows if I can get a listing of all of the sub/functions in a class/module. Just the definitions (That is, the name, paramaters etc., but not the code).
View 3 Replies
Jun 25, 2010
I'm trying to find an easy to create a hierarchical directory structure that I can put in a TreeView, with two caveats:
1) The file list is from a file
2) The paths are un *nix format (e.g. /dir/dir/file rather than c:dirdirfile)
I found this ([URL]) which would do what I want...if not for the two caveats above. I can go through the process of tokenizing the paths and start creating linked lists of objects for a directory structure, but before I do that I'd like to find out if anything else is available...
View 3 Replies
Mar 10, 2006
In VB6, I used to declare my variables like this:
Dim x As Integer
Dim iLongName As Integer
i.e. All the types tabbed to line up.When I click "Pretty listing (reformatting) of code" in settings, it won't let me do this - and without "Pretty" switched on, the code is a mess (as a VB programmer, I'm not used to having to do things myself).Is there any way to configure this all or nothing option so I can get the best of both worlds?
John
PS. Sorry if this sounds trivial.
View 5 Replies
Jun 11, 2008
FI am working on a program that will help clients map a network drive by listing all available/visible network shares and allowing the user to select a share to map to. I have already created a basic VB script that will map a drive using a specified location. I have searched and read everything i could find and it looks like this can only be done by calling an API function but am unsure how to do this. [code]
View 10 Replies
Jun 25, 2009
I have currently been making a scanner for my flash games that scans the game, finds and lists all the variables.
It would take a tremendous amount of time to brute-force the variables but there are some tools like:
[URL]
...That somehow scan the actionscript or something like that and find all the variables in the flash movie.
How can i do this in VB2008?
View 3 Replies
Sep 17, 2009
I need a script that list all the Video Capture Interfaces of a PC, like web-cams or TV cards. Is there a way to do this using VBScript? If yes, any way to start?
View 1 Replies
Jun 21, 2011
How do I get all of the mapped network drives (shared ones) like the ones that a person would see in Windows Explorer? That is,
Network Places
Computer 1
Shared Folder
Computer 2
Shared Folder 1
Shared Folder 2
Is there a command or an API function that I can use to get at least the names of the computers and its folders?
View 1 Replies
Feb 23, 2010
I'm having a problem when I list .rar-files into a ListBox. I can list .rar-files OK from subdirectories, but what I want to determine if the file is actually the first part of .rar-archive. The new .rar-format packs files like:
Archive.part01.rar
Archive.part02.rar
Archive.part03.rar
...
So I have no idea when I'm listing the first part of the archive or actually listing the other parts.
Function UpdateFiles(ByVal FolderPath As String) As Boolean
'If FolderPath is empty, return false
If FolderPath = "" Then
Return False
End If
[Code] ......
View 1 Replies
Nov 26, 2009
Currently one my current project has 4 listboxes (1 big and 3 smaller) of the 4 listboxes 3 of them(smaller ones) are populated on load with file names from a specific directory.
'setting up root parts
Dim ordernum As String
Dim boekje As String
[Code].......
View 1 Replies
Jul 25, 2011
I have a problem with my application. The following method lists all files with the extention "*.wgmp" in a specific directory.[code]....
View 2 Replies
Apr 9, 2011
I wrote some code yesterday which shows a directory listing of an FTP server and if you click on a folder it will show that directory and their is a back button. But I dont think it is efficient and I can tell there will be a lot of errors.
Imports SylentUpload.Utilities.FTP
Public Class Form3
Private DirectoryHistory As String = "/"
Private DecryptedUsername As String
Private DecryptedPassword As String
[Code] .....
View 3 Replies
May 21, 2012
I'm pretty new to Visual Basic, do mostly web programming in PHP/MySQL. Need to pull data from a MySQL Database using Visual Basic Program I'm making. Need to when I click a radio button, it shows in text box only the results from a table with a certain trait(as set in the database) etc. For example if an item is set to a certain category. And i click the radio button for that category it shows me only items in that category. I've attached an image of sort of what I've got. I've already downloaded the ADO connector from mysql site. I just need kind of a push from there or a link to a few really good articles. Followed a few youtube videos but I was unsuccessful somehow.
View 1 Replies
Feb 16, 2010
I am listing all drives with GetLogicalDrives()..
I am getting ( A:. C:, K: )
Now I want to know Each of Above Drive is ...
1) Ready or Not (To list out its content)
2) Type Of each drive...
Even if Floppy is not inserted in A: Code Should return 0
I am using GetFileCount() for A: and I am getting error..
Drive not Ready. I am using VS2003 VB.NET
View 4 Replies