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?
I have a UserControl (call it SpiffyCombo) that consists of a ComboBox and a Label. The SpiffyCombo has a property (call it "Code") that has TwoWay databinding specified for it.
My Form has a BindingSource and an associated ErrorProvider. A property of the BindingSource's DataSource is bound to the Code property SpiffyCombo.
In a normal control, when an error occurs on the DataSource's property the error icon would appear next to the control. I can't get this to happen with SpiffyCombo. Is there some sort of Interface I need in the it or something I need to override to receive the error from the ErrorProvider? I want to control how the error is displayed within SpiffyCombo rather than have is show in the default location.
... i don't get any result on my form... if it need to assign something to the rdlc file or reportviwer other than the above code, or should i insert a dataset or anything other than the code.. if it need please help me it in programmatically....
Probably the name of dataset in your Report is different than "Employee". Open your report and in "Report Data" window, under the node "Datasets", check the name of your dataset, for example if dataset name is "Dataset1", your code should be:
Microsoft.Reporting.WinForms.ReportDataSource repds = new Microsoft.Reporting.WinForms.ReportDataSource("DataSet1", ds.Tables);
Last Visit: 31-Dec-99 19:00 Last Update: 28-Nov-23 3:06