How do i close this thread now guys?
bdeklerk
Posts
-
filtering of comboboxes SOLVED -
filtering of comboboxes SOLVEDThat works great. Thanks for the help guys and special thanks to Wayne Gaylard. :-D
-
filtering of comboboxes SOLVEDThanks for the reply. Im populating the boxes from a table in SQL.
-
filtering of comboboxes SOLVEDSorry I should have been more clear. The amounts in the comboboxes are from 0 - 200 00.00 every 10 000.00 so 0, 10 000.00, 20 000.00 etc etc. Thanks
-
filtering of comboboxes SOLVEDHi everyone, I would like to filter comboboxes. If I choose a certain value in one combobox, the following two comboboxes should only display the value of the first combobox or less. So lets say I choose an amount of 100 000.00 the following two comboboxes should only have 0 - 100 000.00 displaying in them. Any ideas on how to do this would be appreciated. Thanks for the help.
-
System.IO Project for beginnersIm posting this to see what people come up with in this project. I dont need help with this but am in the process of trying to figure out system.io. Ive started the project off which is a windows form with a Get Folders and Files button which then opens a FolderBrowserDialog to let you pick the directory you want to list on the listbox with its subdirectories and files. 1) How can we rename a certain directory listed in the listbox 2) How do we remove unwanted directories 3) How do we check for duplicate files or directories, and remove one) 4) How do we remove unwanted characters in directory or file names. Feel free to add other points that we could do with this project.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;namespace MusicProject
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}private void btnGetFolders\_Click(object sender, EventArgs e) { listBox1.Items.Clear(); //To get the FolderBrowserDialog to choose the correct folder. FolderBrowserDialog fbd = new FolderBrowserDialog(); if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { //To get all directories in the one you selected. foreach (string dir in Directory.GetDirectories(fbd.SelectedPath)) { DirectoryInfo dInfo = new DirectoryInfo(dir); this.listBox1.Items.Add(dInfo.Name); } //To get all the files in the directory you selected. foreach (string file in Directory.GetFiles(fbd.SelectedPath)) { FileInfo fInfo = new FileInfo(file); this.listBox1.Items.Add (fInfo.Name); } } } }
}