|
Actually it doesn't matter. I talked myself out of even needing such a feature.
Steve Welborn
Phat Solutions
|
|
|
|
|
is it a better to dispose an object first before Removeing it from the parent control or vice versa. My next question is that if i dispose the object then how could the complier finds this object to be removed like as follows.
mycontrol.Dispose();
parent.Control.Remove(myControl);
|
|
|
|
|
Remove the control before disposing it. You'd probably end up with a runtime exception otherwise.
Disposing something does not set it to null. Disposing something merely releases any unmanaged resources, such as Win32 handles.
Life, family, faith: Give me a visit.
From my latest post: "And you think, 'To keep my anti-Judaic theology alive I must reinterpret this verse too as being a blessing for Christians and not for Jews. I know it strains all manner of principles of interpretation. I don’t read the newspaper this sloppily, but, man, I have a theology to defend.'"
Judah Himango
|
|
|
|
|
Dispose should only be called when you want to free the resource and have it await garbage collection. So never call Dispose on an object then try to access the reference to it...
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
I have read alot of articles about the MVP pattern. I have looked a several examples, but I most are pretty trivial. I am wondering where the validation of user input should occur. I am guessing it should be in the presenter, but I am not total sure.
I have been using CSLA, which is nice but clunky in some areas. I really like the quick validation responses the user gets when the IErrorProvider interface is implemented, but I don't see a way of doing this without junking up the domain model. Hopefully someone can clear this up or point me to an article.
Thanks
|
|
|
|
|
I've seen the MVP pattern applied in various ways, and the way we apply it here at work may be different than what you're used to.
For us, we have validation at several levels: the model object, for example, Employee, "owns" the validation -- you can't make one with bad data.
However, we have stuff in place in the presenter to check for valid input (perhaps utilizing the model to determine whether it's valid data), and if it's invalid, update the view accordingly (e.g. highlight the invalid data in red).
Something along those lines. Does that help?
Life, family, faith: Give me a visit.
From my latest post: "And you think, 'To keep my anti-Judaic theology alive I must reinterpret this verse too as being a blessing for Christians and not for Jews. I know it strains all manner of principles of interpretation. I don’t read the newspaper this sloppily, but, man, I have a theology to defend.'"
Judah Himango
|
|
|
|
|
Hi there,
what is the best way to perform some tasks directlty after a C# application has been installed, where to put the code of doing things,
should I use installerclass? then where to add the action ,
please any help, just with some links
thanks in advance
There is always something to learn
|
|
|
|
|
If you're using a Setup Project to do your installation then a Custom Action may be the way to go:
Link 1[^]
Link 2[^]
|
|
|
|
|
Yeah, ideally you make this part of the installer. Your app gets installed, then the installer runs whatever steps you need. There are some articles on this site, and plenty across the web, that show you how to run custom actions as part of an installer.
Life, family, faith: Give me a visit.
From my latest post: "And you think, 'To keep my anti-Judaic theology alive I must reinterpret this verse too as being a blessing for Christians and not for Jews. I know it strains all manner of principles of interpretation. I don’t read the newspaper this sloppily, but, man, I have a theology to defend.'"
Judah Himango
|
|
|
|
|
Hello!!
How can I make an applications size to full screen?
Thanks!
|
|
|
|
|
|
Especially i am looking for answer specifically in the context of search engines. I have got the code for tokenization,stemming, tf/idf. But not able to use it.???????????
i m Chan Naseeb from Pakistan
|
|
|
|
|
then use it?
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
chancomsats wrote: But not able to use it.???????????
You have to be a bit more specific for someone to be able to help you. How does your inability to use the classes show itself?
Too much coke in your keyboard? Your question mark key seems to be stuck...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I have a job to offer some one. and Just don't know where to post it. Can some one tell where I can post an ad for a VC# Developer
Thanks
Joe
|
|
|
|
|
rent a coder?
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
|
Pete I don't know if if you saw his original post, but I did and he was looking to pay people $50 to write "modules" which were large complex applications. One of which included a whole web server with .NET ASPX support. I think rent a coder would be the better fit, but that's just me
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
Wow. I didn't see that post - just this version. Apparently NASA want somebody to write the software for the Mars missions. They are willing to go as high as $100.
|
|
|
|
|
Yea one of the guy deleted his original post, was gone fast as I clicked the "bad question" button/link/thingie.
Pete O'Hanlon wrote: Apparently NASA want somebody to write the software for the Mars missions. They are willing to go as high as $100.
So that is why they had incorrect conversions between meters and feet... Those lazy overpaid code monkeys were to blame!
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
Well deserved 5 for you there sir.
|
|
|
|
|
What's up People. Thanks for these Boards, ... At times they seem like such a hastle, but these forums are really just the Best spot for help. With that said, Im A Complete Newbie in Programing. Im shooting towards C# because i believe XNA uses the same language. My goal: Design and Develop a simple game. Besides that, i have a small project i want to complete for my footsteps.
This is what im looking to do.
*Listen to music using the "Playing MP3s using MCI - guide i found from this site"
*type single words in an INPUT Field - Pressing Enter or 'Button' Drops the words into a visible container. 'called container A'
container A has 2 buttons on the bottom. 'giving user option to Save or Open list created by user INPUT
*button1 = SaveList "browse to save"
*button2 = openList "browse to open"
Later i would like to be able to ADD or REMOVE 1 or multiple words from Container A to Container B by using Highlight method and pressing the A or R buttons on the side of container A.
So, that wraps it up. Hope it makes scense, I have a GUI design ill post up if that would help. im looking to build this one step at a time.
Thanks.
Chris From Simi Valley
|
|
|
|
|
and your question is??
the "container" you described sound more like a 'List View Control' which adding the required method would be a simple matter of syntax.
Give it a try/shot at coding it and if you have problems ask away
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
hokeesm0kes,
Am a bit confused. Are you just telling us what you want to do?, or asking how to do it?
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
My apologies, I was telling you what i wanted to do, and i guess asking how to do it at the same time.
1 thing at a time.
How do i tell the button to take the contents of the INPUT field and display them in the 'list view control'
Its simple i know =0 (
|
|
|
|