" Instead of using MDI, you could create all of your "forms" as user controls and just handle their loading/unloading on the same form " Could you please send me a small example? thanks
viana
Posts
-
Windows.forms application -
Windows.forms applicationThanks for your sujection. I tried it and hit worked. I have a small question, how can i remove de icon in my child form?. I want to open it maximized without de maximize, minimize and close button, and change the menubar. Thanks
-
Windows.forms applicationHi, i'm starting C#, and i have a problem: I'm developing a application that should open one "window", which should be created from a form that has buttons, like a menu selector. When i click the button it should open a new especific form, e.g. button 1 opens form1; button 2 opens form 2 ... That i can do, but i want to open it in the same "window", not openning a new window with my new form, an when i hit a save button i want to go to the previous form. Can´t it be done??? thank for your time.
-
Listbox with hidden idhi, if i understand this rigth in a listbox i can have a field to be displayed and a value "linked" to that field. what i did was: public class BaseDados { public DataTable doquery(string query) { OleDbDataAdapter DataAdapter = new OleDbDataAdapter(query, connectionString); DataSet dataSet = new DataSet(); DataAdapter.Fill(dataSet, "Same"); DataTable dataTable = dataSet.Tables[0]; return dataTable; } } and in the class of the form where is my listbox i put: BaseDados db = new BaseDados(); DataTable table = db.doquery("Select * from autenticacao"); listBoxOrigem.DisplayMember = "email"; listBoxOrigem.ValueMember = "id"; listBoxOrigem.DataSource = table; and it display the field email correctly. How can i read the selected item from my listbox, the id i tried: string b=listBoxOrigem.SelectedItem.ToString(); but it did't work
-
Listbox with hidden idhi, if i understand this rigth in a listbox i can have a field to be displayed and a value "linked" to that field. what i did was: public class BaseDados { public DataTable doquery(string query) { OleDbDataAdapter DataAdapter = new OleDbDataAdapter(query, connectionString); DataSet dataSet = new DataSet(); DataAdapter.Fill(dataSet, "Same"); DataTable dataTable = dataSet.Tables[0]; return dataTable; } } and in the class of the form where is my listbox i put: BaseDados db = new BaseDados(); DataTable table = db.doquery("Select * from autenticacao"); listBoxOrigem.DisplayMember = "email"; listBoxOrigem.ValueMember = "id"; listBoxOrigem.DataSource = table;
-
Listbox with hidden idHi, i need to create a listbox from a database, which should display the name of a field and have the row id hidden, that i can "see" to manipulate the database table.