|
Release or debug shouldn't matter. To add a reference to a dll (more easily done with a .NET dll), simply look for the references folder under the main solution for the project and right-click the references folder and then Add Reference. You will be asked for the location of the specific dll file.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
It does matter.
In case in my solution I have several projects (one exe and many DLLs), and the EXE is referencing the DLLs.
When I'm compiling as debug I want to reference the Debug output of the DLLs, and when I am compiling release I want to reference the Release output.
|
|
|
|
|
You should use a project reference, that will automatically use the output of the current configuration.
If you want to reference a debug/release version of a DLL that's NOT part of your solution (so you cannot simply use a project reference), then edit the .csproj file with a text editor, look for the reference and replace "Debug" in its HintPath with "$(Configuration)".
|
|
|
|
|
|
hi eveybody, i have a problem, sorry about my english.
when i trying to request for youtube video which i want to download by segments (for that i use addrange), the addrange method doesnt work.
if i try to download from other servers (other downloads) the segments idea work fine, it splits the download with addrange method to parts.
but for some reason from youtube it start from the begining until the file is complete downloaded, and not split the file to segments with "addrange". i think because the server send me an http respone of UDP. but i dont sure. i saw many downloaders who succeed download youtube videos with segments.
maybe someone here knows the problem and can help me.
thnx asaf. =]
my code:
HttpWebRequest REQ = (HttpWebRequest)WebRequest.Create(url);
REQ.AddRange((int)pos, (int)poscount);
HttpWebResponse RES = (HttpWebResponse)REQ.GetResponse();
Stream input = RES.GetResponseStream();
FileStream output = new FileStream(@"c:\temp" + f, FileMode.CreateNew);
byte[] buffer = new byte[RES.ContentLength];
int B;
while ((B = input.Read(buffer, 0, buffer.Length)) > 0)
{
output.Write(buffer, 0, B);
}
output.Close();
|
|
|
|
|
hi everybody
i want to set label text move like marquee in html
thanks for help
MD_NADA
|
|
|
|
|
Does it helps?[^]
"If you had to identify, in one word, the reason why the human race has not achieved, and never will achieve, its full potential, that word would be 'meetings'." - Dave Barry
|
|
|
|
|
The only HTML tag that exists is the <marquee> tag; take a look here for more info, although I would highly discourage use of it as its never been compatible with all browsers (only IE-based but I tried and it worked in Opera so perhaps other browsers started to include it when it started to become obsolete).
I'd recommend looking for a JavaScript ticker/marquee; something like this might help.
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|
|
i am sorry maybe my question was not clear
but i depended on this posts not for ASP.NET
i work with desktop application and i want the label text like marquee in web (HTML)
i hope it is clear now
thanks for ur reply
MD_NADA
|
|
|
|
|
Hi All
I have two panel in my form, my 1st panel contains 3 buttons and the 2nd has 2 buttons, 3 textboxes and a label.
I need to get all of these controls to save their settings into a file, I tried:
foreach (Control ctrl in this.Controls)
MyFile.ReadLine(ctrl.Text);
But "this" has only two controls (My two panels) and I can't see the other controls contained in panels.
I know I can use the foreach statement for each of my panels but if I have a panel in panel2? Do you have any idea to solve this using only one loop?
Regards.
While (true) { Human.isLearnable = true; }
|
|
|
|
|
Each Panel has a Controls property, no?
|
|
|
|
|
Yes it has but I don't want to have a foreach statement per panel.
Thanks
While (true) { Human.isLearnable = true; }
|
|
|
|
|
Well then, just find something else to do with your time. If it's not freakin' obvious what you have to do, and that "not wanting to" isn't a viable tack if you want to accomplish your goal, you shouldn't be a programmer. I bet you could find a job sweeping standing water off of sidewalks. Oh wait, that requires a little effort as well.
Oh wait! Try just staring off into space. That should keep your feeble excuse for a brain busy.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You can use something like this:
foreach (Form frm in Application.OpenForms)
{
foreach (Control ctrl in frm.Controls)
MessageBox.Show(ctrl.Text);
}
This contains two foreach statement but indepedent of how many forms you have, you can get their controls.
zafer
|
|
|
|
|
You're right, but I have only one form, my form contains two Panels and each Panels contains some Controls.
Your foreach statements give me my Panels only.
Thanks
While (true) { Human.isLearnable = true; }
|
|
|
|
|
Use two foreach statements. Like this:
foreach (Control oCtrl in this.Controls){
// Do something
foreach(Control oCtrl1 in oCtrl.Controls){
// Do something
}
}
"If you had to identify, in one word, the reason why the human race has not achieved, and never will achieve, its full potential, that word would be 'meetings'." - Dave Barry
|
|
|
|
|
It's possible only for two panels.
I wont be glad if i have 3 panels in my form and each one contains 4 panels inside...
however thanks.
While (true) { Human.isLearnable = true; }
|
|
|
|
|
In that case you can use conditional recursion by checking if current control has child controls.
"If you had to identify, in one word, the reason why the human race has not achieved, and never will achieve, its full potential, that word would be 'meetings'." - Dave Barry
|
|
|
|
|
Yeah, that's how I'd do it.
|
|
|
|
|
You guys are wasting your time. He probably thinks "recursion" is having to visit the toilet more than once in a 60-second time frame.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Each 'container' has it's own control collection so you have to loop each one of them. The most easiest way is to create a method for listing controls and call this method recursively passing the collection (for example List) as a parameter.
Pseudo-code would be something like:
GetControls(List controlList, Control parent) {
foreach (Control ctrl in parent.Controls) {
controlList.Add(ctrl);
GetControls(controlList, ctrl);
}
}
The need to optimize rises from a bad design
|
|
|
|
|
|
|
An unhandled exception of type 'System.StackOverflowException' occurred in me.
|
|
|
|
|
Sorry if I'm wasting your time...
I'm not an expert like you...
Yeah, I know Recursion, I'll use it...
Thanx
While (true) { Human.isLearnable = true; }
|
|
|
|