hi Button Columns class which is related to web server but for windows forms check this link: http://www.syncfusion.com/faq/windowsforms/Default.aspx#q888q with regards, maheswararao.
maheswara
Posts
-
How to add button in DataGrid? -
How to add button in DataGrid?hi, To add button to a paricular cell of DataGrid we have to use ButtonColoumn class With Regards, Maheswararao.
-
How to extract integer value from CStringyeh it does not any return any value
-
using .net c++Porting and Upgrading (Visual C++) Explains how to upgrade a project built in a previous version of Visual C++ to Visual C++ .NET, how to port your applications to Visual C++ from a different language, and how to port your Visual C++ application to a different developer tool or operating system.
-
How to extract integer value from CStringwe can use that CString class method such as string Format CString str = " "; int i; i = str.Format("%d",str);
-
ThreadsIn C# there are function pointers which are nothing but DELEGATES so delegates, which is used to reference to your objects. With asynchronous programming, the caller must define the delegate when calling a method, if the caller uses a delegate. mahes
-
ComboBox EventDropDown event Occurs when the drop-down portion of a ComboBox is shown. we can use the event when the text changed in the combobox. This event is raised if the Text property is changed by either a programmatic modification or user interaction. private void currencyTextBox_TextChanged(object sender, EventArgs e) { try { // Convert the text to a Double and determine if it is a negative number. if(double.Parse(currencyTextBox.Text) < 0) { // If the number is negative, display it in Red. currencyTextBox.ForeColor = Color.Red; } else { // If the number is not negative, display it in Black. currencyTextBox.ForeColor = Color.Black; } } catch { // If there is an error, display the text using the system colors. currencyTextBox.ForeColor = SystemColors.ControlText; } } mahes
-
Complete this program-- New bie to FileStream ?public bool FindMyText(string text) { // Initialize the return value to false by default. bool returnValue = false; // Ensure a search string has been specified. if (text.Length > 0) { // Obtain the location of the search string in richTextBox1. int indexToText = richTextBox1.Find(text); // Determine whether the text was found in richTextBox1. if(indexToText >= 0) { returnValue = true; } } return returnValue; } mahes
-
Cancel EventsCancel Supported by the .NET Compact Framework. Gets or sets a value indicating whether the event should be canceled. // Calls this method from the InitializeComponent() method of your form private void OtherInitialize() { this.Closing += new CancelEventHandler(this.Form1_Cancel); this.myDataIsSaved = new Boolean(); this.myDataIsSaved = true; } protected void Form1_Cancel (Object sender, CancelEventArgs e) { if (!myDataIsSaved) { e.Cancel = true; MessageBox.Show("You must save first."); } else { e.Cancel = false; MessageBox.Show("Goodbye."); } } mahes
-
richtextbox appendtext boldUse the Font dialog box to change the fonts, the font size, and/or the font style for text and data fields on your reports. Access the Font dialog box through the Fonts tab of the Default Settings dialog box. Font Lists all the available fonts. Click a font name to select a different font. Font style Lists the available styles for the specified font. Click a font style to select a different style. Size Lists the available point sizes for the specified font. Click a size to change the size of the font. Strikeout Specifies whether the font should appear with strikeout marks. Underline Specifies whether the font should appear with underlines. private void Fontmenu_Click(object sender, System.EventArgs e) { fontDialog1.ShowColor = true; fontDialog1.Font = richTextBox1.Font; fontDialog1.Color = richTextBox1.ForeColor; if(fontDialog1.ShowDialog() != DialogResult.Cancel ) { richTextBox1.Font = fontDialog1.Font ; richTextBox1.ForeColor = fontDialog1.Color; } } mahes