Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

viana

@viana
About
Posts
6
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Windows.forms application
    V viana

    " 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

    C# csharp help question

  • Windows.forms application
    V viana

    Thanks 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

    C# csharp help question

  • Windows.forms application
    V viana

    Hi, 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.

    C# csharp help question

  • Listbox with hidden id
    V viana

    hi, 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

    C# database

  • Listbox with hidden id
    V viana

    hi, 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;

    C# database

  • Listbox with hidden id
    V viana

    Hi, 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.

    C# database
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups