Deleting Directories Using A Dynamic Checklist?

Mar 19, 2009

I am developing a .Net application that populates a checklist by querying the directories inside a "base" directory (this part already accomplished). The purpose is to show these directories and allow the user to "check off" the directories they want to delete, and then click a button to delete just those directories (this is the part I'm stuck at).My checklist populates, but how would I go about deleting just the directories that get checked?There is one more thing. Each of these directories might have a log file (of the same name) inside the "base" directory; this corresponding log file should also be removed.

View 2 Replies


ADVERTISEMENT

Deleting All Dynamic Textboxes Using A Button?

Aug 4, 2011

I have to delete all the textboxes after I clicked the Save button, I have a delete code here that deletes the textboxes one by one. I'm just starting in vb.net.

Public Class FunctionProcessor
Dim TextBoxes1 As List(Of DateTimePicker) = New List(Of DateTimePicker)
Dim TextBoxes2 As List(Of TextBox) = New List(Of TextBox)

[Code].....

View 2 Replies

Deleting Files With Dynamic Names?

Mar 11, 2012

Each time it runs, a program of mine creates an Excel document and names it using the current date ("Alerts from 29062011.xlsx" for example). The program gets run once a day,every day.The users have requested that I have the program delete the previous days Excel file each time it runs so that they don't take up space. I'm unsure how to do this though since, for example, if it is run on the first day of the month it would have to know

View 6 Replies

VS 2008 Create An Array Of Serial Ports - Deleting Dynamic Object

Jun 29, 2009

I have the following code to create an array of serial ports.

[Code]...

View 5 Replies

VS 2010 : Listing Directories Inside Directories?

Jul 29, 2011

This is currently the code I am using.

Dim fileList As Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles(FolderDialog1.SelectedPath, FileIO.SearchOption.SearchTopLevelOnly)
For Each topLvlFile As String In fileList

[code]....

The above code reads all the files & directories in a selected path. It ignores any hidden folders, like it suppose to. Except it doesn't ignore folders inside of the hidden folders that it finds & I need it to.I can't quite wrap my head around how to make it ignore all folders & files inside of a hidden folder that it find.

View 3 Replies

Making Directories Within Directories Using For Loop

May 3, 2010

[Code]....

it just creates 1 folder but not other folders with in folder.

View 1 Replies

Getting The Checklist Box?

May 25, 2011

i have got a checklist box and i have bind it with value like menstioned below

Dim strquery As String = "SELECT Pk_ProcessID,Fk_ClientID,ProcessName,mc.ClientName FROM M_Process mp JOIN M_Clients mc ON mp.Fk_ClientID = mc.Pk_ClientID ORDER BY mp.Pk_ProcessID"
cnn = New SqlClient.SqlConnection(strConnect)

[code]....

View 1 Replies

Add Data To Checklist Box On Runtime?

Aug 25, 2009

I have data in an arraylist and i want to add data to checklist box on runtime and i also want to display a textbox besides it so that i get the comments

example :
checklistbox "text" textbox
checklistbox "text" textbox
checklistbox "text" textbox
checklistbox "text" textbox
checklistbox "text" textbox

View 3 Replies

Arranging The Checklist Order?

Aug 8, 2009

i am currently doing a checkboxlist that is retrieved from database. is there any way where i can sort the checklist items in a way like those checked itmes will be displayed at the back then those that are not checked will be moved to the top.

View 4 Replies

Skills Checklist For Students?

Oct 24, 2009

For the assignment that I'm doing, there's certain skills I must demonstrate in my assignment. There are some standard ones, and some optional ones. The more optional ones I have, the better chance I have at achieving an A.Problem is, some of the things on the list are a bit wierd, and after Googling them, I still have no idea what they are. I will list them, if you could perhaps tell me what they are and how they work anInput Mask (Actually, I know what this is - when people input information, it's a method that inserts in the information in the correct frormat (eg. dd/mm/yyyy) but how do you do use this in Visual Basic?Use of procedures or modules

Optional
Validation rule andappropriate validation text message
Validating data input entry (eg data type, appropriate value, required)

[code].....

View 19 Replies

VS 2010 Listing All Directories And Files And Sub Directories And Subdir Files?

Jun 19, 2012

I need to list all files folders, subfolders and subfolder files under a selected directory in a list box not sure how to do the logic in the last amount of code lines to enumerate all subfolders dna files.Here is what I have so far:

Dim OldProfileDir As String
Dim NewProfileDir As String
Dim Newdocs As String = ""
Dim Olddocs As String = ""

[code].....

View 3 Replies

VS 2008 Tell If User Checked A Box In The CheckList Box?

Oct 19, 2009

how would i tell if user checked a box in the CheckList Box? Im going to have alot so i need to keep it neet and tidy so it looks clean.

View 3 Replies

Add Record In My Database When It Is Coming From A Checklist Box Control?

Aug 30, 2010

I'm having trouble on how to code this. First I need to assign a value for every item in the list (1 for the first item, 2 for the 2nd and so on). Does this control have a separate field for the value aside from text?

Second, I need to insert this into my database(MSSQL 2008) in this format:

insert into table values(ID,selectedvaluegoeshere)

View 1 Replies

Determined The Item That Invoke A Postback In A Checklist?

Mar 10, 2011

My checklist is doing a autopostback on selectedIndexChange event. I need to know how to get the item that was just selected that invoked the postback. I tried using selectedvalue,selecteditem, selectedindex, but they all give me the lowest item in thecollection and not neccessarily the item just checked

View 2 Replies

VS 2010 Adding Items To A Checklist Box From Another Form

Feb 2, 2011

i know how to add items to a list box box if all controls are on one form but for space reasons i'm adding items/urls into a text box on form2 then when i click OK the items are supposed to be saved/stored in the checked list box on my main form.

View 5 Replies

Using Directories, Sub-Directories And APIs?

Jul 11, 2011

Basically I'm going to try and develop a software that merges PDFs automatically using the PDFSharp API.What I want in the program is to basically that: Have the program to give and Input and Output directoryMerge all the documents in the directory or sub-directoryRename the merged PDF file according the the name of the directory/sub-directoryIf the folder has PDF files and a Sub-Directory I want to merge the PDF files in the folder and rename them as per the main folder, and rename the files in the sub-folder according to its name (i.e. seperate|)

It's the first time I'm using an API.The problem I have is how to use the directories and sub-directories as I need them.

View 2 Replies

Build An Application That Will Serve As A Very Large Checklist Of Sorts?

Apr 21, 2009

I am trying to build an application using vb.net that will serve as a very large checklist of sorts. and i'm not exactly sure of the best way to do this. I considered using a database but i would need it to be self contained without having to rely on a server or internet connection

View 4 Replies

Survey - Checklist - Status Report - FEED Template

Sep 14, 2009

I am planning a three form checklist/status report for a FEED template. Each form will address a different FEL. FEL1 is really a simple checklist and is easily dealt with using the Windows Form. My question is there a better structure to handle the more complex FEL2 and FEL3, like the web page? FEL2 will have approximately 20 questions and FEL3 will have about 50. I am still undecided whether to use radio buttons (radio button list, which I do not understand yet) or text boxes that will take a value between 0 and 10. I may weight the questions to give an overall percent complete that I can show on the progress bar or some such. If there is a better structure than the Windows form, can it and the Windows Form be linked? If not, will abandon efforts to complete current FEL1. Conceptually, you cannot start FEL2 until you have completed FEL1, and FEL3 until FEL2 is complete.

Public Class FrmFEL1
Dim PctCmpt As New ProgressBar()

Private Sub CboxChrtr_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CboxChrtr.CheckedChanged

[CODE]...

This is what I have so far. It is no working at all. No values appear when boxes checked. Would like a value for each checkbox that can be added in in order to get a total. That total to be added to the percent complete (TxFEL1).

View 13 Replies

VS 2008 : Linq / Sql Advice On Using Dropdown Checklist Usercontrol Values?

Apr 16, 2011

I had actually getting LINQ to work but I am past that now but I was wandering if anyone could help me what I basically have is a DropDownChecklist user control I made and the contents of the list are filled by LINQ getting a list of company names see below:

'Population for company filter box
Public Function GetCompNames()
Using DC As New DataClassDataContext
Dim comp = (From C In DC.Companies _

[code]....

Would you suggest using a public array or something to store the companyID's when populating the first list box? This just came to me at the end of writing this post. Will try this but not sure if its the right thing to do.

View 1 Replies

Access Values Of Dynamic Controls Added To Dynamic Tabpages?

May 8, 2011

i have created a dynamic tabpage and a dynamic tablelayoutpanel inside it then added dynamic textboxes and labels inside the tablelayoutpanel...the thing is , i am having a problem on how to access the value of those textboxes and labels and add them as new columns in the new table(tagpage) in mysql database, i can already create the table in the database but i cant add the new columns in it. heres the code for accessing the values of the labels and textboxes

error: NullReferenceException was unhandled....Object variable or With block variable not set.

sql = "alter table " & tbl_selected(counter) & " add " & frmMain.Controls("TLP_" & SecArrList_sp(counter2)).controls.item(SecArrList_sp(counter2) & "label" & counter).Text & " varchar(100) NULL;"

View 2 Replies

Dynamic LINQ Query Based On Dynamic Number Of Comboboxes?

Feb 5, 2010

I would like to bind a DataGridView to a different LINQ query every time (in order to reuse the same form/DGV for different queries), like this:

[Code]....

but the "Qry", and the number of comboboxes, and their field names would change every time.

View 5 Replies

VS 2010 MDITAbControl Add Dynamic TextBox With Dynamic Webbrowser?

Feb 29, 2012

Basically i have one TabControl with a form and 2 browsers within one form I have ProBlem To call the dynamic browser to navigate with dynamic Textbox.text

[Code]...

View 6 Replies

Dynamic SQL To Dynamic LINQ In .NET With MS SQL Server 2008?

May 24, 2010

I need to represent the following query using LINQ:

DECLARE @PurchasedInventoryItemID Int = 2
DECLARE @PurchasedInventorySectionID Int = 0
DECLARE @PurchasedInventoryItem_PurchasingCategoryID Int = 3
DECLARE @PurchasedInventorySection_PurchasingCategoryID Int = 0

[code]....

Now, I know that a query in .NET doesnt look like this, this is my test in the SQL Design Studio. Naturally VB.NET variables will be used in place of the SQL local variables.My problem is this: All of the conditions after "WHERE" are optional. In that a query might be made that uses one, some, all, or none of the conditions. V.PropertyID and V.Value can also appear any number of times.In VB.NET I can make this query easy enough by simply concatenating strings, and using a loop to append the "V.PropertyID/V.Value" conditions.I can also make a Stored Procedure in MS SQL, which is easy enough.However, I want to accomplish this using LINQ.

View 2 Replies

VS 2008 Dynamic Timer In A Dynamic Form

Feb 19, 2010

Ive managed to dynamically create a form, and dynamically create a timer, but i have not been able to create the timer on the dynamic form. Specifically, i need to be able to have the timer itself create another form with a timer. (I realize that this would create a new form every interval on the timer, that is what i want to do)

1. A way to add the timer to the dynamic form, and maintain the timer sub on my main form.

2. A way to create the whole thing over (dynamic form and timer) through the previous dynamic form and timer.

I was thinking i could use a collection/array to store the forms and timers, but i'm still having trouble figuring out how to add entire forms or timers into a list. (A timer is not considered a control, so i cant use a controlcollection...)

Heres my code;

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim frm As New Form

[Code]....

*EDIT* Btw, my idea was to use i as a variable that increases every time a form is created, then insert the form into the array, with i as the integer. i just need to know how to create a new form with a different name each time. (as with timers)

View 1 Replies

Dynamic ContextMenuStrips On A Dynamic Form?

Oct 15, 2009

I have a form that i need to be 100% Dynamic. So it could contain 10 labels maybe 100 who knows.

When you hover over a label there will be a different contextmenustrip to appear for each and every label. So all the contextmenustrips are Dynamic and contain 1 option maybe 2 options even 3 or 4 up to the users settings.

My problem is not creating a handler for when the user clicks on the contextmenustrips options. The problem is knowing which one of the options for that contextmenu was clicked!!

View 1 Replies

Dynamic ToolTip For Dynamic Text Box?

Jan 11, 2012

OK, I'm trying to display tooltip text for a dynamic edit box. Well, at least I'm trying to.

On my form, I've got a tool tip control which I've conveniently named ToolTip. My edit box displays OK. But, what I want to do is when the user hovers their mouse over the text box, I want the tool tip to display some text.

I think there are two problems that I'm having. I'm not convinced that I'm properly addressing a dynamic text box name. Ideally, I would want to be able to refer to the text box (but using a dynamic variable that will contain the prefix of the name). To hardcode, I would want to be able to achieve (not in this example but in theory): ABCDEFGt_0300.Text = "hello"

Dim controllerName as string = "ABCDEFG"
Dim t_0300 As New TextBox()
Me.Controls.Add(t_0300)

[Code].....

View 12 Replies

.net - Listing All Sub Directories?

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

Get Directories From Txt File

Sep 1, 2011

I need a code. How i can to verify if files of txt exist ? I have a txt file with a directory on each line and I want to verify for all of them. Example:

[Code]...

View 1 Replies

How To List Directories On FTP

Jun 25, 2009

I'm trying to make a simple program to list a directory and sub directories on an ftp. I haven't found anything simple to do this other than a dll made for ftp commands. There are two problems with that dll, the first is I can't get recursing through directories to work right and it has a trial period. So I'm wondering if there is a simple pure VB way to simply list directories on an ftp. The dll I've played with is ChilkatDotNet2.dll.

View 4 Replies

How To Manage Directories

May 29, 2012

I am now convinced there is no such thing using VB 2010 Express. I have read, re-read, studied, copied and pasted code to no end and all I get are error messages galore. It appears there is a big gap between what's on line as far as tutorials and the code that VB 2010 Express will accept. I hate to sound so lost but at the moment I am. I used to program in BASIC and QBASIC. I was a master at opening up ascii text files, reading them in sequential order, sorting, manipulating, then re-writing them. It was all so easy, like this: [code] That's all I want to learn how to do for the moment. But every tutorial or article I find goes off in to wild tangents about How to Manage Directories or it reads the entire text file into one giant object. Or worse, there's some code which looks promising but it won't run under VB 2010 Express or it might run but the author leaves out important parts of the code that have to be declared ahead of the subroutine....you all know what I mean. It can't be this difficult to just read a text file one line at a time, therefore it shouldn't be so difficult to find an accurate and up to date article on this.This is for really rough programming. I don't need an interface of any kind. The user, will not even need to know that anything is happening. I simply want to read text files, manipulate what's in them and then re-write the edited text.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved