I understand..I will not need to do that !
The Nemesis
Posts
-
Recursive class definiton ? -
Recursive class definiton ?Thanks a lot..
-
Recursive class definiton ?I have a class A and within this class A, I want to have an object of type A. Is this possible ? Do I need to do anything special ?
-
Prevent user from opening >1 subformone option can be to make the new window a modal dialog...but in that case you'll be able to access the listbox only when the new dialog is closed... if you don't want that you can disable the listbox before the new window opens (after the user selects to open the window)...and then you can enable it again when the user closes the window... there should be some more ways to do it...
-
Formating text in textBoxuse the Key_Press event instead of the Key_down event...that should work with the same code..
-
Strings to intsYou can also try to capture the KeyPress event on the text box and check the user input. void TextBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if(!Char.IsDigit(e.KeyChar) && e.KeyChar != (char)8) { e.Handled = true; } else { e.Handled = false; } } (char) 8 is the backspace key...so the user can actually delete the entry as well !
-
problem with fontdialoghello, I am working on .Net framework in c# lang. and this problem is related to Font Dialog class.The problem i am facing is as below: steps: 1)start an application containing a font dialog . 2)Install a new font while the application is running. 3)On applying the new font installed to any component say textbox,the application throws an exception with message:"Only true type fonts are supported and this is not a true type font" On debugging it is just after dialog. if(ShowDialog()==DialogResult.Ok) { } 4)On restarting the application and appying the same new font everything works fine. How ever this is not the case with some of the products in market eg Adobe Photoshop,Xml spy,Or microsoftword.. Please suggest me regarding this. Thanks and Regards