536 Posted Topics

Member Avatar for JOSheaIV

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 …

Member Avatar for JOSheaIV
0
7K
Member Avatar for lllllIllIlllI
Member Avatar for Ap0ca1ypse

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.

Member Avatar for finito
0
171
Member Avatar for StuartMillner

According to the Usage Instructions in the linked page, that last line should be [iCODE]Console.WriteLine(Answer.getOutput());[/iCODE]

Member Avatar for StuartMillner
0
294
Member Avatar for SBA-CDeCinko
Member Avatar for judithSampathwa

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 …

Member Avatar for nick.crane
0
172
Member Avatar for jellybeannn
Member Avatar for judithSampathwa
Member Avatar for nick.crane
0
219
Member Avatar for useronbug

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 …

Member Avatar for Ionelul
0
160
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
85
Member Avatar for elizabeth mwash
Member Avatar for nick.crane
0
58
Member Avatar for BonaDrag
Member Avatar for BonaDrag
0
96
Member Avatar for pickleleon

Have you looked at saving the high score table to a project settings value. Or saving to a simple csv file on disk.

Member Avatar for JOSheaIV
0
121
Member Avatar for domingo

Try without the AttachDbFilename part and use a catalog name instead. E.g. [iCODE]"Data Source=.\SQLEXPRESS;Initial Catalog=MyData;Integrated Security=SSPI"[/iCODE]

Member Avatar for rozendaa@xs4all
0
101
Member Avatar for pickleleon

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 …

Member Avatar for pickleleon
0
263
Member Avatar for judithSampathwa

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 …

Member Avatar for nick.crane
0
138
Member Avatar for basma.lm

Is it not possible to do the test in your principal form and then only show the FormR form if there is data.

Member Avatar for Ketsuekiame
0
143
Member Avatar for JOSheaIV

Have you considered using File.ReadAllLines and File.WriteAllLines? These automatically strip/add line end characters.

Member Avatar for JOSheaIV
0
178
Member Avatar for Mitja Bonca

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].

Member Avatar for nick.crane
0
107
Member Avatar for judithSampathwa

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 …

Member Avatar for nick.crane
-2
157
Member Avatar for Cap'nKirk

Put the Load Page code in to a functions then call this from formload, previous page and next page.

Member Avatar for Cap'nKirk
0
136
Member Avatar for Isaaac

Try this: [iCODE]File.WriteAllLines("data.log", richTextBox1.Lines);[/iCODE]

Member Avatar for Isaaac
0
829
Member Avatar for elizabeth mwash

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]

Member Avatar for finito
0
97
Member Avatar for Diamonddrake

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 …

Member Avatar for Diamonddrake
1
122
Member Avatar for Cap'nKirk

Did you try adding the resources using the Resources tab of the project properties.

Member Avatar for Cap'nKirk
0
262
Member Avatar for thamanna

You could also look at regular expresions using [iCODE]System.Text.RegularExpressions.Regex[/iCODE] if you're brave.

Member Avatar for nick.crane
0
63
Member Avatar for geoNeo_
Member Avatar for nick.crane
0
101
Member Avatar for judithSampathwa
Member Avatar for sknake
0
481
Member Avatar for Nitin Daphale
Member Avatar for Ketsuekiame
0
394
Member Avatar for geoNeo_

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 …

Member Avatar for geoNeo_
0
2K
Member Avatar for zizi

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 …

Member Avatar for kvprajapati
0
3K
Member Avatar for krishnisilva

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.

Member Avatar for krishnisilva
0
142
Member Avatar for romanoff

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 …

Member Avatar for nick.crane
0
75
Member Avatar for elektrobrain

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.

Member Avatar for nick.crane
0
68
Member Avatar for complete
Member Avatar for nick.crane
0
57
Member Avatar for saiclone

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 …

Member Avatar for stephen84s
0
223

The End.