Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best Practice - Webservice, Stored Procedure, both? Pin
Heath Stewart21-Sep-04 10:52
protectorHeath Stewart21-Sep-04 10:52 
GeneralRe: Best Practice - Webservice, Stored Procedure, both? Pin
KoalaCowboy21-Sep-04 10:56
KoalaCowboy21-Sep-04 10:56 
GeneralInsert a frequency time delay into a ThreadPool Pin
Fahad sarwar21-Sep-04 2:50
Fahad sarwar21-Sep-04 2:50 
Generalcatching control.name change Pin
ShakerWD20-Sep-04 23:55
ShakerWD20-Sep-04 23:55 
GeneralRe: catching control.name change Pin
sreejith ss nair21-Sep-04 0:20
sreejith ss nair21-Sep-04 0:20 
GeneralRe: catching control.name change Pin
ShakerWD21-Sep-04 1:26
ShakerWD21-Sep-04 1:26 
GeneralRe: catching control.name change Pin
ShakerWD21-Sep-04 9:11
ShakerWD21-Sep-04 9:11 
GeneralRe: catching control.name change Pin
Dave Kreskowiak21-Sep-04 9:44
mveDave Kreskowiak21-Sep-04 9:44 
Well, I can't imagine why you would want to do this. But, I can imagine a ton of problems with your idea.

Anyway, in order to get a custom event to fire, you'll have to make your own button class, inheriting from the SYstem.Windows.Forms.Button class. You'll have to expose your own Name property that includes the code to expose an OnNameChanged event. You'll fire off the event inside the Set code for your Name property. Then, you just use your Button class in place of the Windows.Forms Button class.

Now, you're going to run into the huge problem of each button instance knows nothing of the environment in which it exists.

How is each button going to know into what file it has to put it's new name? How is this file going to be identified? Better yet, how is each button going to know about it? They're not, unless...

You'll have to supply a mechanism in your OnNameChanged event to communicate with a plugin you have to write for the IDE that will expose this kind of information and a user interface so you can specify this kind of information.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: catching control.name change Pin
ShakerWD21-Sep-04 9:55
ShakerWD21-Sep-04 9:55 
Generalchanging RowState of DataRow Pin
TehMedic20-Sep-04 23:31
TehMedic20-Sep-04 23:31 
GeneralRe: changing RowState of DataRow Pin
Sendilkumar.M21-Sep-04 0:24
Sendilkumar.M21-Sep-04 0:24 
GeneralRe: changing RowState of DataRow Pin
sreejith ss nair21-Sep-04 0:27
sreejith ss nair21-Sep-04 0:27 
QuestionHELP ME!!! How to design a new control? Pin
bekun20-Sep-04 23:31
sussbekun20-Sep-04 23:31 
AnswerRe: HELP ME!!! How to design a new control? Pin
Kodanda Pani20-Sep-04 23:49
Kodanda Pani20-Sep-04 23:49 
GeneralRe: HELP ME!!! How to design a new control? Pin
bekunkun21-Sep-04 0:17
bekunkun21-Sep-04 0:17 
GeneralRe: HELP ME!!! How to design a new control? Pin
sreejith ss nair21-Sep-04 0:22
sreejith ss nair21-Sep-04 0:22 
QuestionWhy does this exception rarely throw? Pin
mkomasi20-Sep-04 21:40
mkomasi20-Sep-04 21:40 
AnswerRe: Column C does not belong to the table T Pin
sreejith ss nair20-Sep-04 22:24
sreejith ss nair20-Sep-04 22:24 
GeneralRe: Column C does not belong to the table T Pin
mkomasi21-Sep-04 5:21
mkomasi21-Sep-04 5:21 
QuestionWhat type is Control.Anchor ? Pin
Andres Coder20-Sep-04 21:38
Andres Coder20-Sep-04 21:38 
AnswerRe: What type is Control.Anchor ? Pin
sreejith ss nair20-Sep-04 23:24
sreejith ss nair20-Sep-04 23:24 
AnswerRe: What type is Control.Anchor ? Pin
mav.northwind21-Sep-04 1:23
mav.northwind21-Sep-04 1:23 
AnswerRe: What type is Control.Anchor ? Pin
Dave Kreskowiak21-Sep-04 6:53
mveDave Kreskowiak21-Sep-04 6:53 
QuestionHow to access a local variable from out side it's function Pin
Sakkijha20-Sep-04 21:21
Sakkijha20-Sep-04 21:21 
AnswerRe: How to access a local variable from out side it's function Pin
sreejith ss nair20-Sep-04 22:10
sreejith ss nair20-Sep-04 22:10 

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.