Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.

Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.

Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.

If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.

Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.

Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.

Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.

If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.

No advertising or soliciting.

We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.

I need to get 'Form1' to retain its black back-ground color while the 3 labels with a white BackColor displaying famous quotes are not visible (Form1 totally black) until a mouse pointer hovers over a label and reveals the famous quote(s) during the execution of runtime.

Whenever I get a SQL error like this, I try to run it directly against the server. You really should try this because the exception you are seeing is telling you that your query is wrong. That's what you're going to have to fix - the problem has nothing to do with C#, or the fact you are running over a web service.

Hi good day to all, I'am using a panel that have scrollbar in vertical. I want to display a new value of scroll bar when i end scrolling and I use this code
private void panel1_Scroll(object sender, ScrollEventArgs e)
{
if (e.Type == ScrollEventType.EndScroll)
{
MessageBox.Show(e.NewValue.ToString());
}
}
but it does not work, but when i use a single vertical scroll bar and use it this code :
private void hScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
if (e.Type == ScrollEventType.EndScroll)
{
MessageBox.Show(e.NewValue.ToString());
}
}
it will work, I thought i can use the same code but it fails, Is their any way to do that?
Thank you in advance

But, your code that follows this is an EventHandler for a Horizontal ScrollBar ?

In the 'panel1_Scroll EventHandler, try writing the value to the Console, or to a TextBox on the Form: the use of MessageBox sometimes has side-effects since it's a thread-blocking call.

«While I complain of being able to see only a shadow of the past, I may be insensitive to reality as it is now, since I'm not at a stage of development where I'm capable of seeing it. A few hundred years later another traveler despairing as myself, may mourn the disappearance of what I may have seen, but failed to see.» Claude Levi-Strauss (Tristes Tropiques, 1955)</

When designing a form dragging objects (forms) into an edit and delete form, somehow the object on the form is deleted but the code in the form (Form.Designer.cs) does not delete the form. Is there a way to quickly find code not deleted in the above file ?

A simple possible explanation could be that you delete a dropped Control from a design-time WinForm surface, but, you have not re-built the project/solution ... in that case, what's in the designer.cs file could be out of synch with the Form. However: if that is not what's happening here:

Quote:

When designing a form dragging objects (forms) into an edit and delete form,

Hi, what you describe I find difficult to understand. Could you clarify;

1. is this WinForms ?

2. you are talking about design time drag-drop, or run-time ?

3. "dragging objects (forms) into an edit and delete form" this suggests you are dragging/dropping a Form ? that's not WinForms.

4. "edit and delete form" what, exactly, is this ?

cheers, Bill

«While I complain of being able to see only a shadow of the past, I may be insensitive to reality as it is now, since I'm not at a stage of development where I'm capable of seeing it. A few hundred years later another traveler despairing as myself, may mourn the disappearance of what I may have seen, but failed to see.» Claude Levi-Strauss (Tristes Tropiques, 1955)</

I am using winforms, my english is not good so the expression makes you confuse. This means that when I am in form design mode when dragging control into a form, adding, editing, and deleting controls on the form, for some reason the code control on the form is not removed in the Form.Designer file.cs. but Form.cs (UI) has deleted very well. Do you understand me ?

How to store viewstate values in specified folder? I have designed a page and it contains textboxes to accept data fron user so i want to store the values in specified folder using viewstate?
Please help.

In C# VS2005 I embedded a picture (file in the form *.png) normal but when the rebuild was reported The "GenerateResource" task failed unexpectedly.
System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI +. Have you know how to fix this ?

«While I complain of being able to see only a shadow of the past, I may be insensitive to reality as it is now, since I'm not at a stage of development where I'm capable of seeing it. A few hundred years later another traveler despairing as myself, may mourn the disappearance of what I may have seen, but failed to see.» Claude Levi-Strauss (Tristes Tropiques, 1955)</

Despite the comment about the base method cleaning up async IO resources, it doesn't:

protectedvirtualvoid Dispose(bool disposing)
{
// Note: Never change this to call other virtual methods on Stream// like Write, since the state on subclasses has already been // torn down. This is the last code to run on cleanup for a stream.
}

My "gut" is now telling me to switch to using byte-arrays wherever possible. Whether you gain anything (performance, memory economy) when shipping the raw data off to be encrypted and/or compressed by using a byte-array rather than a stream ... that's terra incognita to me ... but, I suspect that as I research the various tools that will come into focus.

cheers, Bill

«While I complain of being able to see only a shadow of the past, I may be insensitive to reality as it is now, since I'm not at a stage of development where I'm capable of seeing it. A few hundred years later another traveler despairing as myself, may mourn the disappearance of what I may have seen, but failed to see.» Claude Levi-Strauss (Tristes Tropiques, 1955)</