Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: internet explorer control Pin
jorrod8-Apr-09 1:27
jorrod8-Apr-09 1:27 
QuestionMaking video call Pin
Darken19897-Apr-09 15:34
Darken19897-Apr-09 15:34 
AnswerRe: Making video call Pin
Christian Graus7-Apr-09 17:38
protectorChristian Graus7-Apr-09 17:38 
QuestionCrystal Reports Pin
CodingYoshi7-Apr-09 11:06
CodingYoshi7-Apr-09 11:06 
AnswerRe: Crystal Reports Pin
Mycroft Holmes7-Apr-09 12:28
professionalMycroft Holmes7-Apr-09 12:28 
QuestionIn search of a good PDF viewer control for .NET WinForms Pin
gongchengshi7-Apr-09 10:04
gongchengshi7-Apr-09 10:04 
AnswerRe: In search of a good PDF viewer control for .NET WinForms Pin
Christian Graus7-Apr-09 10:45
protectorChristian Graus7-Apr-09 10:45 
QuestionButton does not generate clicked events after validating textbox in a usercontrol Pin
hmvo247-Apr-09 9:44
hmvo247-Apr-09 9:44 
I have a problem with a usercontrol that does not get focused or something after
leavning the usercontrol. Using the analogy with the document outline the setup is
as follows:

WinForm
- TableLayoutPanel (with 2 rows)
------> UserControl
----------> TextBox
----------> Button (Hello world, this just shows a hello world messagebox)
------> FlowLayoutPanel
----------> Button (OK)
----------> Button (Cancel, shows a messagebox asking whether to cancel)

Now, in the textbox_validating event i check if the text is a numeric value and if
it is not i set the e.Cancel property to true. This prevents clicking on "Hello
world"-button above. However, I've set the CausesValidation property on the
Cancel-button to false since I want the user to be able to cancel the operation
even if the Textbox doesn't contain a numeric value. Now, consider this scenario:

1. Click the "Hello world" button, a mesage box shows, nothing strange here
2. Enter "abc" in the Textbox and click the "Hello world" button, no messagebox
is shown since the TextBox doesn't contain a valid numerical value.
3. Click the Cancelbutton, a messagebox appears asking whether to cancel. Answer
No here just cancels the Cancel-messagebox.
4. Fix the error in the Textbox by entering a numerical value.
5. Click on the "Hello world" button, nothing happens!!!

Here I would expect a Hello world message box but I don't get any! I get mouse_enter, and mouse_down on the Hello world button but I don't get mouse_clicked. However, and this is weird, if I press the Cancel-button, don't need to click on it, just give it a mouse_down and then click on the Hello world button, the Hello world messagebox is shown and everything works well again. What is going on here? If I move the OK, Cancel to the usercontrol it all works well but it is not an option since the OK and Cancel belongs to a surrounding framework. Anyone experienced anything like this? Any help would be much appreciated.

Thanx, Ollie

QuestionRTCP Packet in .net (c# or vb.net) Pin
Saurabh90907-Apr-09 9:11
Saurabh90907-Apr-09 9:11 
QuestionLaunching and Saving an Excel file from Winform Pin
DevWithDoutbs7-Apr-09 8:43
DevWithDoutbs7-Apr-09 8:43 
AnswerRe: Launching and Saving an Excel file from Winform Pin
Rolf Jaeger15-Jun-09 17:25
Rolf Jaeger15-Jun-09 17:25 
QuestionUsing StreamWriter...... Help Guys [modified] Pin
Rajdeep.NET is BACK7-Apr-09 8:32
Rajdeep.NET is BACK7-Apr-09 8:32 
AnswerRe: Using StreamWriter...... Help Guys Pin
behzadcp7-Apr-09 8:40
professionalbehzadcp7-Apr-09 8:40 
GeneralRe: Using StreamWriter...... Help Guys Pin
Rajdeep.NET is BACK7-Apr-09 8:44
Rajdeep.NET is BACK7-Apr-09 8:44 
AnswerRe: Using StreamWriter...... Help Guys Pin
Ashfield7-Apr-09 20:55
Ashfield7-Apr-09 20:55 
GeneralRe: Using StreamWriter...... Help Guys Pin
al3xutzu007-Apr-09 22:45
al3xutzu007-Apr-09 22:45 
Questionadd control to syncfusion gridcontrol Pin
behzadcp7-Apr-09 8:27
professionalbehzadcp7-Apr-09 8:27 
AnswerRe: add control to syncfusion gridcontrol Pin
Judah Gabriel Himango7-Apr-09 19:34
sponsorJudah Gabriel Himango7-Apr-09 19:34 
QuestionBusqueda en un Datagridview Pin
yaguis7-Apr-09 8:07
yaguis7-Apr-09 8:07 
AnswerRe: Busqueda en un Datagridview Pin
Christian Graus7-Apr-09 11:14
protectorChristian Graus7-Apr-09 11:14 
AnswerRe: Busqueda en un Datagridview Pin
Rajdeep.NET is BACK7-Apr-09 20:02
Rajdeep.NET is BACK7-Apr-09 20:02 
AnswerRe: Busqueda en un Datagridview Pin
Blue_Boy7-Apr-09 22:19
Blue_Boy7-Apr-09 22:19 
QuestionFlood Fill in C# Pin
k_crysa7-Apr-09 7:49
k_crysa7-Apr-09 7:49 
AnswerRe: Flood Fill in C# Pin
Thomas Stockwell7-Apr-09 9:22
professionalThomas Stockwell7-Apr-09 9:22 
AnswerRe: Flood Fill in C# Pin
Christian Graus7-Apr-09 11:15
protectorChristian Graus7-Apr-09 11:15 

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.