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
  1. Home
  2. General Programming
  3. C#
  4. Reset All Fields in Form

Reset All Fields in Form

Scheduled Pinned Locked Moved C#
helpquestioncsharpdatabase
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nagendra vk
    wrote on last edited by
    #1

    hi good evening frnds, I have three doubts here... 1) How can i refresh my windows form everytime,when i submit the values to the database using C#. 2) can u gimme autogenerate code for userid, its urgent pls help me 3) i need some clarification abt ths error : what is meant by, insert command confilcted with foreign key column hope u gimme as early as possible... thnx in advance, nagendra kumar

    N C H 3 Replies Last reply
    0
    • N nagendra vk

      hi good evening frnds, I have three doubts here... 1) How can i refresh my windows form everytime,when i submit the values to the database using C#. 2) can u gimme autogenerate code for userid, its urgent pls help me 3) i need some clarification abt ths error : what is meant by, insert command confilcted with foreign key column hope u gimme as early as possible... thnx in advance, nagendra kumar

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      nagendra.vk wrote:

      How can i refresh my windows form everytime,when i submit the values to the database using C#.

      Read about patterns like MVC/MVP. You need to have a model. All your UI controls will be observing it, whenever the model changes, controls will update itself. Read about data binding.

      nagendra.vk wrote:

      can u gimme autogenerate code for userid, its urgent pls help me

      NO. We don't serve urgent requests :)

      nagendra.vk wrote:

      insert command confilcted with foreign key column

      Looks like the value you are inserting is not present in the parent table.

      Navaneeth How to use google | Ask smart questions

      1 Reply Last reply
      0
      • N nagendra vk

        hi good evening frnds, I have three doubts here... 1) How can i refresh my windows form everytime,when i submit the values to the database using C#. 2) can u gimme autogenerate code for userid, its urgent pls help me 3) i need some clarification abt ths error : what is meant by, insert command confilcted with foreign key column hope u gimme as early as possible... thnx in advance, nagendra kumar

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        1 - you can iterate over the controls collection and reset them all that way 2 - ++userid 3 - I suggest you do some reading before touching any more database code, as it's clear you don't understand them at all.

        Christian Graus Driven to the arms of OSX by Vista.

        1 Reply Last reply
        0
        • N nagendra vk

          hi good evening frnds, I have three doubts here... 1) How can i refresh my windows form everytime,when i submit the values to the database using C#. 2) can u gimme autogenerate code for userid, its urgent pls help me 3) i need some clarification abt ths error : what is meant by, insert command confilcted with foreign key column hope u gimme as early as possible... thnx in advance, nagendra kumar

          H Offline
          H Offline
          Haris Custo
          wrote on last edited by
          #4

          Hi, you can see my post on this topic :) Reset all controls on form (Windows forms – C#[^] Hope it helps, Haris

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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