I've can into a problem. I have som "old" code made in VS2003. It's an application which queries some information on the internet, which is used in the application. In VS2003 it was able to close all the open connections to the internet. BUT after VS2005 has compiled the exe, the connection stays open? and therefore, windows cannot shut down while the program is running. Any help would be appreciated!!
zagzagzag
Posts
-
Internet problems VS2005 -
Transparent RichTextBoxHello everyone! I'm really in need of some professional help here. I'v created at transparent richtextbox, using this article:http://www.codeproject.com/cs/miscctrl/TransparentTextBox.asp?df=100&forumid=128070&exp=0&select=977976 As some of the users point out, the box does funny things when you scroll. I then overrided the OnVScroll, and this almos solved the problem. If you use the two up and down buttons in the scrollbar, or use the mouse to scroll the box updates with no problems. BUT if you use the bar it self, the scrollbar, then noting happens,and the text is screwed. I really hope someone can help me with this!!!! Thanks in advance.
-
Listing all machines in the networkThe search function is always handy ;) : http://www.codeproject.com/csharp/csenumnetworkresources.asp
-
WebRequest questionThanks! i will try to experiment with that!
-
WebRequest questionI have a little question regarding WebRequests i hope you can help me with. I'm using a WebRequest to download some files from a remote server. Since these files can be quite big, i wondered if there's a way to "follow" the progress of the file transfer? Regards
-
Error LoggerYou could start off with coding all of your functions with try{} catch{} statements. Then, each time an error occours you can write the error to a file.
-
Updating form with text during long processAs far as i know you have to update the label your self: labelStatus.Text = "The stuff you want"; labelStatus.Update(); or: labelStatus.Text = "The stuff you want"; labelStatus.Update(); this.Update(); and finally you can write the following before the lenghty process starts: Application.DoEvents(); Hope it works!
-
Opening files on the internet for readingYes! thanks you. :D Been struggeling with this for hours!
-
Opening files on the internet for readingErhm. Thanks for taking the time to reply to the topic, but that was a link to a article regarding "ExtendingFileDialogs" ;)
-
Opening files on the internet for readingHi there! I have a problem. What i want to do, is opening a remote file on the internet (a xml file) for reading in my application. The remotehost is not running any serving functions, the file is just available on the internet. Is there anyone who knows how to do this? Thanks in advance!
-
Transparent ListBoxesOkay.. I'll do that! Thanks a lot for the help Regards! **EDIT** Back again. Now i have created a inherited custom control with listbox attributes. But when i set the color to transparen they just turn white. The thing is that you have to be able to see the picture behind the listboxes. Hope some of you have a solution to this!
-
Transparent ListBoxesI'm having quite a problem figuring this out. In the microsoft SDK i found some functions to make controls transparent:
SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.BackColor = Color.Transparent;
and they said something about it had to be placed in the constructor????? Kinda lost. Can i apply this to the standart listboxes in the .Net framework, or do i have to create my own control which inherits the functions of a listbox? thanks in advance! -
I got stuck with streamwriter and cryptostream classesHi there.. There is a lot of examples on how to do the server client stuff in the .Net framework documentation. Search for "TCP" and you'll get something usefull! About the cryptographic stuff:
public string Encrypt(string ToCrypt) { string encoded = ""; byte [] EncKey = {0x16, 0x1F, 0x01, 0x03, 0x1A, 0x0B, 0x10, 0x7F, 0x65, 0x5E, 0x45, 0x3F, 0x11,0x1F, 0xFF, 0xEF, 0x32, 0xEE, 0x5F, 0x38, 0xA7, 0xB2, 0xCC, 0x77, 0x51, 0x14, 0x40, 0x8A, 0x95, 0xE5, 0x00, 0x84}; byte [] EncIV = {0x05, 0x14, 0x06, 0x15, 0x02, 0x13, 0x00, 0x0F, 0xC0, 0xD8, 0xB6, 0x58, 0xE4, 0xA9, 0x21, 0x5E}; RijndaelManaged rmEnc = new RijndaelManaged(); rmEnc.Key = EncKey; rmEnc.IV = EncIV; StreamWriter sw = new StreamWriter(encoded); CryptoStream cs = new CryptoStream(sw, rmEnc.CreateEncryptor(rmEnc.Key, rmEnc.IV), CryptoStreamMode.Write); cs.Write(Encoding.ASCII.GetBytes(ToCrypt), 0, ToCrypt.Length); cs.Close(); sw.Close(); return encoded; }
If this wasen't what you were looking for, you must express yourself more clearly. What is the exact problem? -
Autoscrolling textboxThanks a lot!! I tried something similar, but it didn't work.. Thanks Again! Regards
-
Autoscrolling textboxHello there! I am currently writing a chat-program. All of the network functions are (almost) working properly. But i have one problem though. I want the richTextBox to autoscroll when the text goes behind the border of the control (like Windows Messenger) I hope that you can help me with this! Regards
-
string to longI would really like some help to figure this out.. i have to convert a string into a long(string). The FindWindow on CE requires long string in order to function. Can this be done with the StringBuilder?? Thanks in advance...
-
Accessing "Native" DLL from a .NET AppFirst thing:
using System.Runtime.InteropServices;
along with your other using statements in the beginning of the c file.. then create a class:public class DllWrap { [DllImport(string DllName) public static extern int/bool/string/... FunctionName(function calls); }
when you have to call the function from the code:DllWrap.FunctionName(calls needed);
Hope it works for you... Regards.. -
pocket pc applicationThey will be stored this way(i assume the Emulator is english): \Program Files\[Project Name]\[App.exe] Google: "Windows CE X.X emulator" to all the others looking for a emulator.
-
Windows CE - instrumenti can defenatly recommend the NeoNode: www[dot]neonode[dot]com There is also a "non-official" forum for this phone at: www[dot]redneo[dot]com It is running Windows CE 5.0 You should know that this phone isn't fully developed yet, but the NeoNode team are releasing updates etc. very often.
-
encapsulate a programIf you have Winrar, you can create simple exe files which can be started on all win32 computers. If you have Visual Studio 2003 .NET (Pro) you can create a Setup-file project. And we understand your english ;)