Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Hokkie

  1. Hokkie

    parsing numbers in a specific Locale

    Thanks, Dan. I've chosen to get rid of the thousand-separator and replace the decimal point/comma with a point, using the replace function. So that "150.000,00" becomes "150000.00". parseFloat handles this correctly and it solves my problem, albeit not very satisfactory or elegantly. I'm...
  2. Hokkie

    parsing numbers in a specific Locale

    Hi, I need to parse a float from a textbox that may be formatted like "150000" or like "150.000,00"--Dutch Locale. If I use parseFloat on "150.000,00" what I get is 150. What I need is 150000. Using Locale in parsing would be good, but parseFloat doesn't take Locale as a parameter. Does...
  3. Hokkie

    asp:image has borders that I can't get rid of

    The problem was, indeed, a css style that put a 5px margin around all pictures, hidden away somewhere in a css file. Thanks everyone for their effort. Hokkie
  4. Hokkie

    asp:image has borders that I can't get rid of

    Thanks everyone, I will try and sort out the css. It's a legacy application that has half a dozen css files but I guess I was looking for ways to avoid having to plow through all of them... Hokkie
  5. Hokkie

    asp:image has borders that I can't get rid of

    Hi, I have a asp:image control in one of my user controls and it loads a source depending on the page it is on. The image control is in a table cell, in a single-row table that has its width set to 950. The source of the image control is also always 950 pixels wide. Whatever I try, asp.net...
  6. Hokkie

    class does not have a suitable Main method

    Uhm... never mind. Went a little overboard with commenting out old code, including a Main method in my startup project. (-: Thanks for your time, anyway. Hokke
  7. Hokkie

    class does not have a suitable Main method

    Hi, My Windows application has a startup object defined in the properties of its project. This startup object has a public constructor that has a simple singleton implementation. The application has been running fine for almost a year. Right now I'm in the middle of changing database-access...
  8. Hokkie

    changing text on Select ButtonColumn in Grid...

    Ok, thanks Jbenson001. How do I get a reference to the button? I tried casting the e.Item.Controls[0] to a ButtonColumn but got an error.
  9. Hokkie

    changing text on Select ButtonColumn in Grid...

    Hi, In the ItemDataBound event of my datagrid, I want to change the text on the select ButtonColumn for some rows, depending on the value of some of the cells in that row. The text I want to put on the ButtonColumn is not always the same and also depends on those same values; basically it will...
  10. Hokkie

    datagridview doesn't delete from database file (mdb)

    What's the code behind the delete button? If the row is deleted from a DataSet, is the database updated with those changes? Do adding and editing a row work?
  11. Hokkie

    &buttontext hot key malfunction in forms

    Right-click your desktop --> Properties; Choose 'Appearance', then click 'Effects' button; Last checkbox reads 'Hide underlined letters for keyboard navigation until I press the Alt key'. Just the perfect place where one would look for it. But I never noticed that when run from VS Studio the...
  12. Hokkie

    Iterate over Collection Controls

    Or, if (ctrl is TextBox) question_txt.Text = ((TextBox)ctrl).Text;
  13. Hokkie

    Writing to MS Access using C#

    You do need to specify which table you add a row to, like objDataSet.Tables[0].Add(objRow); also, don't forget to call the AcceptChanges method of the dataset, like objDataSet.AcceptChanges(); But I'm not sure if this is required to propagate the changes (added rows etc.) to the dataAdapter...
  14. Hokkie

    period in userid for mysql connectionstring

    Hi Malay, no I didn't but I have now. Thanks for the link. The article is about connection to MySql using PHP scripting language rather than through C# code, so not directly helpful but at least it got me thinking about using php scripting as well. Anyway, I think I'll experiment a little more...
  15. Hokkie

    period in userid for mysql connectionstring

    Hi, I need to connect to a mysql database with the mysql connector from mysql.com. My webserver admin has given me a logon name and password to connect to the database, and for some reason there's a period in the logon name: "hoorspelfabriek.nl" When I try to connect, I get the error message...

Part and Inventory Search

Back
Top