|
Thanks,
but I know that . My question is more accuratley about change for the object of the form. Maybe there is no change.
Are we sure to get all the objects of the fotm with FormClosed as with FormClosing.
Is the only difference between these two events the time event occurs ?
Ellande
|
|
|
|
|
I have dynamically created the textboxes .Now I want to add a Requiredfield validator with a txtbox.
I am trying like this:
TextBox txtBoxReEnterPassword = new TextBox();
---Some other Code----
RequiredFieldValidator rfldValidator = new RequiredFieldValidator();
rfldValidator.Text = "Enter same Password";
rfldValidator.ID = "compvaldtor";
rfldValidator.ErrorMessage = "Enter Password";
rfldValidator.ControlToValidate = "txtReEnterPassword";
txtBoxReEnterPassword.Controls.Add(rfldValidator);
But it's not working.
|
|
|
|
|
What is the error you receive??
Nidhi.s wrote: txtBoxReEnterPassword.Controls.Add(rfldValidator);
You're not supposed to add the validator as control of the textbox, you should add the control to, for example, your form... this.Controls.Add();
further, the use if strings is a but... erhm... fault sensitive..
use ControlInstance.Name in stead of "txtReEnterPassword";
|
|
|
|
|
I think you need to tell the TextboxReEnterPasssword field to use requiredFieldValidator as a FieldValidationId. Try doign it first on Designview atleast you would know how it works and what are the parameters.
|
|
|
|
|
Hi all!
What is more effective from a performance perspective; finding an arbitrary tag in an xml-file by means of regular expressions or using the built in xml-support of .NET?
Thanks
|
|
|
|
|
Xpath
|
|
|
|
|
in my listview if you double click an item, it checks or unchecks it. How can i capture the double click on an item and make it do something else?
|
|
|
|
|
Handle the DoubleClick event of the ListView.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Would this cancel the checking or unchecking of an item in the listview?
|
|
|
|
|
Have you tried it? If it does, handle it in your double click event.
|
|
|
|
|
Hi,
Im again here, the n00b. I have a strange problem now with Visual Studio, im working in design mode placing setting my Columns on a DataGrid and when i have it setup and goodlooking then I press F5 like usual :P and meanwhile my app starts running i saw in the back window Visual Studio changing Column positions again, it also happens when I edit for example the Expression of a Column in the Dataset view.
Anybody knows how to solve it ? due it happens everytime and everytime i had to re-sort the columns in design mode.
... many many thanx
|
|
|
|
|
Are you using AutoGenerated columns?
|
|
|
|
|
omg,
I never saw that option, where is it ?
Hope thats the reason,
thx
|
|
|
|
|
it's a property of the gridview.
MyDataGridView.AutoGenerateColumns = true;
|
|
|
|
|
Yes i saw it, and turned off at Form_Load, but cannot understand it, that means that when app is running it gets the columns from the ds and changes the design... weird tbh
Anyway, if it works, but i dont like it at all,
Edboe, if you come someday to spain take my word you will have a home in barcelona, you helped me a lot latelly...
|
|
|
|
|
|
It happens again, and also i checked in the code generated by VisualStudio and that property was false too. (
I just changed the headertext of a Column and then my 1st one becomes the 3rd. Why ????
|
|
|
|
|
Hi,
Iam using the C# assembly,i've already created the one version and then updated the version and after that i want to use that Update the Version...So pls help How to use that Updated the Version.....
Thanking you ,
Somasundaram
|
|
|
|
|
Iam using the C# assembly,i've already created the one version and then updated the version and after that i want to use that Update the Version...So pls help How to use that Updated the Version.....
|
|
|
|
|
I really tried to, but I don't understand a word of what you're saying... Please explain a bit more what you want and what exactly does not work...
|
|
|
|
|
|
Hello,
I need to remove the taskbar icon for my application and run it from System tray only. The menu is a context menu on the system tray icon and I want it to have no icon in the taskbar (no long bar with the application name on it).
I have figured out how to have the system tray icon, but how do I make it so that the app does not have a taskbar icon even when running normally or maximized (not just when its minimized ).
Thanks
|
|
|
|
|
Set the Form.ShowInTaskbar property to false .
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Thanks for a fast and good answer
|
|
|
|
|
Hi all,
I have just read the following article: http://www.codeproject.com/csharp/printhml.asp[^]
Here it describes how to print a html document and it works BUT it works in the same way as the following piece of code:
Process myProcess = new Process();<br />
myProcess.StartInfo.FileName = TemplatePath + "\\Invoice.HTML";<br />
myProcess.StartInfo.Verb = "Print";<br />
myProcess.StartInfo.CreateNoWindow = true;<br />
myProcess.StartInfo.UseShellExecute = true;<br />
myProcess.Start();
Is there someone who used the code from the article and would any one know how to specify a printer as to not make the "select printer" screen come up? Both of these two ways bring up the screen where the user needs to select the printer... I've been stuck with this one a while now.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|