• Advertisement

JimboC

Member
  • Content count

    438
  • Joined

  • Last visited

Community Reputation

152 Neutral

About JimboC

  • Rank
    Member

Personal Information

  • Interests
    Art
    Audio
    Design
    DevOps
    Production
    Programming
    QA
  1. win7 deal... is this for real?

    You could call 1-800-RU-Legit and ask if Microsoft has received any complaints about the site.
  2. It was the second example you put in there. Thanks a bunch. And I'm checking for any type of malicious input as the user types into the textbox. If they do that I throw up an error message, drop them out of the program and drop an automated email to their supervisor with the offending entry included. It was requested I do things that way for reasons I'm not privy to.
  3. When I try to update my MSAccess database using the code below, I get the following error: System.Data.OleDb.OleDbException: No value given for one or more required parameters OleDbCommand DeviceDB_Command = new OleDbCommand(); DeviceDB_Command.CommandType = CommandType.Text; DeviceDB_Command.CommandText = "UPDATE Manufacturer SET Manufacturer = '" + Edit_TB_Man.Text + "' WHERE Garbage-Index = " + GarbageNum; DeviceDB_Command.Connection = DeviceDB_Connection; DeviceDB_Connection.Open(); LinesUpdated = DeviceDB_Command.ExecuteNonQuery(); DeviceDB_Connection.Close(); As near as I can tell the code is correct and the UPDATE command is what it should be. Also, the table name is Manufacturer and the field name is Manufacturer. I thought that might be the issue but changing either makes no difference. Edit_TB_Man is a text box (yes, I'm doing checking for quotes and whatnot). GarbageNum is an INT that has the correct number for the record to be updated. Any ideas what I'm doing wrong?
  4. Found the issue. I have a flag that suppresses redrawing in certain circumstances and it seems I forgot to set that flag in another part of the program. That's for the input though.
  5. Thanks for getting back to me. I don't see a PaintBackground event to override, but I tried over riding BackColorChanged, BackgroundImageChanged and BackgroundImageLayoutChanged and I'm still having the same issue. Was one of those events the one you were referring to?
  6. The program I'm writing is a Windows app using forms. On the main form there is a panel and I add all sorts of other controls to this panel such as labels, other panels, pictureboxes, etc. Then I connect the groupings using lines drawn on the main panel using the drawing functions. Everything works fine until the window is resized, minimized or the panel is scrolled. Opening other windows, moving other programs over the top of mine, etc don't seem to be an issue. But when my programs window is resized, the lines aren't redrawn from the code I'm calling from the Paint event. I've tried duplicating the paint event code into other events but the results seem to be the same. I can see the lines being drawn and then erased immediately afterwards if it's an even I can call a lot (like scrolling the panel). I've tried invalidating the panel in a number of different places in the code and they don't seem to help. Can someone point me in the direction of what else might be going on? I have a feeling there's some other event firing but I can't seem to figure out what it is.
  7. Problem with treeView

    That not only took care of the exception, but that also cleared up a few other minor glitches that I was causing by using the Mouse_Down event. Thank you so much! [Edited by - JimboC on September 14, 2009 6:59:11 PM]
  8. I've got a program with a treeView in it. Everything works correctly except for the fact that the program throws an exception the first time you click on the treeView. Here's the code that's causing the issue: private void Add_Device_Mouse_Down(object sender, EventArgs e) { try { TreeView Temp = (TreeView)sender; string Test1 = ""; string Test2 = ""; Test2 = Temp.SelectedNode.Text; If I put anything in the program that interrupts it for a second like a message box or something like that, it's fine. If not I'm getting a message that says 'Object reference not set to an instance of an object.' I've tried adding a pause with Thread.Sleep(10000) and I've also tried using the treeView directly (Test2 = treeView1.SelectedNode.Text) but neither has made a difference. Seems anything that doesn't require some kind of user intervention doesn't do the trick. Any ideas what I'm missing? Edit: Using C# 2008
  9. Selling a program to a company

    Thanks for the input guys. Owl, that's it exactly. Without going through my current employer I wouldn't have any access to the people at Vonage or the other companies that are possibly interested as well. So I might sell 100 copies off the internet, but Vonage will be instantly a couple thousand licenses. Plus Vonage is talking paying for the software monthly rather than buying it outright and I believe the company I'm working for is going to add it into the contract that's being expanded already. So it's likely that I'm going to be getting residuals for the next 3 or 4 years from this. I'm going to meet with the higher ups here and see what they're suggesting. Not going to agree to anything or sign any contracts today. I have a lawyer for some other legal dealings and I made an appointment to see him tomorrow so I'll see what he says about the deal. [Edited by - JimboC on September 2, 2009 10:23:40 AM]
  10. I work in a call center that sub-contracts support and customer service agents to large corporations. I wrote a program for the company I work for expecting it to be a simple little utility that would help new people when they hit the floor. Well, getting input from the other agents and whatnot the program has grown into something that is very powerful and useful. So useful in fact that Vonage, the company I'm subcontracting for, is interested in licensing the program to implement in all their call centers world-wide. The way the deal would work is that I would license rights to the program to the company that signs my paycheck and they will be licensing the program to Vonage. In return I'm going to get a percentage of the total fee that Vonage is paying my company. I've put in an easy 300 hours of my spare time into the program over the last 6 months - writing the program exclusively on my time using my equipment and software. The program is roughed in and 85% feature complete but I'm probably still going to need about another 100 - 150 hours to polish, bug fix, and generally get the program working the way it should. Since Vonage is now interested, I'm facing much shorter timeframes than I was expecting and the company is going to take me off the phones for the next 2 weeks (80 hours) so I can work on it at work and get it done faster. So tomorrow I've got a conference call with Vonage and a meeting with my company's CEO to work out the licensing information (and I only found out about it this afternoon). My intention was to sell the program over the internet for $50 a copy. But this is a completely different ball of wax now and the company I work for is going to want exclusive rights to distribute the program. What's a fair percentage for me to ask for as my cut? Also, any recommendations on how to protect myself before I finalize the deal?
  11. I am such an idiot. Seems I had changed the path for the release build so it was looking at the wrong version of the database. Don't remember doing that, but that's definitely what the issue was. And, yes, I'll be adding protections against the ' being entered in a text box.
  12. Got a weird issue that's been kicking my but all day. When I run the following code in Debug mode, everything works and the data gets written to the MS Access database. But when I switch to Release, I get a message that says "The INSERT INTO statement contains the following unknown field name: 'Emulator'. Make sure you have typed the name correctly and try the operation again." string Write_To_DB1 = "INSERT INTO Device([Type-ID], [Cat-ID], [Image], [Man-ID], [Model], [Description], [Guide], [LED], [Emulator], [NumPorts]) VALUES( " + CB_Add_DevCat.SelectedIndex + "," + CB_Add_DevSubCat.SelectedIndex + ","; string Write_To_DB2 = "," + CB_Add_Manufacturer.SelectedIndex + ",'" + TB_Add_ModelNum.Text + "','" + TB_Add_Desc.Text + "','" + Guide + "','" + LED + "','" + Emul + "'," + NumPorts + ")"; DeviceDB_Connection.Open(); OleDbCommand DeviceDB_Command = new OleDbCommand(Write_To_DB1 + PreviewImg.Image + Write_To_DB2, DeviceDB_Connection); // Convert image to bytes for db Image_Bytes = image_To_ByteArray(PB_Add_PreviewImg.Image); OleDbParameter Param = new OleDbParameter("@Image", OleDbType.VarBinary, Image_Bytes.Length, ParameterDirection.Input, false, 0, 0, null, DataRowVersion.Current, Image_Bytes); DeviceDB_Command.Parameters.Add(Param); // write to Device table DeviceDB_Command.ExecuteNonQuery(); Any ideas?
  13. Mobigame's Edge pulled because of the word Edge

    I can understand trademarks and see the need for them. I think they went overboard in protecting their trademark in this case, but that's what corporations do. It's patents that really annoy me. The fact that companies can demand royalties on ideas that often aren't even their own is just insanity. The fact that you can't implement 3D audio without stepping on a patent from Creative Labs is complete BS. There were other cards that did 3D audio first, but their lawyers patented the concept and now they can force the whole world to use their proprietary tech. That's nonsense.
  14. good free games ... not exist

    I've had an extraordinary amount of time sucked into Evony (www.evony.com) recently. Kind of slow since resource gathering is pretty much real time, but it's actually a lot more sophisticated than it first appears. But don't expect to see the boobs from the ad - you never get a closer view than if you were in an airplane overhead.
  15. Walter Cronkite 1916-2009

    He was definitely an icon. News just hasn't been the same since he was on. Sad news indeed.
  • Advertisement