Command Button does not recognise click event from mouse


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Something about the SF controls I need to know about?

I would have to look at your logic in the class, but there is nothing tricky about the SF buttons.  In fact, if you look at the Object Browser, you will see that it inherits off of the System.WIndows.Forms.Button.  The only additional logic is localization and data binding which would not affect this logic.

If you are running VB.NET, make sure that the method of the button has a Handles associated with the method.  Also, since you are calling the ShowDialog method you can also close the form by setting the DialogResult (also standard .NET).

DialogResult = OK

Do you have the same results when you call the DialogResult?  If you don't find the problem please post the logic of the button (including the handler) so that I can see what the logic looks like.  Thanks. Smile

Fred Seider
Fred Seider
StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)
Group: Forum Members
Posts: 3, Visits: 11
OK, newbie here.  I have a MainForm that calls an AboutForm with AboutForm.ShowDialog()  Both forms are SFThemed Forms.  I added a button to the AboutForm, added a click event, and a me.Close(), but the button never catches the click event.  However, if I make the button active with the tab, I can press the return key and the Me.Close will execute.  If I do this with standard windows forms, as I have done forever, it works fine.

Something about the SF controls I need to know about?

Thanks,

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search