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
C

Christopher Thornburg

@Christopher Thornburg
About
Posts
14
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • TableAdapter.Update will not save my data
    C Christopher Thornburg

    Okay cool...will you show me how to do it???? I think I would need a dataset.table variable and then assign it the data of the current row, and then pass that to the tableadapter.update() is this right? can you show me how you would do it in some code. I have 4 tables in my dataset. Dataset = WinVoiceDataSet Table = Company

    Christopher J. Thornburg

    C# help question announcement

  • TableAdapter.Update will not save my data
    C Christopher Thornburg

    Yes I have a primary key. I am not getting any error messages it just will not work. I have just added tables to my dataset so I need to change my code a bit. Would this work better if I used a datatable variable assigned my company table and then passed the datatable to the update or should I use datarows????? I just want you to know I have no idea what I am doing....:) I am a little confused about the whole thing.

    Christopher J. Thornburg

    C# help question announcement

  • TableAdapter.Update will not save my data
    C Christopher Thornburg

    Okay I can't get my update to work. here is my code: namespace DBWinVoice { public partial class Company : Form { WinVoiceDataSet companyDS = new WinVoiceDataSet(); public Company() { InitializeComponent(); } private void Company_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'winVoiceDataSet.Company' table. You can move, or remove it, as needed. this.companyTableAdapter.Fill(this.winVoiceDataSet.Company); } private void button1_Click(object sender, EventArgs e) { try { this.companyBindingSource.EndEdit(); this.companyTableAdapter.Update(this.companyDS); MessageBox.Show("Update Successful"); } catch (System.Exception ex) { MessageBox.Show(ex.ToString()); } } } } I know I am doing something dumb...can anyone help me? Thanks

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    C# help question announcement

  • How to control the install folder for you application
    C Christopher Thornburg

    I would love to know how to control where my application is installed and where all the necessary files are located on an XP pro machine. is this possible???

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    Visual Studio tutorial question

  • Form to Edit Properties.settings is not working.
    C Christopher Thornburg

    I created a windows form to edit my properties.setttings.default data that is used by my application, but it is not working. I dragged the properties dataset onto my form, and re-arranged the fields...and added a save button. then when I run the form I see no data till I click on the + button on the toolbar, then I see my data...but if I edit the data it will not save. And when I try to open the form in the forms designer...I get an error that says something about "type must be a valid type" I can view the code but not the designer...ugh, what am I doing wrong...this is such a simple form. :doh:

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    Windows Forms help

  • Passing Parameters to a running thread
    C Christopher Thornburg

    Such as writing the params to a text file and then reading them in duing the activate event of the form???

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    C# question

  • I hate users
    C Christopher Thornburg

    I know...users are like your kids...you love them and cherish them and are glad you have them...but sometimes you wish you could kill them...

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    The Lounge question help

  • I hate users
    C Christopher Thornburg

    For your family...OMG...that would really suck.

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    The Lounge question help

  • I hate users
    C Christopher Thornburg

    Why is it that every non-IT person thinks anyone in IT can fix a computer...god I hate users...Im so sick of "How do I fix my scanner on my pc at home" or some crap like that...sometimes I just wanna scream. Does anyone else feel my pain? -me

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    The Lounge question help

  • Passing Parameters to a running thread
    C Christopher Thornburg

    Okay, I am trying to implement a way to pass parameters to an already running thread or application. I have added some "Run Once" logic to an application of mine and it works great, if you try to load it twice...it looks for the thread by name, and if it finds it it just activates it. It works great...BUT...I want to pass 2 params to the running thread and this is how I am doing it and it is not working...not totally. So once my app is running, I will call the exe again and pass 2 params to it, when the second instance tries to start, I receive the params and save them to my properties.settings.default.variable1, variable2. then save the settings, check my thread, and if its running I just activate the running thread and exit. When the activated event fires I then look at the value of my properties.settings.default.whatever and the data has not changed, BUT if I exit the app at that point and start it again...the values have changed. Its like the running thread has a different session of the data open and it dosen't see the changes. So my question is: Is there a way to refresh the data session of the properties.settings stuff so I can see the last changes made??? or is there another way to pass the params to my running thread from the started thread???? Thanks...

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    C# question

  • Run Once and accept parameters
    C Christopher Thornburg

    Thank you...but that is basically what I am doing...my params save just fine to my resource file...but my "Activated" event is not working they way I thought it would. When I restore the first instance, sometimes I get my data and sometimes its like the Activated event is not even firing!!!! Yeah I'm a C# guy...last basic I wrote was in 1988....hahaha. :)

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    Windows Forms

  • Run Once and accept parameters
    C Christopher Thornburg

    I am working on a POS application that needs to run once, and then when called again it will just activate the current instance. So I have the run once code working but now I need to be able to pass params to the running instance. I am trying to implement a way to save the params to my properties.settings.default.param1, so when the exe is called the second time, I check for an existing instance by name, and if I find it I restore it. before I restore it I save the value of my params, and in the activated event of my form, I grab that data and present it to the user. Well this is not working all the time, sometimes it works sometimes it does not...I'm totally open to new ideas on this process...

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    Windows Forms

  • Run Once and accept parameters
    C Christopher Thornburg

    I am working on a POS application that needs to run once, and then when called again it will just activate the current instance. So I have the run once code working but now I need to be able to pass params to the running instance. I am trying to implement a way to save the params to my properties.settings.default.param1, so when the exe is called the second time, I check for an existing instance by name, and if I find it I restore it. before I restore it I save the value of my params, and in the activated event of my form, I grab that data and present it to the user. Well this is not working all the time, sometimes it works sometimes it does not...I'm totally open to new ideas on this process... :doh:

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    C#

  • Printing
    C Christopher Thornburg

    I am new to .net and C# programming and I am writing a POS type of application that prints a receipt to a small receipt printer. I am having some problems understanding how to format my report for this little printer. It will work in a laserjet on a full sheet, but it won't print on the receipt printer. This is making me crazy!!! Anyway if anyone has any ideas I am so in need of help. Thanks!!! :doh:

    Christopher J. Thornburg Senior Systems Analyst Ideal Card

    C# csharp help tutorial
  • Login

  • Don't have an account? Register

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