|
Any particular kind of USB key? Are you talking about a specific device? A thumbdrive with a particular file on it? If it is really that urgent I would suggest you give more information so that people don't have to do a lot of work to try to help you.
|
|
|
|
|
Hi all,
I need to show a progress bar with % of loading while uploading a file.
Can any one help on this i am using VS2005.
Thanks in advance,
Balu.
|
|
|
|
|
If you're using your own code to do the actual upload, then you can write it to provide this information. If you're using a single method call and it does the upload for you, you've got no way on getting any progress information unless the class/method you use provides such.
|
|
|
|
|
You can derive the "remaining time" from the current percentage. You take a timestamp at the moment that processing starts. At every progress-change, you calculate the duration to do "1%", based on the time elapsed since the start. Subtract the progress from 100%, and multiply by the duration that you calculated in the previous step.
The first five seconds give a lousy avarage; it's generally a good idea to start it with the term "unknown/calculating".
I are Troll
|
|
|
|
|
Hello,
I am new in silverlight. I am using silverlight 3. I want to show "time left" on preogress bar in the hh/mm/ss format. How should I do this. PLease provide detailed solution.
|
|
|
|
|
archabhi123 wrote: I am new in silverlight.
I haven't used Silverlight yet, so it seems that you're already ahead of me
archabhi123 wrote: I want to show "time left" on preogress bar in the hh/mm/ss format.
To calculate how much time there's left, you'd first have to calculate how much time is required for a single step. Imagine your progressbar having 100 steps. First you'd write the code to time the first step.
Next, you multiply this with the amount of steps left. If your progressbar is at 60, you'd have 40 steps left to perform - and if a step takes two seconds, you can calculate that it will (probably!) take 40 (steps) * 2 (seconds) = 80 seconds.
Then you'd have to format those 80 seconds in the hh/mm/ss format and update the actual progressbar.
--edit;
You reacted to an somewhat older post on the forum. You might get more answers if you post it as a new question in the "Silverlight"-forum.
I are Troll
|
|
|
|
|
Hi guys,
I have windows se7ven,visual studio 2008 standart edition.
I try to cradle my emulator using this link:http://msdn.microsoft.com/en-us/library/aa188173%28v=VS.90%29.aspx[^]
When I try to choose the cradle option(step 3 in the link),I find it desactivated(can't work).
What is the problem??
when googling,I find that i can When I enable TCP/IP networking on the Device Emulator, the emulator can connect to the Internet and synchronize with Microsoft Exchange without cradling. The problem in this solution that the Virtual PC 2007 couldn't be installing having this error:
Error 1335. The cabinet file 'product.cab' required for this installation is
corrupt and cannot be used..."
Any suggestion will be very helpful for me
Regards
Marwen
|
|
|
|
|
Hi
Thanks I cradled my emulator.The Emulator must be running to be able to cradle it.
When should I uncradle my emulator???
When trying to install windows mobile device center,it failed.Should i connect a real device to be able to install this tool???
How can I get the IP number that is used for my device and PC for this TCP/IP connection??????
Thanks a lot for u clarification
Marwen
|
|
|
|
|
I want to understand this code pls
public GFile(string Filename)
{
string[] fileCtx = File.ReadAllLines(Filename, Encoding.Default);
GLine gline;
string[] tmpCtx;
foreach (string line in fileCtx)
{
if (line.Contains(m_leftBracket) && line.Contains(m_rightBracket) && line != m_CRCHeader)
m_Header = line;
else if (line != m_CRCHeader)
{
tmpCtx = line.Split(new string[] { m_Equals }, StringSplitOptions.RemoveEmptyEntries);
gline = new GLine(tmpCtx[0], tmpCtx[1]);
if (ContainsKey(gline.Code))
this[gline.Code].CRCGiven = short.Parse(tmpCtx[1]);
else
Add(gline.Code, gline);
}
}
}
|
|
|
|
|
This line basically means that it will read all lines in the file using the operating systems current ANSI codepage. This is a potentially dangerous encoding to use because different OS installations may use different codepages. You'd normally want to manage this by specifying a set encoding, e.g. Encoding.UTF32.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
can you give me just exemple code pls ,
|
|
|
|
|
You already have it. Replace Encoding.Default with Encoding.UTF8 or the like (it all depends what encoding the file was originally written out with).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I want to write a project in a folder how do that ?
thanks for your idea.
|
|
|
|
|
I appreciate that English is not your first language, but could you please clarify what you mean here? I am not really sure what you are trying to achieve.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Please give some detail, so that it is easy to answer your question.
Give some code or more description, exactly what you want ??
Hope you understand!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
You don't.
This is the relm of NTFS security. You contorl access to the folder by understanding how Windows and NTFS security works first, then setting NTFS permissions on the folder appropriately for your situation. And judging by your previous questions, you've got a lot of reading to do first.
|
|
|
|
|
Dave Kreskowiak wrote: And judging by your previous questions, you've got a lot of reading to do to learn to read first.
FTFY!
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
Hi Experts,
I am trying to set the width of my list view to a value. This value is getting reflected but it is not going below a certain value. I have 3 columns in it and their widths are very less but i am still getting some white spaces after the last column. I tried the following
this.Width = 30;// 200 is getting reflected here.
this.Size = new System.Drawing.Size(30, 88);// 200 is getting reflected here.
Please help!
Thanks in advance!
Regards,
Samar
|
|
|
|
|
Make sure the MinimumSize property for the ListView is set to "0,0".
.45 ACP - because shooting twice is just silly ----- "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." - J. Jystad, 2001
|
|
|
|
|
Hi John,
The Minimum Size is already set to 0,0. Any other things which i might be missing??
Regards,
Samar
|
|
|
|
|
Just a guess but is the control redrawing afterwards or not redrawing at all?
if it is not redrawing I think you can force it to by calling the 'Refresh' method on the control.
V.
|
|
|
|
|
I have a form with a button.
It sends a XmlDocument (which I load from a xml-file) to a Webservice (webmethod) and it also receives a XML-file to
acknowledge/ACK (or not acknowledge/NACK) the file just being sent.
Code for the button (client-side):
private void button2_Click(object sender, EventArgs e)
{
ServiceReference1.Service1SoapClient webservice = new ServiceReference1.Service1SoapClient();
XmlDocument xmlReceived = new XmlDocument();
XmlDocument xmlSend = new XmlDocument();
xmlSend.Load("C:\\incoming.xml");
xmlReceived = webservice.PostNotify(xmlSend);
}
On the server-side I made a simple Webservice. It receives a XML-file and send a XML-file back with a acknowledge or
not acknowledge. I use this code:
[WebMethod(CacheDuration=30)]
public XmlDocument PostNotify(XmlDocument xml)
{
xml.Save("C:\\save_XML.xml");
XmlDocument xmlAck = new XmlDocument();
xmlAck.LoadXml("C:\\acknowledge_XML.xml");
return xmlAck;
}
I already tried the communications with just sending strings and it worked fine. But when I run it when passing
XmlDocuments it says:
Argument '1': cannot convert from 'System.Xml.XmlDocument' to 'System.Xml.XmlElement'
And it refers to the function in the client-side code, the post ...webservice.PostNotify(xmlSend);-part
modified on Thursday, May 6, 2010 5:56 AM
|
|
|
|
|
Well, you didn't tell us which line was generating theexception, but this line is suspect:
XmlDocument xmlAck = new XmlDataDocument();
Notice that you're trying to instantiate a XmlDocument with "new XmlDataDocument .
.45 ACP - because shooting twice is just silly ----- "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." - J. Jystad, 2001
|
|
|
|
|
Thanks John, this was my bad, I already changed it to XmlDocument but it didn't help.
The line which the error refers is in the client-side code:
xmlReceived = webservice.PostNotify(xmlSend);
Any suggestions?
|
|
|
|
|
Have you tried Debugger for service?Just put a breakpoint in the service method and check if its hitting or causing any errors.
|
|
|
|