|
Without knowing anything about how your searching for files, your threading setup, form and code details, ... There's nothing we can do to help.
All we know is, your searching for files and trying to display a progress form. Since there are about a dozen different ways of doing this, it's a bit hard to help you with a description of "My code doesn't work, help!"
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
As Dave said its hard to help you without more details. But my guess would be you do you operation in the same thread as the GUI. If you do this the GUI doesn't get the time to repaint itself. If this is the case you have two options:
1. Make your search in a seperate thread (better).
2. Try to call System.Windows.Forms.Application.DoEvents() regulary - but not too often (faster to implement but not very clean and probably slower).
|
|
|
|
|
My search and the GUI were in a single thread. Thanks for your help and sorry for a lack of more information (to both you and Dave), but I think you have given me the direction in which to go in to solve my problem.
John 3:16: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life."
|
|
|
|
|
I'm working on an image processing application and I was convinced to do this in C#. I am not very familiar in this language and my problem is that I don't know how to display multiple images in the same workspace. I thought this could be solved with PictureBox. Could anyone give me suggestions? I thank thee in advance.
|
|
|
|
|
Its not very clear what exactly you try to do. You can put several pictureboxes onto one form and display one image in each of them. If you want to show several images dynamically you can either add one PictureBox for each image at runtime or have a look a this article.
|
|
|
|
|
I wonder if it is possible to show more than one image in a picturebox.
In Java for example it is easy to display multiple images at specific coordinates in the same box at the same time.
|
|
|
|
|
No the normal PictureBox shows only one image. If you need this you will have to do it yourself. But its easier as you might think. Just create a new class inheriting from control, override the OnPaint method and draw your stuff:
public class MultiImageControl : Control {
private Image[] _images;
private Point[] _points;
public MultiImageControl(Image[] images, Point[] points) {
_images = images;
_points = points;
}
protected override OnPaint(PaintEventArgs pea) {
for (int i = 0; i < _images.Length; i++)
pea.DrawImageUnscaled(_images[i], _positions[i]);
}
}
Note that this will not be accessible in the designer. For this some more work is needed.
|
|
|
|
|
I need a concept about developing web MP3 web application (Play sound.rm.wav online with secure way..)
respectfully yours...
Ameen Abudbush
|
|
|
|
|
i try to request a page with posting some html code but it always throws System.Web.HttpRequestValidationException
with the message "A potentially dangerous Request.Form value was detected from the client (UEventHtmlFrameworkAdmin1:txtarHTML="
|
|
|
|
|
Getting the following error when trying to switch from Code to Designer for any smart device project:
Unable to cast COM object of type 'Microsoft.VisualStudio.DeviceConnectivity.Interop.ConManClass' to interface type 'Microsoft.VisualStudio.DeviceConnectivity.Interop.ICcServer'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{EA537AF4-2226-4D26-BBC0-9CF3A82749A5}' failed with HRESULT: 0x80004002 (No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))).
Any help appreciated.
|
|
|
|
|
|
Thanks LongHC - although I sense it has something to do with my configuration of VS2005, I reported it as a bug.
|
|
|
|
|
hi when i open the source code linkit will not save the program on myy computer plzz tell me why
|
|
|
|
|
|
When you click the link for the source code, click Save, not Open!! Save the .ZIP file somewhere, then open that saved file.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
I am currently writting a program that read a file which contains some information. I will enter a loop that will loop 10000 or even 25000 times(depending on the number of lines)to enter these information.
Now, is it a good practice to open the connection to the database and close it within the loop.So it will be opened and closed each loop.If not, what is the best solution?!
I mean, will it affect the time performance??
My database is MS Access 2003
Thanks
|
|
|
|
|
I think it would. I'd just open the connection right before you start the loop and close it afterwards.
|
|
|
|
|
Thanks I will try
Q:Where can I find a reference that shows me when I should use the executeQueri() method and when I shold use the execute() method of the database?
regards
|
|
|
|
|
Sorry I dont know what exactly you mean. Do you refer to the different Execute functions the IDbCommand interface has? If yes then look here.
|
|
|
|
|
hi,
i want know how to work wit my mail server programmatically
like adding new mail domain,deleting a mail domain and so on?
|
|
|
|
|
It's impossible to tell you anything without knowing which mail server your using! They're not all the same you know...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanks,
so i have to negotiate with my administrator inorder to make my job,i thought all the servers have the same rules,if not tell me about it?
|
|
|
|
|
All POP3 and SMTP servers have to follow the same mail encoding and transfer protocol rules. Most of them do, but there are no specifications to follow when your talking about administering, or management, or a mail server. They all have different interfaces, configurations, management tools.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have been trying to Manipulate INPUT TYPE=File Value
in a web page through automation of the internet explorer using c#.Net but i don,t seem to get it write.
If any one out there has an idea on how to go about it, will be grateful
|
|
|
|
|