|
hi,
Today just isn't my day.
Can anybody please tell me how you put a Double Quote into a string. I need this to send a command in Quotes to command Prompt Like this
"C:\Program Files\fop.bat"
Thank you in advance
He who laughs last...
|
|
|
|
|
textBox.text="\"C:\Program Files\fop.bat\"";
same logic can be used in ur case also .. try it
cheers
Akhil
|
|
|
|
|
Thank you. Your way works.
enjoy your day
He who laughs last...
|
|
|
|
|
string s = @"C:\Program Files\fop.bat";
|
|
|
|
|
Thank you i'll try it.
He who laughs last...
|
|
|
|
|
_Bao_ wrote: @"C:\Program Files\fop.bat";
That is wrong, I'll leeave it to you to discover why that is
|
|
|
|
|
Mainly because it doesn't answer the question.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
IOW a wasted CPU cycle ?
|
|
|
|
|
In my program, I display an image from a file using the .FromFile method in a picturebox. However, when its being displayed I cannot delete the file, either within the program itself, or windows explorer due to it being in use by the program. Is there any way to give up access to the file so it can be deleted if neccessary. Surely once the image is loaded into the picturebox it is now in memory and does not require further access to the file?
If there is no easy method to simply give up access to a file, is there a way to display the picture that will not cause this to happen? Maybe from a thread or somesuch?
Thanks for any help.
|
|
|
|
|
Use this one:
FileStream fileStream = new FileStream(@"D:\05_jpg.jpg", FileMode.Open, FileAccess.Read);
this.pictureBox1.Image = Image.FromStream(fileStream);
fileStream.Close();
|
|
|
|
|
Thanks a lot, works fine using this method.
|
|
|
|
|
Is there a simple way to find all the objects in a solution that should call Dispose() or the using() {} statement?
I have inherited a large project that has resource and handle leaks everywhere, is there some automatied tool that can help track down the .NET classes that use unmanaged resources?
.............................
There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life.
Fiat justitia, et ruat cælum
|
|
|
|
|
You might want to have a look at FxCop[^]
|
|
|
|
|
Try the MS CLR Profiler, or the ANTS Profiler trial
|
|
|
|
|
Hi, Does anybody have a great CodeSmith template which creates nice Business Object using MS Enterprise Library?
Wesley Burger
083 518 7135
|
|
|
|
|
Hello!
I'm developing multimedia application to play audio and video in C#
so, based on your experience what is the best way to play audio and video in c#?
i need something that works -- bulletproof --! and can do some simple effects
on audio?
Thanks in advance
|
|
|
|
|
|
Hello CP,
I've got a huge problem with my VS .NET 2005.
I tried to move al my window forms to a folder I created in my project.
When I dragged all the forms to the folder, a few were torn apart.
Look here for an image: http://test.jellemampaey.be/problem.jpg
How can I link the .resx and .Designer files to the corresponding form back again?
TNX TNX TNX!
-- modified at 8:41 Monday 29th May, 2006
|
|
|
|
|
Have a look into the csproj file. Entries depending on another have an entry like that:
DependentUpon = "ColoredComboBox.cs"
You can manually add this to correct your problem.
|
|
|
|
|
|
Error "Object not set to instance of object"
|
|
|
|
|
The service System.Windows Form.Design.IEventHandleService already exists in the service Container
|
|
|
|
|
Hi.
How do you force an event to execute from a private void method????
I've tried object.event..... but the event is not accessible like that.
Thanx in advance.
He who laughs last is a bit on the slow side
|
|
|
|
|
For example, if you have a button :
this.button1.Clicked += new EventHandler(button1_Clicked);
private void button1_Clicked(object sender, EventArgs e)
{
MessageBox.Show("Hello World");
}
then you can call your event with :
button1_Clicked(this, EventArgs.Empty);
or
button1.PerformClick();
|
|
|
|
|
Thanx a mil, worked perfectly
He who laughs last is a bit on the slow side
|
|
|
|