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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dafyddg

    Passing parameters between MVP views

    Hi all, Seemigly simple question but can't satisfy myself with the correct answer. Two MVP based views. On one view you click on an item in a list. Click a button and then the details of that item are displayed in another view. My question is how does the summary view pass through the state to...
  2. dafyddg

    Problem with the TextBox.AppendText method

    Well after a bit of digging, i have found out that the AppendText method does indeed have a bug in it. I tried to understand the nature of the problem but got lost while digging through disassembly of the dll. The one thing i did find is that if you do _txt_Output.SelectedText = text...
  3. dafyddg

    Problem with the TextBox.AppendText method

    JohnYingLing I know that using += is not the same as AppendText(). I'd actually be curious to see inside the AppendText method to see how it works and why it works the way it does. I don't suppose there is anywhere you can view the pdb file for the class is there? I would guess not.
  4. dafyddg

    Problem with the TextBox.AppendText method

    Nope, that didn't do anything sorry. Could you try running this code so you can see what i mean. Just create a simple windows form application with a button and a multi line text box and for the on click event of the button, put the following example code in for (int i = 0 ; i < 2000 ; i++)...
  5. dafyddg

    Problem with the TextBox.AppendText method

    Hi, I'm using a TextBox to provide output from a process that a utility i'm writing runs. Now i thought this would be a simple case of calling the AppendText method each time a new message was ready to disply. But no. For the first 1000 or so message all it fine, but then after a certain point...
  6. dafyddg

    Argument Exception when using Image.FromStream(MemoryStream)

    I have figured out the problem so i'll share it with you for future reference. Basically when i created the initial byte[] from the memory stream, i wasn't resetting the memory stream position to position 0. Therefore the bytes array was filled with '0's which prevented the Image.FromStream from...
  7. dafyddg

    Argument Exception when using Image.FromStream(MemoryStream)

    Well i can confirm that the data isn't been corrupted. I ran some tests which compared the byte array byte by byte, both before it was persisted to the database, and after it was loaded off the database, they matched exactly. The difference in size appears to be be caused by the FromStream...
  8. dafyddg

    Argument Exception when using Image.FromStream(MemoryStream)

    Changing the image does nothing. Something else thats quite interesting that i noticed while playing with this. If i use the original MemoryStream and pass it to the FromStream method, the image that results is actually bigger than the original image! I've tried modyfing it to not close the...
  9. dafyddg

    Argument Exception when using Image.FromStream(MemoryStream)

    No, its a JPEG, and i used the Image class to load the file initially so it must be supported. The odd thing is i've seen similar code to exactly the same thing and based my code on that, yet i get the error and they don't.
  10. dafyddg

    Argument Exception when using Image.FromStream(MemoryStream)

    Sorry, stupid of me to forget to mention that. It fails on the following line in ConvertByteArrayToImage method: image = Image.FromStream(ms);
  11. dafyddg

    Argument Exception when using Image.FromStream(MemoryStream)

    I've got a method that i use to convert a byte array into a System.Drawing.Image. The code looks like this: private Image ConvertByteArrayToImage(byte[] bytes) { Image image = new Image(); using (MemoryStream ms = new MemoryStream(bytes, true)) { ms.Write(bytes, 0, bytes.Length)...
  12. dafyddg

    Regular expressions problem

    Hi, I'm not sure if this is the right forum to be posting this in, if not could you please point me in the right direction. Basically i'm having trouble with layered data and header. (i'm probably using the wrong reminology here as i'm a bit of a noobe in this area). Below is a simplifcation...
  13. dafyddg

    Quick question about workgroup files

    Hi, If i create a workgroup file for a data base and then move both the database file and the workgroup file to another computer, will the database still work? I think it will but can't test it at the moment. Its just that i remember seeing somewhere about registry keys being created when the...
  14. dafyddg

    Force new Report for every 9 records

    Cheers for that dhookom, seems to work fine :)
  15. dafyddg

    Force new Report for every 9 records

    Hi, Is there anyway that you can force Access to print another report every 9 records? I have page header, invoice id header and a detail section with associated footers at the bottom too. For every 9 elements in the detail section i want to print the invoice id header section again. I can't...
  16. dafyddg

    Problem with the ' character is SQL INSERT statment

    Cheers for the tip mate, worked a treat :)
  17. dafyddg

    Problem with my query

    Have you tried using the distinct keyword? i.e. SELECT DISTINCT .... ?
  18. dafyddg

    Problem with the ' character is SQL INSERT statment

    Hi all, Having a rather silly problem with SQL insert in access Basically i build an SQL insert statment as a string and one the values i put into it is a string e.g. Dim test as string Dim SQL as string test = "Hello" SQL = "INSERT INTO Testtabel([Astring]) VALUES('" & test & "') This...
  19. dafyddg

    Problems with rounding up currency

    Thanks for the replies guys, Bob, that Round function worked a treat. Thanks
  20. dafyddg

    Problems with rounding up currency

    Hi, I've written an SQL query thats designed to increase all the values in a field by a specified percentage. This is the SET part of the query SET Rates.[Unit Cost] = Rates.[Unit Cost] * " & actualrate Unit Cost field is set to Curreny with 2 decimal places and actual rate is a number such...

Part and Inventory Search

Back
Top