|
|
|
Oh, you mean Visual Studio's ability to expand and contract blocks of code. That is a function of the Visual Studio IDE. It isn't available in the RichTextBox. You would have to write the functionality yourself.
|
|
|
|
|
|
ahmed17 wrote: How i can do it ?
That would take to long to explain in a forum post. Start by writing down all the functionality you need in your editor. Itemise everything, every minute detail. How it looks, how it response to mouse clicks, key presses and so on. Then work out how you would implement it. What classes you need, how they will interact, what events it will raise and respond to, and so on. Then start writing code. Write unit tests, ensure it works. Use the control. Once you have it to the quality that you want, you can use it in your application.
|
|
|
|
|
Yup, for some bizarre reason the very control we all spend so much time looking at is not part of the .NET framework AFAIK.
If you dont want to do all the code then have a quick look at SharpDevelop (http://www.sharpdevelop.com/[^])
They have written everything from the ground up, but you'll have to spend a fair amount of time extracting the relevant bits - i did read somewhere that you can use their code as it has it's own namespace, and of course it is OpenSource - but there's a lot of code there.
It also a good IDE.
|
|
|
|
|
What? Foldering i have not heard abt this? let me know it in detail?
Regards,
Satips.
|
|
|
|
|
Professor B. Heif is conducting experiments with a species of South American bees that he found during an expedition to the Brazilian rain forest. The honey produced by these bees is of superior quality compared to the honey from European and North American honey bees. Unfortunately, the bees do not breed well in captivity. Professor Heif thinks the reason is that the placement of the different maggots (for workers, queens, etc.) within the honeycomb depends on environmental conditions, which are different in his laboratory and the rain forest.
As a first step to validate his theory, Professor Heif wants to quantify the difference in maggot placement. For this he measures the distance between the cells of the comb into which the maggots are placed. To this end, the professor has labeled the cells by marking an arbitrary cell as number 1, and then labeling the remaining cells in a clockwise fashion.
For example, two maggots in cells 19 and 30 are 5 cells apart. One of the shortest paths connecting the two cells is via the cells 19 - 7 - 6 - 5 - 15 - 30, so you must move five times to adjacent cells to get from 19 to 30.
Professor Heif needs your help to write a program that computes the distance, defined as the number of cells in a shortest path, between any pair of cells.
Input
The input consists of several lines, each containing two integers a and b (a,b ≤ 10000), denoting numbers of cells. The integers are always positive, except in the last line where a=b=0 holds. This last line terminates the input and should not be processed.
Output
For each pair of numbers (a,b) in the input file, output the distance between the cells labeled a and b. The distance is the minimum number of moves to get from a to b.
i want the answer of this problem please.thx
Ahmed Samir
|
|
|
|
|
korani wrote: Professor Heif needs your help to write a program that computes the distance
Does he now... Why don't you help him?
|
|
|
|
|
LOL
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Ahmed,
These forums are not here to solve school or university problems. However if you are working on a project and need some help to solve a specific issue, people here will be more than happy to give you some hints or pieces of code to help you find the solution. Remember that by working on a problem by yourself you learn much more than by just copying from others. It is perfectly normal to make mistakes and start over and over again when you're learning, that's what learning is all about!
So good luck
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
i thought for about a whole minute, how is this related to C#???
|
|
|
|
|
Earlier research has shown that the majority of bees, both domestic and foreign,
prefer a modern programming language.
|
|
|
|
|
korani wrote: the answer
42
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
|
|
|
|
|
Hi,
I have service made in C#.
I would like know, how php script can transmit some parameter to service.
thaks for any suggestion
paja
|
|
|
|
|
Hi
In my web application, I am using a datagrid to display some text which can be of any length. If the text is very lengthy, the datagrid expands and the appearance of the page is weird.
Is there any way to wrap the datagrid text. I found a way listed from online help which works only for IE browser. I want the application to be hosted in any browser. When I open the application in Firefox, the wordwrap doesn't work.
The suggested solution was to apply styles mentioned below to the datagrid.
.Grid<br />
{<br />
table-layout: fixed;<br />
}<br />
<br />
.GridColumn<br />
{<br />
white-space: pre-wrap; <br />
white-space: pre-line;<br />
white-space: -moz-pre-wrap !important; <br />
white-space: -pre-wrap; <br />
white-space: -o-pre-wrap; <br />
word-wrap: break-word; <br />
}<br />
Can anyone help in word wrapping the datagrid text in other browsers.
Thanks in Advance
-- modified at 10:18 Friday 27th April, 2007
Regards,
Ananth
|
|
|
|
|
hello!
try the following
- change the column's property "Resizable" to "false"
- set the width as you like
hope that works! !
Adeel
--
|
|
|
|
|
hello Adeel,
Thanks for your reply.
Since I was occupied with other works, I looked into your response late.
Since in our application uses gridiview, I think the property you had mentioned is not available. Can anything done for word wrapping with gridview.
Ananth
|
|
|
|
|
Hello,
I have a problem using MSHTML.HTMLDocument in my winforms/c# application. I use that stuff from Microsoft.ConsultingServices.HtmlEditor to present and edit HTML in my app. The problem is when I paste some text from Word, which includes comments, I get an error (originating from HTMLDocument, or WebBrowser, I'm not sure) that says I have error on my page (basically it's javascript error, but its irrelevant). I just need to somehow trap this error and prevent it from shoving to the user. Can I use any properties/methods/events of HTMLEditor, or HTMLDocument to prevent it from showing those errors?
Thanks
|
|
|
|
|
What Error it shows?
Regards,
Satips.
|
|
|
|
|
Error is:
A Runtime Error has occured
Do you wish to Debug?
Line: 203
Error: Object expected
The error is not a problem, I know it's cause (there are some javascript function calls in onmouseover events, but javascript itself is not present). I just want to ignore and not show it.
|
|
|
|
|
I have written a TCP/IP Client-Server socket program. It is working fine. Now I want to know that, can I host my Server program on public IP(internet) and use the same Client program to communicate with the Server,or do I have to change anything.
Thanks in advance
|
|
|
|
|
hello!
if you havnt hardcoded anything related to your machine and/or network, logically it should work! either way try checking that practically!
Adeel
--
|
|
|
|
|
My problem is, there is a comboBox with items collection
when user runs the application the user selects the comboBox and deleting the selected item(using delete key)
but this provision should not be there for the user
how can i control this, Please help me
thanks in advance
praveen kumar Palla
-- modified at 9:42 Friday 27th April, 2007
|
|
|
|
|
hello!
change the "DropDownStyle" property of comboBox to "DropDownList"!
hope that is what you want! !
Adeel
--
|
|
|
|