|
Ok, I figured out that if I change the reference.cs file for each of my web references then everything works. The namespaces match and now I can access what I want. However, as i'm sure you'll all know as soon as I update the webreference it reverts back to the other names space of ComsLayer.<webservicename>.
So what i need to do is be able to set a default value of this namespace to XGSDev.XeroxOrderTracking.OrderTrackingService.ComsLayer.<webservicename>
I found out that in the properties of the Reference.map you can enter a custom tool namespace. Enter your namespace here and everything will work!!
Phil
|
|
|
|
|
hi. How can you change the background image of a picture box when a mouse is hovered on it? I want it to change images as it hovers and leaves. My current image was set to the properties pane of visual studio 2005. How can you code the hover part?
|
|
|
|
|
Hi,
Try the following code snippet:
BEGIN CODE
Public Class Form1
Dim image1 As String = Application.StartupPath + "\Water lilies.jpg"
Dim image2 As String = Application.StartupPath + "\Winter.jpg"
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.PictureBox1.BackgroundImage = Image.FromFile(image1)
End Sub
Private Sub PictureBox1_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseHover
Me.PictureBox1.BackgroundImage = Image.FromFile(image2)
End Sub
Private Sub PictureBox1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseLeave
Me.PictureBox1.BackgroundImage = Image.FromFile(image1)
End Sub
End Class
END CODE
Hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
WOW THANKS! I just converted it into C# code. Thanks!
|
|
|
|
|
I am interested in writing a program in C# to monitor my bandwidth usage (up and down) on my satellite internet. Is anyone aware of existing source code? Any suggestions?
|
|
|
|
|
There's a few on SourceForge. Check out FreeMeter[^].
(If you choose not to make your own, I recommend NET Traffic Meter[^]. It's very, very simple and works well.)
|
|
|
|
|
Tnx for pointing we in the right direction
|
|
|
|
|
Free meter you suggested is exactly what I needed. Downloaded source and compiled under Net 2005 without problem. I will be able to extract what I need from there. Many Thanks.
Electriac
|
|
|
|
|
Awesome. Please ignore this next sentence if you're aware of it: Free Meter is licensed under the GPL, so if you make any modifications please respect its license.
|
|
|
|
|
Hi,
I need to collect the images from an RTF file as image objects that I can work on individually. Any ideas?
I tried loading the RTF file in the RTFTextBox in WinForms. The images show up correctly, but I still haven't figured out a way of accessing them directly.
Hope someone can help. Thanks!
Sarab
|
|
|
|
|
|
Hi Giorgi,
Yes - that's the problem! I've found plenty of examples describing how to insert images into RTF but none on how to do the opposite! Am surprized no one else has had the need for this..
Hope someone else can help ... ?
Sarab
|
|
|
|
|
The RTF specification is available here[^] if that's any help. I think you're gonna have to parse the rtf and reconstruct the image from the data that's embedded.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
|
Hi,
Thanks to everyone for your ideas! I managed to get the images. Here's how:
Images in RTF are as hexadecimal strings (as noted from the specifications). So all that needed to be done was:
1. Convert the hexadecimal to a byte array:
http://www.koders.com/csharp/fid8BD422682325288B294A97714AC061D115F0307D.aspx[^])
2. Then make an image out of this array:
byte[] bData; // The byte array
MemoryStream memStream = new MemoryStream(bData, 0, bData.Length);
Image iMage = Image.FromStream(memStream);
Et voila!
Sarab
|
|
|
|
|
Hi.
How can I prevent closing WinApp even with Windows Task Manager ?
Thanks in advance.
|
|
|
|
|
|
Tell me a legitimate reason why you'd want to!
|
|
|
|
|
Well, for example , for creating an AntiVirus.
Is it that ?
|
|
|
|
|
|
You can think as you wish.
Thanks anyway.
|
|
|
|
|
Because antivirus software always exhibits malware features itself.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Mohammad Dayyan wrote: Well, for example , for creating an AntiVirus.
Is it that ?
Nope - That's not it!
|
|
|
|
|
You cant
the user / computer owner should always have control.*
*This is not always the case in vista
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
It's not possible*, and for good reason.
|
|
|
|