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
I am working on windows application where the sensitive data in app.config file is encrypted i followed [^http://ozkary.blogspot.in/2013/03/encrypting-aspnet-application-settings.html] these to encrypt app.config file. It works very well in my machine. How do i deploy this?
Last Visit: 31-Dec-99 18:00 Last Update: 19-Apr-21 14:49