UserControl Development and the StyleChanged Event
-
I'm developing a UserControl and I need to know when a user has changed the BorderStyle of the UserControl. I know that this is trapped in the UserControl's StyleChanged Event. But, I don't know how to determine which of the Control's Styles has changed and what it has changed to. Does anyone have a code sample that would demonstrate this Event please.
Regards, Graham
-
I'm developing a UserControl and I need to know when a user has changed the BorderStyle of the UserControl. I know that this is trapped in the UserControl's StyleChanged Event. But, I don't know how to determine which of the Control's Styles has changed and what it has changed to. Does anyone have a code sample that would demonstrate this Event please.
Regards, Graham
Hi, First Each n every control has its own style changed event if u still facing the problem in it then check the fous or active control in your form , One the control has focused=true n active means that control's border sytle has changed.... Hope this will help U
Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...
-
Hi, First Each n every control has its own style changed event if u still facing the problem in it then check the fous or active control in your form , One the control has focused=true n active means that control's border sytle has changed.... Hope this will help U
Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...
I think that I'm too simple to understand all of this. Could you please translate this into something like English. I can also speak French if that is easier for you. :(
Regards, Graham
-
I think that I'm too simple to understand all of this. Could you please translate this into something like English. I can also speak French if that is easier for you. :(
Regards, Graham
Which thing is difficult to understand my english or the meaning of this what i said??? Which default control your are using to create a new user control???? There is 3 methods of doing this 1> Take default control eg textbox n add new features to create new textbox usercontrol 2>Use more than 1 control to create new user control 3>Create own user control without using any default So which method you are using and which control??? May be i help u because i have also created user control before some time....
Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...
-
I think that I'm too simple to understand all of this. Could you please translate this into something like English. I can also speak French if that is easier for you. :(
Regards, Graham
What the keyboard challenged is trying to say is that each of your objects within the control has a border. If it is the UC borderchange event then I beleive it will be the UC container. If you change the border on a textbox within the UC does the event for the UC fire. If so then as ~V~ said chek the current active control inside the UC.
Never underestimate the power of human stupidity RAH
-
Which thing is difficult to understand my english or the meaning of this what i said??? Which default control your are using to create a new user control???? There is 3 methods of doing this 1> Take default control eg textbox n add new features to create new textbox usercontrol 2>Use more than 1 control to create new user control 3>Create own user control without using any default So which method you are using and which control??? May be i help u because i have also created user control before some time....
Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...
Seemed pretty clear to me, mind you your sig says it all - drop 10 characters from a sentence and make it difficult to read!
Never underestimate the power of human stupidity RAH
-
Which thing is difficult to understand my english or the meaning of this what i said??? Which default control your are using to create a new user control???? There is 3 methods of doing this 1> Take default control eg textbox n add new features to create new textbox usercontrol 2>Use more than 1 control to create new user control 3>Create own user control without using any default So which method you are using and which control??? May be i help u because i have also created user control before some time....
Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...
What is difficult is the abreviations you are using. I'm 68 years old and all of the younger generation words are foreign to me. Please be explicit. English or French is OK with me. ;)
Regards, Graham
-
What the keyboard challenged is trying to say is that each of your objects within the control has a border. If it is the UC borderchange event then I beleive it will be the UC container. If you change the border on a textbox within the UC does the event for the UC fire. If so then as ~V~ said chek the current active control inside the UC.
Never underestimate the power of human stupidity RAH
Thank you. Now I'm closer to the solution. I'll test with that and get back to you.
Regards, Graham