Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
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 HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
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 in one forum from another, unrelated forum (such as the lounge). It will be deleted.
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.
When answering a question please:
Read the question carefully
Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
Sometimes coding in C#, you can't see the forest for the trees. I'm sure the answer is ridiculously simple, but it has me baffled.
On a windows form, the user clicks a toolstrip item which opend a dropdown list. The user clicks a selection, dropdown list disappears, and the selected item displays towards the top. To get rid of that displayed item, you have to click anywhere else on the form.
All I'm trying to do is when the user clicks their selection, close (wrong word?)down the display for that toolstrip item. (Act as if I clicked on a different portion of the form.)
I have a strange problem with the configuration of an application written in c # winform.
I wrote a simple application that reads some records from a table in sql remote. in the App.config file I wrote the connection string and everything works.
I copied the bin folder on another pc and for error I renamed the configuration file <apptext> .exe.config in <apptext> .exe.conig
I run the application and the application rightly gave me error because it could not find the config file. I renamed the file correctly and everything works fine.
What happens: :mad:
randomly when I do a restart of the PC, I find myself in the bin folder
the configuration file wrong, what I had written the first time <apptext> .exe.conig
Can anyone tell me how to solve this problem?
is a week that I'm trying to understand what happens
by the time I solved by copying the configuration file at to the start of the application
but it's not good
the operating system is windows 7 and I just can not understand on what happens.
perhaps the first time, it was put configurator wrong in some cache
and when restart the PC overwrites the existing one.
I also removed the write permission to all users, including Administrator and System,
the problem remains
I can only assume that you are running this in Visual studio and regenerating the file when you restart your PC. Check all the settings in Visual Studio to see that it does not have a reference to the "wrong" name.
hi does anyone know how i can disable the animation which happens to a windows
form when the this.hide() is used?
I haven't tried it, but I guess it'd be the performance options of Windows. There's a setting in the system-page somewhere that let's the user decide between "cool" (animations, shades and stuff) and "fast" (no animation, no shades). Or to let Windows decide. AFAIK, it's a settting that would change the behaviour for ALL applications.
i am trying to do this without using thread.sleep.
Try clearing the .Controls collection and making the form 100% transparent. "Hide" it after that.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
I need to develop a generic XMLEditor Form for an application (Windows Forms .Net 4.0).
The main concepts are:
- xsd definitions are known and stored as a resource
- form receives xml content string and the xsd name
- user must be able to edit (and add/delete) all of the xml attributes / values
Below is a sample of one of the xml content strings
<TechnicalCatalogInfo><Properties><Propertyid="1319"name="Some name"><![CDATA[Some text]]></Property><Propertyid="2715"name="Other name"><![CDATA[Some value]]></Property><Propertyid="2716"name="Another name"><![CDATA[One more value or text]]></Property></Properties></TechnicalCatalogInfo>
There are 3 or 4 different xml schemas and this form must be able to edit all of them.
Do you think that this can be done?
I am creating setup file with sql server database but i am facing an error...network elated error and i can't get the data from .mdf.deploy file...plz help me...it's my first project on windows based...
You mix up encoding and font. With modern .Net applications, you do not need to worry about non-ASCII-characters: .Net uses Unicode, and Malayalam is well defined there.
Probably, you are used to some encodings of the ISCII standards. Those ISCII encodings are 8bit encodings, and the text files written with such an encoding do not have the byte marks required to automatically find out the encoding. Consequently, when you show it in a text editor with the wrong "font" selected, it may look like Hindi/Devanagari or totally garbage. But by selecting the "font" of your text editor, you actually selected the encoding.
So just type your Malayalam text into the text boxes of your Windows forms application, it will work. Do not copy it from such an 8bit text file as described above!
I'm developing a MDI WinForm App using C#. I have a parent window with a splitContainer. Panel2 of the split container is used to used to display child forms while Panel1 is used for controls of the parent window. Child1 loads with parent form . However I have placed a button in Child1 that has to call child2 but I can't seem to find a way to close child1 and show child2 in panel2 of the Parent Split Container. I tried using the User Controls but I can't seem to pull through.. Please help.
'Determines if a form is already open.
PublicFunction IsFormOpen(ByVal FormName AsString) AsBooleanDim rVal AsBoolean = FalseDim frm As Form
ForEach frm InMe.MdiChildren
If frm.Name = FormName Then
rVal = TrueExitForEndIfNextReturn rVal
EndFunction'Function to show a MDI child form.
PublicFunction ShowMdiChild(ByVal FormName AsString) AsBooleanDim rVal AsBoolean = FalseDim frm As Form
ForEach frm InMe.MdiChildren
If frm.Name = FormName Then
rVal = True
frm.WindowState = FormWindowState.Maximized
EndFunction'Invoke a public sub in a MDI child form.
PublicSub InvokeMdiChildMethod(ByVal MethodName AsString)
Dim o AsObject
o = Me.ActiveMdiChild
CatchEndTryEndSubPrivateSub ShowNewForm(ByVal sender AsObject, ByVal e As EventArgs) Handles NewToolStripMenuItem.Click, NewToolStripButton.Click, NewWindowToolStripMenuItem.Click
' Create a new instance of the child form.
Dim ChildForm AsNew System.Windows.Forms.Form
' Make it a child of this MDI form before showing it.
ChildForm.MdiParent = Me
m_ChildFormNumber += 1
ChildForm.Text = "Window " & m_ChildFormNumber
Last Visit: 31-Dec-99 18:00 Last Update: 26-Aug-14 19:44