|
You may get some help on the internet - both with technology and the functional domain itself. However, there is no "boilerplate template" that will help you get any solution in place.
What you build is unique and your own solution so why do you want to use a template anyway?
|
|
|
|
|
Maybe a template was not the correct word.
I need a sample to help me to understand the structure or the solution clearly, to accelerate the time of design and the coding time. Is a typical program, I don't want to reinvent the wheel.
Thank's for the fast answers
|
|
|
|
|
Such large applications are not open source for a reason. They are very expensive to produce, and hence, the people/companies who make them charge of ton of money for them, not make them available freely.
|
|
|
|
|
i creat custom control that have a lable.
how can i expose all property of this lable for cotrol consumer
|
|
|
|
|
Make its access modifier public.
|
|
|
|
|
Bad idea!
You should not expose controls directly - it locks your control format so you cannot make any changes without risking breaking external code that uses the controls in ways you did not anticipate, and also constrains you to always use that control in future, even if you should "replace that text box with a drop down list and a numeric up-down because that reflects better what the data is used for". If you did, you would break outside code and potentially annoy a lot of people whose code relies on yours.
Instead, use a public property to get and set the value on your internal, hidden controls - that is why all controls default to private when you add them in the designer!
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
|
|
|
|
|
|
No, it is not a good idea - it is a very bad idea. Remember your OOPs concepts - this breaks them (pretty much all of them) and makes future development and maintenance much harder.
Just because you can do something, doesn't mean you should.
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
|
|
|
|
|
|
Please do not post the same question in two places - here and QA. It duplicates work and can annoy people.
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
|
|
|
|
|
The way I would do it is I would wrap each property in a custom property that merely called the underlying property.
|
|
|
|
|
Hi All,i explain below please help me
Client Intermediate Server(Router) Server
~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
| Request(Client) | |
| ------------------> | Request(Router) |
| |---------------------------------------------------------> |
| | Response(Server) |
| |<--------------------------------------------------------- |
| Respone(router) |
| <------------------- |
|
|
|
|
|
Take it to your teacher - this is not a schools forum, it is designed to help solve coding issues.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
It's a diagram showing the transmission of data between a client and server via a router. What is it that you do not understand?
Use the best guess
|
|
|
|
|
sorry
I want to implement simple router application using Scocket(tcp)
Thanks & Regards,
Lakshmanakumar
|
|
|
|
|
Member 3601034 wrote: I want to implement simple router application using Scocket(tcp) Fine, what problems are you facing?
Veni, vidi, abiit domum
|
|
|
|
|
The reason it's jagged is because you didn't use pre tags.
|
|
|
|
|
I want to change text file extension to custom extention..... the following code successfully run.But, doesn't change the extension. In the following code, If I use
string myfile= Path.ChangeExtension(fileName,"ndbm"); It return same thing.....Please help me..
private void changeButton_Click(object sender, EventArgs e)
{
string fileName = @"DataBase\" + exFileNameTextBox.Text + ".txt";
if (File.Exists(fileName))
{
string myfile= Path.ChangeExtension(fileName,".ndbm");
MessageBox.Show("Successfully Changed");
}
else { MessageBox.Show("File Not Exists"); }
}
|
|
|
|
|
Read the intellisense on the method "Changes the extension of the path string". Which mean it has changed the extension of the filename string, exactly as it says.
You need to read and rewrite the content of the file to the new file name.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
As Mycroft said, it changes the extension of the path string.
To change the extension of the file, try this:
if (File.Exists(fileName))
{
string myfile= Path.ChangeExtension(fileName,".ndbm");
File.Move(fileName, myfile);
MessageBox.Show("Successfully Changed");
}
Hope this helps.
|
|
|
|
|
I have not worked with IO for so long I think I have forgotten the most interesting bits - have 5
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
you are doing it wrong you cannot do this in a string it is done only in the string..........you have to change the command such that it is not inside a variable.........maybe us this in the from load event
Path.ChangeExtension(fileName,"ndbm");
i cannot assure you that this will definitely work i only give a suggestion............although you do need to change the code such that it does not happen inside a variable...........
Regards,
Ahsan Naveed
Hope my answer satisfies you.....
|
|
|
|
|
A very bad answer, it does not address the OPs problem and is barely understandable.
Ahsan98 wrote: i cannot assure you that this will definitely work
If you don't know what you are talking about then do not participate, the OP may know even less than you do and think you have given a valid solution.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have to agree with Mycroft - if you aren't sure if something will work then test it before you offer it to the OP as a solution. That way, you either post a working solution, or you learn something. Then everybody involved gains.
Just posting stuff because "it might work" isn't what this site is about, and make it look like you just want reputation points for free. That isn't a good idea!
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
|
|
|
|
|
I am really sorry for the mistake.............I will try my best not to do this again.......actually i am a beginner in c# and on codeproject so i did not know I am really sorry for the mistake............I was just trying fro help not doing this for points although I do admit my mistake and hope not to do it agian .......
Regards Ahsan Naveed
|
|
|
|