|
You should use a radio button group for this, as that is the purpose of that control. If using Windows Forms, any radio button that is selected will automatically deselect any other radio buttons in the same enclosing container (such as a group box or panel).
...or a simple ListBox as lisan suggested.
“Time and space can be a bitch.”
–Gushie, Quantum Leap
{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’) Built with home-grown CodeProject components!
-”-”-
|
|
|
|
|
i am beginner in c# language .i want to audio compression using Directx capture ,but now created Avi format log but i want to create .mp3 format file,i used
cap1.AudioCompressor = (myFilters.AudioCompressors[2]);
this coding and using MPEG Layer3 codecs but give more Exception
anish..
|
|
|
|
|
Windows does not come with an MP3 compressor.
What codec are you using? What exception?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
thank u for replay..
i used lame mpeg codecs , But i found how to commpression wma format ,so i need proper mp3 codecs software ..
regards
anish
|
|
|
|
|
Hi,
I want to copy only CSV files from a folder. I just want copy files tht only modified within one hour.
Example time now 11pm. I only want to copy files tht had been available in folder from 10 am to 11 am.
I tried using following codes but it does not work as i requested....
string Folder = Server.MapPath("SaveFile");
string CurrLocation = "c:\\Current";
string[] List = Directory.GetFiles(CurrLocation, "*.CSV");
foreach (string CSV in List)
{
FileInfo CSVInfo = new FileInfo(CSV);
if (CSVInfo.LastWriteTime < DateTime.Now.AddMinutes(-60))
{
CSVInfo.CopyTo(Folder);
}
}
regards,
usha
|
|
|
|
|
If (CSVInfo.LastWriteTime < DateTime.Now.AddMinutes(-60))
In this line change the symbol < with this >.
Regards,
Atul Rane
|
|
|
|
|
Hi all. This is a bit of a weird question, but I actually need to determine what assembly a delegate's definition resides in. That is, if an instance of a delegate is passed-into my class, I need to determine where the code that that delegate represents comes from.
Any thoughts?
“Time and space can be a bitch.”
–Gushie, Quantum Leap
{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’) Built with home-grown CodeProject components!
-”-”-
|
|
|
|
|
Ah, looks like I can do it with:
theDelegate.Method.Module.Assembly;
That wasn't so hard as I was expecting.
“Time and space can be a bitch.”
–Gushie, Quantum Leap
{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’) Built with home-grown CodeProject components!
-”-”-
|
|
|
|
|
|
Hi there.
I want to send and get a web request by C# (get and post)
Which classes do we need to use ?
Thanks an advance.
|
|
|
|
|
|
logan1337 wrote: System.Net.HttpWebRequest, though it may be obsolete now
No, it's not obsolete, but the WebClient class has been added which contains methods that wraps common uses of the WebRequest classes.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
You can use Request.QueryString() and Request.Form() to get things from get and post (use the overloads to get specific things).
I'm unsure of the namespace that the Request object is in. I believe that you should be able to use it in a web project without adding any references, but I may be wrong.
|
|
|
|
|
The WebClient class contains convenient methods to do web requests. If you need more advanced aspects, like controling the timeout, you need to use the HttpWebRequest class directly.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Yes HttpWebrequest is the chose one. It has got all the function a programmer may need. From SSL requests to the regular http form posts.
|
|
|
|
|
Hi,
What does it mean when you have:
<br />
for ( ;; ) {
Is it an infinite loop?
Cheers,
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
Click here to view my blog
|
|
|
|
|
|
Because you have to wait forever to tell for certain if a loop is infinite: he hasn't got the time.
Steve
|
|
|
|
|
|
That gets a +5 from me :P
|
|
|
|
|
Stephen Hewitt wrote: Because you have to wait forever to tell for certain if a loop is infinite: he hasn't got the time.
Consider that an eternity for the computer is a short time for a human. 1 000 000 000 000 000 iterations would only take a week or so...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
MarkBrock wrote: Is it an infinite loop?
Yes.
It equals with :
while (true) { ... }
|
|
|
|
|
It is infinite loop. But I would not do that if I where you, I would probably use Threading.Sleep if the purpose is to wait for an event to happen. infinite loop keeps utilize a lot of cpu...
|
|
|
|
|
Infinite loops are legitimate for certain things, especially when implementing threads and stuff that need to continuously run and wait (i.e. actually block, thus not using the cpu) for things.
Personally I prefer while ( true ) because it's more obvious what it is.
“Time and space can be a bitch.”
–Gushie, Quantum Leap
{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’) Built with home-grown CodeProject components!
-”-”-
|
|
|
|
|
for ( ;; ) is the recommended way to do an infinite loop.
Steve
|
|
|
|