|
thanks for your replay.
but if you had read some of the articles that are uploaded to this site you will notice that there are a connection between them.
especially with autocad 2006
-- modified at 3:16 Friday 31st March, 2006
|
|
|
|
|
Hi!
I've got a problem (obviously)...
Here's the thing I wanna do:
I have a directory with a lot of images (from 10 up to about 1000).
All I want is, to see the thumbnails of the pictures and, in case of a double-click, open it.
Thats it...
Shouldn't be that hard - or so I thought.
.NET doesn't have any control that can do it; at least I didn't find anything appropriate.
I tried to implement an IE browser and set the URL to "C:/example/pictures".
It works fine, but I don't see the thumbnails - just the filenames.
I can change the View to thumbnails manually, but that's not what I want.
As soon as I set a directory, it should show the thumbnails.
Is there a way to tell the browser he should show me the thumbs and not the detailed list?
I also looked for custom controls which are able to show thumbnails.
I found three kinds of websites.
There are the sites which have awesome looking controls (altough I don't know about the performance), but you have to pay for them.
Then there are the custom control tutorials, but I didn't find anything helpful.
At last (but not least), there are some free controls, but they aren't capable to do the thing i need to.
And now I'm out of ideas...
Do you guys have helpful tutorials, hints, links or ideas about how to solve this problem?
Thanks!!
katatonius
|
|
|
|
|
|
Hi!
Thanks for the help!
I tried to implement it, but it seems harder than I thought.
Also, the demo-project uses over 100MB of memory if I add about 500 small pictures.
Isn't there a way to just change the "View" (I think it's called view, as I work with the german version) of a webbrowser-control to Thumbnails???
Thanks,
Manfred
|
|
|
|
|
Hello...
I'm working on a project that requires encrypting some files and deliver them to users that uses an application that I developed to decrypt them, read them and then when the user exits the application those decrypted files are deleted.
The problem here is that the application that decrypts data stores the decrypted files on the user's hard disk... if the users figures out the path of the decrypted files he can copy them and I don't want him to do that
The Question is:
Is there any way to do that decryption process without storing the decrypted files on user's hard disk?!!
Thanks in advance.
|
|
|
|
|
Do you have sample code that produces the decrypted file on disk?
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
I'm using the code from http://www.codeproject.com/csharp/cryptosafe.asp
|
|
|
|
|
There is a part that says:
fout = new FileStream(outName, FileMode.Create, FileAccess.Write);
Replace it with:
MemoryStream mout = new MemoryStream();
And also, replace:
while(true)
{
len = decStream.Read(bin,0,bufLen);
if (len == 0)
break;
fout.Write(bin,0,len);
rdlen += len;
fireMessage(inName,(int)totlen,(int)rdlen);
}
with:
while(true)
{
len = decStream.Read(bin,0,bufLen);
if (len == 0)
break;
mout.Write(bin,0,len);
rdlen += len;
fireMessage(inName,(int)totlen,(int)rdlen);
}
Remember to carry the variable mout around to have access to the decrypted data. I also suggest that you set all mout bytes to zero, so when the program exits, the decrypted data does not stick in memory:
<code>
mout.Position = 0;
for (int i = 0; i < mout.Length; ++i) mout.WriteByte((byte)0);
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
Dear Michel,
Thank you very much. I'll try this up and will inform you with the results
Thank you again.
|
|
|
|
|
Dear Michel,
How can open the retuned MemoryStream Object ? in my case this object is a video file and I want to play it in media player .. the media player needs a path .. how can I get the path ?
Thanks in advance .
|
|
|
|
|
The MemorySTream object resides in memory, unlike a FileStream, which is on disk. If the player needs a path, you are screwed, because you will need to have the decrypted data on disk.
Read the player's documentation to see if there is a possibilty of streaming to it.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
Hi,
Is there any way for creating and removing the ODBC DSN entries using .Net?
Please let me know about the namespaces or classes that are available(if any) for doing this operation.
Thanks,
King
|
|
|
|
|
I have a really strange problem in my ASP.NET app.
the situation is really usual
Do some changes to DB and then refresh data for client
---
SqlCommand myCmd = new SqlCommand ('UPDATE TBL SET ....');
MyTypedDataTable tbl = MyTypedTableAdapter.GetData();
--
so everybody have done something like this. update and refresh.
BUT! Last GetData() returns table without any update.
If I will add Thread.Sleep() between this to lines of code, then everything is working fine.
Do anybody has any ideas why this happens?
all these components are default without any "starnge" settings. there is no cashing and no async calls. just normal SqlCommand and SqlTableAdapter.
|
|
|
|
|
Why don't you make changes to the data in the TableAdapter then use TableAdapter.Update to send the changes back to the database?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Hi all:
In VS2005.NET, when I select an item from a dropdown list(combobox), I want the detail view to display the corresponding content of the row. I added the following code into the SelectedIndexChanged event of the combobox
DetailsView1.DataBind();
But this doesn't work. Does anybody know how to achieve this functionality please?
Thanks in advance!!!
Asura
|
|
|
|
|
Hi,
How can I copy a file from PC to Pocket PC Emulator? (I'm using VS .NET 2005)
Thanks much,
Hung.
Hung
|
|
|
|
|
You use the remote file viewer and select the emulator that is running.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Can you explain more details! Thanks!Hung
Hung
|
|
|
|
|
Run the application so that the Emulator is running.
Goto:
Program Files->Microsoft Visual Studio 2005->Visual Studio Remote Tools->Remote File Viewer
It will ask what you want to connect to, choose the Emulator.
You can copy files back and forth in the same way you use Explorer.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
mmmm, What if I wanna do this in Visual Studio 2003??
In its directory I only found "Visual Studio .Net tools" which doesn't contain "Remote File Viewer"
|
|
|
|
|
|
Hi,
I'm writing a Chess program. I have a problem with inheritance in .NET:
I think the Queen can inherit both Rock, Elephant because the queen move like the rock + elephant. But .NET does not support multi inheritace.
So, what must I do to implement the move() function of the queen?
Thanks in advance!
Hung.
Hung
|
|
|
|
|
Use interfaces
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
But both Elephant and Rock are "class". I can't change it to "interface" because some object of those need to be created.
Hung
|
|
|
|
|
The interfaces would declare the functions. You would implement the functions in the class that derives from the interface.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
-- modified at 6:40 Thursday 30th March, 2006
|
|
|
|