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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
W

woaksie

@woaksie
About
Posts
7
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Manipulating a hashtable
    W woaksie

    I am trying to iterate through a hashtable using an enumerator. I want to change some values as I go. Here is a simplified version of my code…. ptr = hashTab.GetEnumerator While ptr.MoveNext hashTab.Item(ptr.Key) = “something different” End While I get the following exception when I change a value – Collection was modified; enumeration operation may not execute. What is the correct way to perform this type of operation? John.

    Visual Basic question announcement

  • Data Binding a TextBox to a DataSet
    W woaksie

    You are right! When I tried your solution the first time I changed the second parameter but not the third. When I made both changes it worked. So it looks like a bug in the designer. When I set the DataBindings in the property window of the TextBox it generates code the incorrect way. So now I am not binding that way but via my own code. Thanks for your help. John.

    C# wpf wcf question

  • Data Binding a TextBox to a DataSet
    W woaksie

    The full error is: An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll Additional information: Cannot create a child list for field People. I single stepped through the program and the error happens after this line of code runs (every line of code in the Form1 constructor steps through okay but it fails when the last line has been executed and it returns to this line. If I break into it is breaks on the line after this one - int i = 0). Application.Run(new Form1()); I read the documentation. Can you get it to work using the designer interface? Or even via code? John.

    C# wpf wcf question

  • Data Binding a TextBox to a DataSet
    W woaksie

    Thanks for the reply. I tried that and I get the error; "Cannot create a child list for field People." This code is generated automatically when you set up the data binding for the textbox in the designer so should be okay, right??? John.

    C# wpf wcf question

  • Data Binding a TextBox to a DataSet
    W woaksie

    I created a windows form. I added a SQLConnection, a SQLDataAdaptor, a DataSet all via the designer. I then added a TextBox and a ListBox and databound them both to a column in the DataSet. I then added a button that will show the next record with the following code; this.BindingContext[this.dsPeople1.People].Position ++; When I run this the ListBox’s selected line moves to the next record but the TextBox stays on the first record. Am I missing something? This is the code that has been generated for the TextBox and the ListBox. this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsPeople1, "People.First_Name")); this.listBox1.DataSource = this.dsPeople1.People; this.listBox1.DisplayMember = "First_Name"; John

    C# wpf wcf question

  • Can I Link a checkbox to a TextBox?
    W woaksie

    First this is what I am trying to achieve. I want a single checkbox and a textbox. If the checkbox is checked (selected) I want the textbox to instantly become invisible or read-only. If the checkbox is un-checked I want the textbox to be visible and writable. The environment is ASP.NET mobile controls i.e. a browser on a mobile phone, PDA, etc. Ideally I don’t want to postback when the checkbox is selected. I assume I need a SelectionList to create a checkbox but where do I go from there? Thanks. John.

    Mobile csharp asp-net question workspace

  • Can I Link a checkbox to a TextBox?
    W woaksie

    First this is what I am trying to achieve: I want a single checkbox and a textbox. If the checkbox is checked (selected) I want the textbox to instantly become invisible or read-only. If the checkbox is un-checked I want the textbox to be visible and writable. The environment is ASP.NET mobile controls i.e. a browser on a mobile phone, PDA, etc. Ideally I don’t want to postback when the checkbox is selected. I assume I need a SelectionList to create a checkbox but where do I go from there? Thanks. John.

    ASP.NET csharp asp-net question workspace
  • Login

  • Don't have an account? Register

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