|
jasome wrote: Is there any event available to trace file download using C#?
vat u mean by trace file download?
|
|
|
|
|
thanks for your reply.
i need to get just an event, while downloading the file from IE.
from that i want to know the files that are downloaded.
thanks
|
|
|
|
|
|
Hello,
I'm reading a MID file a nokia ringtone file and I want to convert every byte in it to octet then to hex but I don't know how? I am searching how to sen ring tones?
Thanks
Dad
|
|
|
|
|
To convert byte -> octet and byte -> hex :
byte myByte = 250;
string octet = Convert.ToString(myByte, 8);
string hex = Convert.ToString(myByte, 16);
To send the ring tone, I think you must use the AT command from nokia, see the Manual.
Search it in nokia website for AT command.
Then use SerialPort class for writing AT command to phone.
|
|
|
|
|
I was looking at the Convert Class but not familiar with it and didn't want to do too much reading for someone else
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
so... no reading -> no answer next time.
|
|
|
|
|
But I gave an answer to 1 of the two conversions, surely that is allowed?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
I am confused as why you need to convert a Byte to either octet of hex in order to send data? after all both Octet and Hex are just different was to display a byte value. If you want to convert a byte (or int) to string values for hex then...
string hex = myInt.ToString("X");
...I'm not sure of an easy way to convert an int to octet string thou sorry
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
FYI: octet is French for byte, so there is no conversion required at all. What you want is "octal" or base-8 notation.
|
|
|
|
|
After connecting to an instance of IE, i'm trying to control/monitor the events. So far everything works but the filedownload event handler. Anybody have any tips on how to do it? The following (C#) is the syntax for all of my event handlers.
myInternetExplorer.FileDownload += new SHDocVw.DWebBrowserEvents2_FileDownloadEventHandler(OnDownload);
Any clues/pointers would be helpful!
thanks
|
|
|
|
|
how can i make the system restart after installing?c# installer can do this?thanks.
|
|
|
|
|
You can't make an installer force a reboot directly from visual studio project, you need to modify the installer that gets created.
A tool called [annoyingly] Orca is useful, it lets you modify the installer:
http://support.microsoft.com/kb/827020[^]
You'll need to do this every time you re-build the installer package
|
|
|
|
|
keefb,thank you very much!
|
|
|
|
|
Hi guys.
How can I create a RightToLeft ListView like this[^] instead of this one[^] ?
I've changed its RightToLeft property to Yes , but it isn't the one that I need ?
Could you please guide me ?
Thanks
|
|
|
|
|
Have a look at this[^].
Regards
Nuri Ismail
|
|
|
|
|
Hi forum!!!
I have the next question...
i have in my proyect in c#, a form with a picturebox (with a image loaded), and I need to create over my image a floating object which I can to move over my image. this floating object is like the objects in power point (put a rectangle, circle, some shapes) to change its properties with the mouse (width, heigth,...)
How I can do it?
|
|
|
|
|
You can draw on picturebox control using the Graphics object. Here is an example code fragment:
Graphics gr = pictureBox1.CreateGraphics();
Rectangle rect = new Rectangle();
rect.X = pictureBox1.ClientRectangle.X + pictureBox1.ClientRectangle.Width / 4;
rect.Y = pictureBox1.ClientRectangle.Y + pictureBox1.ClientRectangle.Height / 4;
rect.Width = pictureBox1.ClientRectangle.Width / 2;
rect.Height = pictureBox1.ClientRectangle.Height / 2;
gr.DrawRectangle(new Pen(Color.Red), rect);
.....
You can use the MouseDown , MouseMove and MouseUp events for the picture box, to make the object floating or to change its width and height with the mouse.
Regards
Nuri Ismail
|
|
|
|
|
Hello Nuri Ismail
Thanks for your answer, but how can I do to make transparent this control, like the powerpoint objects.
In power point there are a lot of objects with diferents shapes.
how can i create this objects to uses it in my form, and access to them to modify its properties???
Thanks.
|
|
|
|
|
you can use the event 'mousemove' 'mouseover' to catch it .
in mousemove event , you can get a parameter(e).
e.x is width, e.y is height
modified 27-May-14 5:28am.
|
|
|
|
|
Hi, you can first creat a div, then let it move like this:
function Movediv() {
var div = document.getElementById(g_DivName);
var xx = new Array();
var speed = 1; //distance
var speed2 = 20; //interval time, 10ms
xx.push(0);
//xx.push((document.documentElement || document.body).offsetWidth - div.offsetWidth - 20);
xx.push((window.innerWidth || document.body.clientWidth) - div.offsetWidth - 30);
var x = parseInt(div.style.left.replace(/^(\d+).*?$/, "$1"));
div.style.left = x + speed * g_MoveDirection + "px";
if (x <= xx[0]) { g_nMoveDirection = 1; }
else if (x >= xx[1]) { g_MoveDirection = -1; }
//setTimeout("Movediv()", speed2);
}
modified 27-May-14 5:28am.
|
|
|
|
|
Hi friends,
I tried to draw graphics on a transparent form by using the Transparency key.
"this.BackColor = Color.Blue; this.TransparencyKey = BackColor;".
The problem is, it is working fine with Vista. But when I am using the same code to draw on XP, it is not working. I am using visual studio 2008, so is there a compatability problem?
|
|
|
|
|
Hmm.. I never used tranparency key before. But in XP, I use property Opacity for transparency. Set it from 0% to 100%.
|
|
|
|
|
Yeah, I tried the solution first by setting the opacity, but when I am setting the opacity to the from, the drawings (graphics) are also becoming opaque, thats why I used the Transparency key.
|
|
|
|
|
you want to set the form's background color to transparent.
1) so you can set the form to Irregular Form.
2) or you can set the form's background color to transparent
modified 27-May-14 5:28am.
|
|
|
|