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...
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...
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.
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++)...
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...
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...
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...
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...
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.
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)...
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...
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...
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...
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...
...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 as 1.01 for 1% increase.
The problem i'm...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.