Click here to Skip to main content
15,905,915 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: show loading message Pin
Thomas Stockwell17-Jul-08 4:41
professionalThomas Stockwell17-Jul-08 4:41 
QuestionRepaint custom control when property changes in CollectionEditor Pin
willydemis16-Jul-08 11:39
willydemis16-Jul-08 11:39 
AnswerRe: Repaint custom control when property changes in CollectionEditor Pin
Thomas Stockwell17-Jul-08 2:48
professionalThomas Stockwell17-Jul-08 2:48 
GeneralRe: Repaint custom control when property changes in CollectionEditor Pin
willydemis17-Jul-08 4:01
willydemis17-Jul-08 4:01 
GeneralRe: Repaint custom control when property changes in CollectionEditor Pin
Thomas Stockwell17-Jul-08 4:39
professionalThomas Stockwell17-Jul-08 4:39 
GeneralRe: Repaint custom control when property changes in CollectionEditor Pin
willydemis17-Jul-08 10:29
willydemis17-Jul-08 10:29 
Questionc# for driver level Pin
knmsuman15-Jul-08 5:53
knmsuman15-Jul-08 5:53 
QuestionDataBindingComplete firing on form Visibility change Pin
bigbrownbeaver15-Jul-08 1:55
bigbrownbeaver15-Jul-08 1:55 
I have a DataGridView that runs hidden in the system tray, and when I unhide it the DataBindingComplete event fires anywhere between 3 and 8 times for the datagridview on the form, drastically slowing down the application. Is there something wrong with the databinding event? MSDN states that changes in the datasource will cause this event to fire. Why is changing the visibility firing it? This is the code for the system tray double click event.

Private Sub sysTray_MouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles sysTray.MouseDoubleClick
        Me.Visible = Not Me.Visible
        Me.ShowInTaskbar = Me.Visible
        Me.WindowState = FormWindowState.Normal
    End Sub


And here is the code in the databindingcomplete event:

Private Sub dgErrors_DataBindingComplete(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewBindingCompleteEventArgs) Handles dgErrors.DataBindingComplete
       Debug.WriteLine("Fired event: dgErrors_DataBindingComplete: by " + CType(sender, Control).Name + " event Type: " + e.ListChangedType.ToString())
End Sub


The code produces the following output when double clicking on the system tray icon:

Fired event: dgErrors_DataBindingComplete: by dgErrors event Type: Reset
Fired event: dgErrors_DataBindingComplete: by dgErrors event Type: Reset
Fired event: dgErrors_DataBindingComplete: by dgErrors event Type: Reset
Fired event: dgErrors_DataBindingComplete: by dgErrors event Type: Reset
Fired event: dgErrors_DataBindingComplete: by dgErrors event Type: Reset
Fired event: dgErrors_DataBindingComplete: by dgErrors event Type: Reset
Fired event: dgErrors_DataBindingComplete: by dgErrors event Type: Reset


I dont understand why it is firing 7 times. In fact I don't understand why it is firing at all.
I need another event for the datagrid that fires only once, or I need to fix what is happening here somehow, any suggestions?

Thanx in advance for answers
AnswerRe: DataBindingComplete firing on form Visibility change Pin
led mike15-Jul-08 5:05
led mike15-Jul-08 5:05 
GeneralRe: DataBindingComplete firing on form Visibility change Pin
bigbrownbeaver15-Jul-08 5:31
bigbrownbeaver15-Jul-08 5:31 
QuestionORA-00936:missing expression Pin
varun_mca_ju14-Jul-08 21:13
varun_mca_ju14-Jul-08 21:13 
QuestionCould not receive Meesages from Socket Pin
HemJoshi14-Jul-08 20:31
HemJoshi14-Jul-08 20:31 
QuestionResize problem with Listbox Pin
emailthiaga14-Jul-08 19:26
emailthiaga14-Jul-08 19:26 
AnswerRe: Resize problem with Listbox Pin
John Ad15-Jul-08 3:18
John Ad15-Jul-08 3:18 
GeneralRe: Resize problem with Listbox Pin
emailthiaga15-Jul-08 4:01
emailthiaga15-Jul-08 4:01 
AnswerRe: Resize problem with Listbox Pin
emailthiaga24-Jul-08 0:05
emailthiaga24-Jul-08 0:05 
AnswerRe: Resize problem with Listbox Pin
darkelv15-Jul-08 23:09
darkelv15-Jul-08 23:09 
AnswerCross Post Pin
Thomas Stockwell16-Jul-08 5:10
professionalThomas Stockwell16-Jul-08 5:10 
QuestionSkins.. Pin
Slick6914-Jul-08 0:06
Slick6914-Jul-08 0:06 
AnswerRe: Skins.. Pin
Thomas Stockwell15-Jul-08 8:46
professionalThomas Stockwell15-Jul-08 8:46 
QuestionA CheckBox with a LinkLabel Pin
Domenic Denicola13-Jul-08 12:27
Domenic Denicola13-Jul-08 12:27 
QuestionRead the URL of the Browser Pin
M_Menon13-Jul-08 5:00
M_Menon13-Jul-08 5:00 
Questionpassword change Pin
Sider8912-Jul-08 5:43
Sider8912-Jul-08 5:43 
QuestionPrinterSettings/DefaultPageSettings incredibly slow on a machine Pin
nxtwothou11-Jul-08 5:31
nxtwothou11-Jul-08 5:31 
AnswerRe: PrinterSettings/DefaultPageSettings incredibly slow on a machine Pin
Luc Pattyn11-Jul-08 6:19
sitebuilderLuc Pattyn11-Jul-08 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.