536 Posted Topics
Re: To get a different tool tip for each cell, trap the CellMouseEnter event, use e.RowIndex and e.ColumnIndex to identify the cell and then use a ToolTip to display the tip text you want. However, on the ToolTip.Show method use the container of the DataGrid as the window; as using the … | |
Re: If you simply change the Anchor property of your buttons to "Bottom, Left" then adjusting the size of the form will move them up automatically. | |
Re: According to the Usage Instructions in the linked page, that last line should be [iCODE]Console.WriteLine(Answer.getOutput());[/iCODE] | |
Re: Is it because you have the string in single quotes? | |
Re: If you intend to use your own DB of username and password then you must create you own login form and test the entered values against those stored in your DB. If you intend to use the Windows login credentions to validate access to your application then this is much … | |
Re: Cannot access the link. Try inserting the image. | |
Re: Change the condition part of your for loop to test the item cell in the excel sheet for empty. | |
Re: I am not sure what you expect to happen. Debugging shows the the ArrayList contains an array of String and the array you are copying to is an array of MyStruct. There is a type conflict. If you use a stronger typing such as [iCODE]List<string>[/iCODE] instead of [iCODE]ArrayList[/iCODE] this would … | |
Re: I tend to use a global collection that has message objects put in it by MDIChild forms. The message objects have a message and a timeout value. The MDIparent form then uses a timer to examine the collection and cycle the messages on the status bar and remove messages when … | |
Re: Can you post the connection string so that we can asses what might be wrong with it. | |
Re: You are missing the {} around the first part of the if statement. | |
Re: Have you looked at saving the high score table to a project settings value. Or saving to a simple csv file on disk. | |
Re: Try without the AttachDbFilename part and use a catalog name instead. E.g. [iCODE]"Data Source=.\SQLEXPRESS;Initial Catalog=MyData;Integrated Security=SSPI"[/iCODE] | |
Re: adatapost's answer is right. You can attach the events of all the picture boxes in one go. After coding your event handler for one of the picture boxes select all the picture boxes. On the properties window select the events button at the top and scroll to find the MouseEnter … | |
Re: In the help on DataGridViewComboBoxColumn [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcomboboxcolumn.aspx"]http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcomboboxcolumn.aspx[/URL] It states: [QUOTE] You can populate the cells manually by setting their Value properties. Alternatively, you can bind the column to the data source indicated by the DataGridView..::.DataSource property. If the DataGridView is bound to a database table, set the column DataPropertyName property to … | |
Re: Is it not possible to do the test in your principal form and then only show the FormR form if there is data. | |
Re: Have you considered using File.ReadAllLines and File.WriteAllLines? These automatically strip/add line end characters. | |
Re: As long as it is within you own app and not a remote app or other process you can just add an [iCODE]object[][/iCODE] as an additional parameter to your [iCODE]MessageEventArgs[/iCODE]. | |
Re: You've already asked a similar question before! The DateTime class supports a date, a time or a combination of both. When you display the value held in the DateTime object you should look at how the value is formatted to the string equivalent. The 12.00.00 AM is displayed in your … | |
Re: Put the Load Page code in to a functions then call this from formload, previous page and next page. | |
Re: Try this: [iCODE]File.WriteAllLines("data.log", richTextBox1.Lines);[/iCODE] | |
Re: If you set the Modifiers property of the label on the second form to Public or Internal then you can directly set the lable text property just before showing the form. E.G. [CODE]Form tmpForm = new MyForm(); tmpForm.mylabel.Text = this.textbox1.Text; tmpForm.Show(); [/CODE] | |
Re: Not sure how far you have got with this as this is an old post. Anyway have you tried setting your staff gdi as the background of a panel and creating a custom NoteControl for each note. Then all you need to worry about is painting the note in its … | |
Re: Did you try adding the resources using the Resources tab of the project properties. | |
Re: You could also look at regular expresions using [iCODE]System.Text.RegularExpressions.Regex[/iCODE] if you're brave. | |
Re: If you've not solved this yet then look at System.Timer and ToolTip. | |
Re: Try this. DBDateTime = dateTimePicker1.Value.Date + DateTime.Now.TimeOfDay; | |
Re: tinyint is already unsigned. It is a just a single byte of value 0-255. | |
Re: I use VS2005 but I guess it will be the same. When you select your setup project in Solution Explorer a Registry Editor icon is displayed at the top. If you click this, it opens an editor that allows you to add registry items that are added/removed by your setup … | |
Re: The Hashtable accepts any object type for both the key and value. The Dictionary<T1,T2> generic type is just a strongly typed version of the Hashtable with T1 the type of the key and T2 the type of the value. The List<T> generic type is just a strongly typed version of … | |
Re: Hello again Krishnisilva, Try detaching the event before setting CheckState: chDITAR.CheckedChanged -= new EventHandler(chDITAR_CheckedChanged); Then re-attach afterwards: chDITAR.CheckedChanged += new EventHandler(chDITAR_CheckedChanged); Nick. | |
Re: All controls have a Controls collection that can be indexed using the name of the child control as a string. A form is just another type of control and also has the Controls property. e.g. MyForm.Controls["textBoxA1"].Enable = true; However, to access your own properties and methods for custom controls you … | |
Re: Have you considered deriving your class from TextBox instead of UserControl? Otherwise I think you will have to code all the properties that you need long hand. | |
Re: Try this openFileDialog1.InitialDirectory = "::{208D2C60-3AEA-1069-A2D7-08002B30309D}"; | |
Re: write a program that calcultes and prints the take home pay for a commissioned sales employee.allow the user to enter values for the name of the employee and the sales amount for the week.employees receive 7% of the total sales.federal tax rate is 18%.retirement contribution is 10%.socil security tax rate … |
The End.