I have a console program that runs as a type of server written by some one else. The fact that it sits in my taskbar is kind of irritating. Is there any way, using c#, to write a third party program that'll hide it from the taskbar and and my desktop entirely?
So I have a ListView and I want to get the Selected Item's value and compare it to anothre string when the item is selected:
private void lstAccounts_SelectedIndexChanged(object sender, System.EventArgs e)
{
XmlElement Root = this.XmlDoc["accounts"];
foreach ( XmlElement account in...
this.txtMsg.ForeColor = System.Drawing.Color.Black;
I have a multi-line TextBox that i'm appending with messages. I want to use different colored text for different types of messages. Obviously I can't set the ForeColor again, is there escape characters or something similar to use to accomplish...
override close event
How can I override the close event on a child window so that i can cancel it being closed without effecting the parent window?
Here's the code i'm using to cancel the close event in my child window:
private void StatusForm_Closing(object sender...
I'm using c#
The application I'm writing uses an MDIContainer. The wierd thing is, when i resize the form, the actual container stays the same size, leaving a gray area around it that should be part of the container, but isn't. I can see the "3d" lines showing the container staying the same...
How can i set a TextBox to show the last line when it's multi line?
I'm trying to make it a kind of status window, so i enter "some text" into it, then later "some more text" and eventually it's got enough lines that the vertical scroll bar shows up, but it stays at the top instead of scrolling...
I've got a ListBox that has its Items automatically generated. It basically adds all the items in a directory:
for (int i=0; i<sArray.Count; i++)
{
this.LocalList.Items.Add(sArray[i].ToString());
}
How can I squeeze an EventHandler in there to each added item?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.