59 Discussion / Question Topics
Remove Filter I have a problem with alignment of the child form in a parent form. I would like to have this Form3 in the upper right corner of the Form1 - always - even when user changes the size of the form1. Form3 it has to be located there. The location … | |
I did like: [CODE]FileStream fs = new FileStream(System.IO.Path.GetTempPath() + @"\MyTempDir" + listBox1.SelectedItem", FileMode.Create);[/CODE] And you know what happens? It partly works. It opens the files (if its a pdf file, it opens in a acrobat reader, if doc it opens in word,...) but there is no file in that directory. … | |
1. How to retrieve stored file our of the database? have stored (for example) a pdf file into database, as a data type of varbinary(MAX) - binary data. How can I get this file back, like it was before? Important things I have stored for the particular file are: - … | |
How to call a comboBox1_SelectedIndexChanged(object sender, EventArgs e) method from this code: [CODE]private void treeView1_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) { // Get subdirectories from disk, add to treeView1 control AddDirectories(e.Node); // if node is collapsed, expand it. This allows single click to open folders. treeView1.SelectedNode.Expand(); // Get files from disk, add … | |
I have this code: [CODE]string[] dirs = Directory.GetFiles(@"c:\myFolder\", "*.doc"); [/CODE] How do I do the same code, if I change "*.doc" with the comboBox. I have done the code that a user selects a filter from the comboBox. I did: [CODE]string[] dirs = Directory.GetFiles(@"c:\myFolder\", comboBox1.SelectedItem.ToString());[/CODE] but it is not working... … | |
What I want to do is a drop down list (comboBox) that the user can see only selected files. For example, if user selects a Word Documents from a comboBox, on the explorer will be only visible a doc files. I have done a FileFilter class: [CODE]public class FileFilter { … | |
I have a database, which has atable called Company. Inside are columns with the basic informations (company name, street, post, city, tel.numbers, ...). I would like to know to populate listBox with company names which have a "stationary number" in the database when checkBox is checked! But I mean if … | |
I have created my own dataset: this.abcTableAdapter.Fill(this.dataSet1.abc); And I created DataGridViewComboBoxColumn called AllGrades: DataGridViewComboBoxColumn AllGrades = new DataGridViewComboBoxColumn(); for (int grade = 5; grade <= 10; grade++) { AllGrades.Items.Add(grade); } AllGrades.DataPropertyName = "Grade"; AllGrades.HeaderText = "Grade"; AllGrades.Width = 60; AllGrades.MaxDropDownItems = 6; AllGrades.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing; dataGridView1.Columns.Add(AllGrades); In a dataGridView I … | |
How to do comparions (or equalizations) in a Query builder (for a dataGridView)? I mean, I would like to select Grade and a Teacher who gave this grade, but I need to do a comparison to two listBox. In 1st I select a Student and in 2nd I select a … |
The End.