Hi, I can't seem to hide my MainForm at my application startup. I just want the notifyicon in the systray to be visible. mainform.Hide() dosn't work. It displays the mainform anyway. Does somebody now a way to do this? Andreas Färnstrand
andreas_farnstrand
Posts
-
Hidden MainForm at startup -
DeSerializeThanks Daniel! With some modifications that worked perfectly. Andreas Färnstrand
-
DeSerializeHi, I have a problem I've been trying to solve for a couple of days now. I posted it before but couldn't get an answer that worked so I'm trying again. I'm serializing an arraylist containing my own classes to a file. It works just fine. I can deserialize this again solong as the application doing the deserializing is the same as the one doing the serializing. When trying to deserialize in another application I get an invalidcastexception, as far as I can see this is because the programname saved in the file is not the same as the programname trying to deserialize. Can someone please tell me if and how I can work around this? Thanks! Andreas Färnstrand
-
SerializeHi! I'm trying to open a file with a serialized (binary) arraylist. The problem is that the application in which I save the data saves the assemblyname in the file, so when I try to open the file in another application whith another name, it throws an exception. System.Runtime.Serialization.SerializationException. There's probably an easy way to solve this but I'm rather new at this so... Thanx Andreas Färnstrand
-
Scrollbar problemHi again! I'm sorry! It does work. The problem seems to be that there's a loop that wont let SetToCaret() work until it's finished. You can add text to the richtextbo but it doesn't scroll down until I shut the loop down. The loop is lístening to a Socket, while( online ). Thanks again, Andreas Andreas Färnstrand
-
Scrollbar problemHi Dennis! Thanks for your help. It doesn't seem to work though. Here's my code: private void Print(string text){ this.messagesrichtextbox.AppendText(text + "\n"); this.messagesrichtextbox.SelectionStart = this.messagesrichtextbox.Text.Length; this.messagesrichtextbox.SelectionLength = 0; this.messagesrichtextbox.ScrollToCaret(); } Simple enough, but it won't work. I've tried adding a this.messagesrichtextbox.Select also but it didn't work either. What's wrong? Thanx, Andreas Andreas Färnstrand
-
Scrollbar problemHi! I have a richtextbox with a vertical scrollbar. My problem is that the scrollbar is always at the top. How do I get the scrollbar to always be down, showing the lastest added text? Andreas Färnstrand