|
That [\\$] was it! Thanks, I would have never thought of that.
|
|
|
|
|
You may be able to just use Decimal.Parse if all you have is a money string.
File Not Found
|
|
|
|
|
hi People
I want to do this :
In the toolStrip i have one button and if i click that button textbox and butoon2 appear in toolStrip .Then if i click button 2 textbox disappear..
thx
nemanja
|
|
|
|
|
Trick question?
private void toolStripButton1_Click(object sender, EventArgs e)
{
toolStripButton2.Visible = true;
toolStripTextBox1.Visible = true;
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
toolStripButton2.Visible = false;
toolStripTextBox1.Visible = false;
}
|
|
|
|
|
Hi people
Can you tell me how to find a word in rich text box ?
thx
nemanja
|
|
|
|
|
|
|
I have a program that the user double clicks and image and it shows in an image viewer (my own creation). However after closing the image viewer I can no longer delete the image from the file system. It says the File is in use. I have tried Disposing and Garbage Collecting, even Thread.Sleep to wait, but to no avail. How can I get the image viewer to relase the file even though it is long since disposed of?
Actually I think it might be a waiting issue since I got it to work in Debug mode but it continues to throw the error in Release mode.
Thanks for any ideas.
Brent
|
|
|
|
|
I'd check that sure AppName.vshost.exe isn't still running in Task Manager.
|
|
|
|
|
try a filestream. Something like this:
oFileStream = ne FileStream(FilePath, FileMode.Open);
oImage1 = oImage.FromStream(oFileStream);
oFileStream.Close();
oFileStream = null;
|
|
|
|
|
This seems to have fixed it. I was doing Image.FromFile(filename) which appears to lock filename as long as the image is around somewhere.
Thanks
Brent
|
|
|
|
|
Yes, this is a known issue. I tend to wrap image loading into a class ( which I need to do often as I am also reading non supported formats ) and I will read the image, copy it to a new image, and Dispose of the one I loaded, to get around this issue.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
better yet:
oFileStream = new FileStream(FilePath, FileMode.Open, FileAccess.Read);
Luc Pattyn
|
|
|
|
|
Hi,
I added a web reference and I wanted to dynamically get the link. So I thought to store it in the app.config as shown below. When I tried to read it from the below shown C# code it returns a null value.
app.config
<?xml version="1.0" encoding="utf-8" ?>
<appSettings>
<add key ="ABC" value ="http://localhost:9080/abc/services/abcWs"/>
</appSettings>
C# code
string WsUrl = ConfigurationManager.AppSettings["ABC"].ToString();
Does anybody know how to fix it?
Any help would be great!
Rgds,
Sampathg
|
|
|
|
|
I think that if you are writing a Web Services you need a Web.config not App.Config. Try to rename the file to Web.config
Davide
|
|
|
|
|
Davide,
First of all thanks a lot for helping..
I tried that too. But the result is the same.
Any other suggestions?
Rgds,
Sampath
|
|
|
|
|
I have created an application that displays images and I want to add the possibility to delete files directly from the app. To have the file not deleted from the system directly but have it moved to the trash bin, I utilized the ShellAPI (SHFileOperation).
So far, the implementation should be okay: when I try delete an "small" file (~200k) I am asked if I really want to delete this file and after confirmation it has moved to the trash bin.
However, "large" files (~4MB) cannot be deleted but I get the Windows error message: "The file cannot be read from the file system" (something like that).
I am pretty puzzled, since I have no clue why my implementation works for small files but not for large ones.
Any ideas???
|
|
|
|
|
Is the recycle bin set to not accept files larger than a certain size?
|
|
|
|
|
Hi everyone,
I have been looking for sometime now for the different methods for capturing a live stream webcam image from a webcam and displaying it on a webpage. I have heard somewhere that ASP can be used to incorperate the Visual C# code onto the page. Please can someone help me with this.
Kind Regards
Teeman
|
|
|
|
|
ASP and C# have nothing to do with each other . ASP.NET uses C#, and you can put C# code in your page, but it will still run on the server. You can write a .NET control and host it in a page, that would mean that your users needs to allow it, and install the framework.
The pages I saw when webcams were first the rage ( Wow - a street corner in Hollywood !!! ), would just use javascript to update the page every few seconds. If you want a live stream, then you're going to need to embed a control, I would expect.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hello All:
I've create a simple project using c#.net off Visual Studio.
I would like to deploy this project so the user can install this application on another machine.
Could anyone please point me to the right direction?? Thanks
|
|
|
|
|
|
FILE -> NEW -> New Project -> Setup and Deployment Projects
|
|
|
|
|
|