1,469 Posted Topics

Member Avatar for Mitja Bonca

I have done and published application and this is what I got just after the installation: What can be wrong? PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3603 System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll : 2.0.50727.3603 (GDR.050727-3600) dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000) dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000) SOURCES Deployment …

Member Avatar for DdoubleD
0
358
Member Avatar for Mitja Bonca

I am learing programming for a bit more then 6 months, and recently someone told me my concept is not the best one, he proposed me that I rather split my code into business logic layer and data access layer. And now I would like to ask someone if he …

Member Avatar for Mitja Bonca
0
236
Member Avatar for Mitja Bonca

This is the code I have: [CODE] public class BusinessLayer { public Employee[] GetAllEmployees() { Employee[] employees; DataSet myDataSet = DataBaseLayer.GetAllEmployees(); /// How can I convert the myDataSet to Employee List return employees; } }[/CODE]

Member Avatar for DdoubleD
0
2K
Member Avatar for Mitja Bonca

I`ve done an application and I then I published it. That did a setup.exe file. If I want to install it on my pc its all ok, but if I want to install it on some other pc, there is an error. It`s still lookingfor the path I have the …

Member Avatar for kvprajapati
0
193
Member Avatar for Mitja Bonca

I would like to do windows from with would guide the user through the installation of my already done win application. I already did the Setup Project (File > Add > New Project and select Other Project Types > Setup And Deployment > Setup Project. ) but I would like …

Member Avatar for viper77
0
109
Member Avatar for MxDev

[QUOTE=Diamonddrake;1012500]you can read the contents of any file to a text box with the string reader class [CODE] using (System.IO.StreamReader sr = new System.IO.StreamReader("TestFile.txt")) { RichTextBox1.Text = sr.ReadToEnd(); } [/CODE] but .doc files will not load as plain text because they are a special format created by Microsoft word. But …

Member Avatar for avirag
0
3K
Member Avatar for Mitja Bonca

I have this code now for inserting new ID into database: [U]IDs are all primary key.[/U] [CODE] MaxID = 0; string GetMaxID = "SELECT MAX(IDPerson) AS IDPerson FROM Persons"; SqlCommand cmd = new SqlCommand(GetMaxID, sqlConn); sqlConn.Open(); SqlDataReader reader = cmd.ExecuteReader(); if (reader.Read()) { MaxID = reader.GetInt32(0); } MaxID++; reader.Close(); sqlConn.Close();[/CODE] …

Member Avatar for DdoubleD
0
165
Member Avatar for Mitja Bonca

I would like to know if is it possilbe to disable a menuStrip on windows forms? But not whole, I would like to disable only one specific menu. I know I can disable whole with: [CODE]this.menuStrip1.Enabled = false;[/CODE] Look at this [URL="http://www.file.si/files/i81oold7vofces8vea47.jpg"]image[/URL] - I would like to disable menus: - …

Member Avatar for ddanbe
0
105
Member Avatar for Mitja Bonca

I am doing an app which inclueds richTextBox, for inserting text. I put some text into richTextBox and save it into my sql database (column is varbinary(MAX) data type, with this code: [CODE]byte[] myFile = Encoding.UTF8.GetBytes(richTextBox1.Text);[/CODE] Here the text is changed into binary data, and them I add parameters and …

Member Avatar for sknake
0
1K
Member Avatar for Mitja Bonca

I have a form1 as a parent form (and is a MDI container) which is a parent for a lot of the other child forms. Now I would like to create a Login. It should be another windows form - formLogin called. And it has to start the 1st when …

Member Avatar for Geekitygeek
0
2K
Member Avatar for Mitja Bonca

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 …

Member Avatar for kvprajapati
0
100
Member Avatar for Mitja Bonca

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. …

Member Avatar for Mitja Bonca
0
159
Member Avatar for Mitja Bonca

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: - …

Member Avatar for Mitja Bonca
0
2K
Member Avatar for Mitja Bonca

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 …

Member Avatar for DdoubleD
0
90
Member Avatar for Mitja Bonca

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... …

Member Avatar for Mitja Bonca
0
122
Member Avatar for Mitja Bonca

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 { …

Member Avatar for DdoubleD
0
102
Member Avatar for Mitja Bonca

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 …

0
71
Member Avatar for Mitja Bonca

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 …

Member Avatar for kvprajapati
0
138
Member Avatar for Mitja Bonca

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 …

Member Avatar for kvprajapati
0
99

The End.