Click here to Skip to main content
15,908,661 members
Home / Discussions / C#
   

C#

 
QuestionCustom UserControl shape problem... Pin
Kasic Slobodan24-Oct-06 16:08
Kasic Slobodan24-Oct-06 16:08 
AnswerRe: Custom UserControl shape problem... Pin
Kasic Slobodan27-Oct-06 7:31
Kasic Slobodan27-Oct-06 7:31 
QuestionApplication.Exit(); not working in the form constructor, why? Pin
AngryC24-Oct-06 14:57
AngryC24-Oct-06 14:57 
AnswerRe: Application.Exit(); not working in the form constructor, why? Pin
Nader Elshehabi24-Oct-06 15:22
Nader Elshehabi24-Oct-06 15:22 
GeneralRe: Application.Exit(); not working in the form constructor, why? Pin
AngryC24-Oct-06 16:31
AngryC24-Oct-06 16:31 
GeneralRe: Application.Exit(); not working in the form constructor, why? Pin
EricT.25-Nov-10 7:27
EricT.25-Nov-10 7:27 
QuestionSearch for statements in CS files. Pin
Alex Iagovsky24-Oct-06 14:34
Alex Iagovsky24-Oct-06 14:34 
AnswerRe: Search for statements in CS files. Pin
Nader Elshehabi24-Oct-06 15:29
Nader Elshehabi24-Oct-06 15:29 
Hello

Well, regular expressions is pretty much what you are looking for. Use it to identify the pattern of creation, then extract the object's name from it. Using that name you can search for disposal code if exists. Since I'm not that good in Regex, I wouldn't be much helpful in phrasing your Regex, but if you don't know Regex:
The namespace you'd use : System.Text.RegularExpressions
A very good tutorial site: This site[^]


VoidPointer wrote:
CodeDom can help me ?

CodeDom would be a choice if you want to modify the code and compile it through your program. But if you just want to search and modify something in the cs files -which could be much treated as text files-, then you wouldn't need CodeDom.

Ps. You application sounds pretty much as a Visual Studio Add-in!! Is that what you're trying to make?

RegardsRose | [Rose]

GeneralRe: Search for statements in CS files. Pin
Alex Iagovsky25-Oct-06 3:19
Alex Iagovsky25-Oct-06 3:19 
QuestionForms Pin
m.m._200724-Oct-06 14:07
m.m._200724-Oct-06 14:07 
AnswerRe: Forms [modified] Pin
Nader Elshehabi24-Oct-06 15:40
Nader Elshehabi24-Oct-06 15:40 
AnswerRe: Forms Pin
phenix-burn24-Oct-06 15:42
phenix-burn24-Oct-06 15:42 
QuestionSocket class Poll method and POP3 client Pin
Martin Lachowicz24-Oct-06 13:00
Martin Lachowicz24-Oct-06 13:00 
QuestionCounting months between dates? Pin
rbaut24-Oct-06 12:08
rbaut24-Oct-06 12:08 
AnswerRe: Counting months between dates? Pin
Guffa24-Oct-06 12:15
Guffa24-Oct-06 12:15 
QuestionWhy doesn't the left mouse button work... [modified] Pin
new_phoenix24-Oct-06 11:19
new_phoenix24-Oct-06 11:19 
QuestionCollectionEditor and Generics Pin
Jamie Nordmeyer24-Oct-06 10:43
Jamie Nordmeyer24-Oct-06 10:43 
QuestionNeed to access value from app.config file Pin
Shilpa124-Oct-06 10:21
Shilpa124-Oct-06 10:21 
AnswerRe: Need to access value from app.config file Pin
Craig G Fraser24-Oct-06 20:39
Craig G Fraser24-Oct-06 20:39 
Questionrandom numbers Pin
Jad Jadallah24-Oct-06 10:18
Jad Jadallah24-Oct-06 10:18 
AnswerRe: random numbers Pin
Jim Conigliaro24-Oct-06 10:53
Jim Conigliaro24-Oct-06 10:53 
GeneralRe: random numbers Pin
Jad Jadallah24-Oct-06 11:13
Jad Jadallah24-Oct-06 11:13 
AnswerRe: random numbers Pin
Guffa24-Oct-06 12:10
Guffa24-Oct-06 12:10 
GeneralRe: random numbers Pin
Jad Jadallah24-Oct-06 12:24
Jad Jadallah24-Oct-06 12:24 
AnswerRe: random numbers Pin
Guffa24-Oct-06 13:11
Guffa24-Oct-06 13:11 

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.