|
You seem not to understand that an article is not the correct place to "ask questions". The whole purpose of articles is to describe a solution, or provide information, not solicit help or ask for answers. The forums are the correct place to ask those questions, but this particular forum may be a bit to general in topic to be ideal for your questions. As has been pointed out, the linq and .Net3.5 forum would seem an ideal place for the questions.
The 1 votes and removal of your article were because it was an inappropriate use of an article.
|
|
|
|
|
Rob Graham wrote: The whole purpose of articles is to describe a solution, or provide information, not solicit help or ask for answers.
It would be understandable if he did the article in the form of: here are questions I had with such-and-such, and here is the solution I came up with.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi All,
I'm just working on some new features for my current project. Its a WPF project that makes use of the Composite Application Library. I have a number of assemblies that all talk to the database via a single class caled DatabaseManager in my data layer module. Part of the Composite Application Library is a dependency injection container so all other modules communicate with this class via the IDatabaseManager interface. The class is used to keep table on what is being done with the database so is also registered with the container as a singleton.
At the moment the interface defines 12 properties/methods and I'm just about to add 2 more to this.
Considering the context does this constitute a bloated interface? Its not as if its a 'normal' interface that is going to be implemented in multiple classes its more of an API onto a single class due to the dependency injection.
|
|
|
|
|
It's too big when you can't dead-lift it.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Considering interfaces themselves have no implementation details, I don't think this is an issue. If all of the methods/properties logically make sense to belong to the same interface, then they should be in the same interface. If you can logically break things up into smaller portions and those portions could possibly be used elsewhere indepedantly of the larger whole then break them up and have IDatabaseManager inherit from the smaller interfaces.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
|
in c#....
i have form1 and from there i am openning form2 (normally or as dialog). now wehn user enter a value in form2textbox how can i update form1textbox with the same value?
|
|
|
|
|
if u open it as dialog the call .ShowDialog the blocking of the code-Execution in OwnerForm makes it easy. U can read the Text of the Control after .ShowDialog() has run through.
Furthermore u can use the returned DialogResult to figur out wether the user wants to cancel his input.
Opening it with unblocking .Show() requieres, that u watch the ChildForm_Closed-Event.
In both cases it would be the better programming-style if the ChildForm provides a special Property to read out.
|
|
|
|
|
|
dont use more than 1 form.
1) use mdi child/parent form or
2) use 1 form and fill it with usercontrol that load like a diferent page
(have to use delegates here)
search here, has good samples
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
what if i have a tocuh screen with no keyboard and on the frmLogin they user clicks to show the frmKeyboard so whatever he clicks on the frmKeyboard must be typed on the frmLogin
|
|
|
|
|
hI,
I am using the MSComm port for recieving data in c#.net while recieving data in parts from the OnComm event of mscomm i am not able to get the correct frame i.e. instead of 60bytes i am getting 80 bytes.
Can anybody tell the solution
|
|
|
|
|
hi,
iam doing one project here ia wana to disable the windows key in keyboard by using C#.net2005 can u suggest me give some source code related to this problem...
|
|
|
|
|
|
http://www.codeproject.com/KB/system/CSLLKeyboard.aspx[^][^]
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You need to install a keyboard hook (You don't need a low-level hook for your purpose).
The first option would be to search and use one of the things already written in C#. (Hint: another user has already given you a link to such an article)
Secondly, there are plenty of hooks already written in as DLLs in C++ and you can just use one of those from your C# app after modifying the C++ code to trap the Windows key (0x5B and 0x5C) and ensuring the exported calling convention in the DLL is 'right' for your use.
Thirdly, you can read the docs and write your own hook and give me a shock!
Now - you've been asking this for a while. Where *exactly* is the problem and what code have you written so far?
Cheers,
Rajesh R Subramanian.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi ,
I wud like to implement the backspace button functionality to my button in the form. Plz help me by giving code
|
|
|
|
|
What is a Backspace button? Explain what you want to achieve Clearly
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
the function of backspace button in key board
|
|
|
|
|
Use the key events on the form to check for a backspace key. When you detect the backspace key press then you need to implement the functionality you want.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Hi,
I hav a textbox anda button on my screen when i press button on the screen it shud delete the text in the textbox
ex: as Backspace on the key board works
|
|
|
|
|
You can write your custom Backspace function in Button_Click event, something like this:
Button_Click()
{
if (TextBox != "")
TextBox.Remove(LastCharacter);
}
Regards
While (true) { Human.isLearnable = true; }
|
|
|
|
|
Ok so your first shot at explaining your problem was not very good. This one is much better, and Pedram has supplied an answer, well done for persisting.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I'm tired of balancing the votes on your post. You have a fan I guess.
Cheers,
Rajesh R Subramanian.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|