Yeah, i liked that gray color :D
does anyone know why i get that text in the start of the run-file yet? I allso noticed that if i have longer texts, all i get is the start of the text followed by "..."
which- is kind of annoying =P
Printable View
Yeah, i liked that gray color :D
does anyone know why i get that text in the start of the run-file yet? I allso noticed that if i have longer texts, all i get is the start of the text followed by "..."
which- is kind of annoying =P
Thats not the answer I expected to get. But in my badest dreams I suspected to get an answer like that. - From a nordic revolutionary. :p programmer :DQuote:
Originally Posted by dahwan
Which text in -what do you mean with run-file ?Quote:
Originally Posted by dahwan
First correct all your troubles then test again. Then tell me exact the steps you are doing and where in which form / file whatever you get which respond ?? Sorry Your request is ununderstandable.
oh my... I am talking about the problem I've had for the last couple of pages. read it through, its still not fixed
dahwan,
Jonny's point (which I agree with) is that your code is structured in a way so radically different than standard conventnions, that there is a good possibility the this may be part of your problem. If if it is not the cause, it makes looking for the problem much more difficult, resulting in people not looking at it (I stopped as soon as I could not find a variable with the name you refered to).
If you like the grey color, then set that in the color scheme for YOUR computer, but do not include it in the program. Windows applications should follow the established color conventions. If I want to set my desktop parameters for purble characters on a chartruse background within a SDI/MDI window, then your program should respect that (which is the default behavior).
Your utilization of partial classes is also unconcentional. The accepted use is to divid a class into 2 sections, one of which is automatically generated by some process (and thus overwritten or modified by some process other than user edits.
Multiple creations of your textbox as Jonny pointed out are also not conforming to standard practices. I could continue the list, but you should get the pooint.
Take the time to re-write your application so it is clean and conformant to generalized coding standards. The see if the problem still exists. If it does, then begin reducing your program down to the ultimate bare bones that will still reproduce the program. Often this reduction will reveal the problem.
If you are still stuck once completing this process, then post a new version of the code along with the exact steps to reproduce it, and I am confident someone will take a look.
Good Luck.
ps: If I download a poster's .ZIP file, and open the .sln file, and get any load or compile errors (unless the posting is about load or compile errors), then I immediately stop looking at that threadm since the poster could not take the time to post a valid reproduction.
This is a similar point then other bad habits of different people e.g. not to use codetags or like in that case eevn not to include a .sln file, no resources and using a .rar instead of standard .zip as usual in this forum. I can agree wiz you wiz and also will no longer accept such files.Quote:
Originally Posted by TheCPUWizard
what are you talking about? everyone uses .rar files...
And also, i have my program exactly how i want it. I have a cs file for each window(form), one cs for the main method and one for events. Thats how i like it, as it makes it easier for me to find what i need.
And my program's structure does not have anything to do with my problem, i just found out :)
Because i made a whole new program (a little one) to test this. It contains a main cs file, and a content cs file. It is a window with a text box and a button in it. The button saves the content of the text box in a txt file in "C:/" and runs it in IE. I wrote in the text box: "My name it Tomas, and i live in Norway"
what i got in IE was: "System.Windows.Forms.RichTextBox, Text: My name is Tomas..."
Which i do not understand at all! i see no reason for it to do so, i gave it no reason to do so and its pretty annoying that a bunch of experts like yourself don't know why it does so :(
I don't. A zip file would be oh so much easier for me. If you repost with a zip, i could take a look.Quote:
Originally Posted by dahwan
Noone was saying that you're program doesn't work because you're using partial classes so much, what they were saying (and i agree) is that splitting your classes up so much just does not make sense. It makes it much harder to figure out what's going on in a particular class as you now have to hunt through several .cs files to find out where everything is declared. This makes bug hunting quite a lot harder.Quote:
Originally Posted by dahwan
If you ever get to the stage of working on applications consisting of a few dozen (or more) classes, you'll soon appreciate why your layout isn't so good.
What is the exact bit of code that's getting the text from the textbox?
OK if you realy want to stay out of any standard then do whatever you want, but then you have to accept that we are not looking for working extra hours to help people keeping their strange ideas about programming. And I can tell you this way you never will get an expert in this. And with that arrogant way you will no easily get a job in that business.Quote:
Originally Posted by dahwan
Actually, look up the Model-View-Controller design pattern. I think that's more what you're looking for. It is a particular way of splitting your code up in a clean, easy to understand manner.
Actually fewer than 5% of the computers (running Windows) I see have the ability to access an .rar file. But since a "compressed folder" is really a Zip file, EVERY windows computer can directly access a .zip file. [I have 37 computers here, 2 have WinRar].Quote:
Originally Posted by dahwan
Then feel free to use it. But don't ask/expect help with it.Quote:
And also, i have my program exactly how i want it.
I did not see a project with just those two files, but I will go back and look... (Went back and looked. Did not see a zip file posted which contained 2 .cs files (which is still not minimal, btw)).Quote:
Because i made a whole new program (a little one) to test this. It contains a main cs file, and a content cs file. It is a window with a text box and a button in it. The button saves the content of the text box in a txt file in "C:/" and runs it in IE. I wrote in the text box: "My name it Tomas, and i live in Norway"
what i got in IE was: "System.Windows.Forms.RichTextBox, Text: My name is Tomas..."
This is the type of attitude that gets people ignored (or banned for life). We are all volunteers, we all have jobs, families, lives. And you think you have "some right" to get help??? You are not paying for this (I can send you a list of paid support sides strarting at $125/hr if you like).Quote:
Which i do not understand at all! i see no reason for it to do so, i gave it no reason to do so and its pretty annoying that a bunch of experts like yourself don't know why it does so :(
That would probably be good for the OP's design, but is relly a divergence from the thread. What we (Jonny and myself) have been asking for is a MINIMAL program which duplicates the behavior. If it really is an issue with the RichText control, then the repro should (probably) be a total of 5-7 lines of code.....Quote:
Originally Posted by Mutant_Fruit
You are so great my dear ! :D :D
Why should we have unnecessary hours of seeking, only why you are annoying regulations which, if used keeps standards in, which means, can be read more easily by any other programmer. So what you think that you feel good to oder it in your specific manner goes contrary to any other long proofed programming style. The question is do you want to learn or not. If not then why are you still here asking for your damned totally worse code.
type in an X in your gray textwindow ( richtextbox ) and it will instantly terminate your program.
This is the why. But looking for it normally needs some seconds. In your case I first have to research your strange ideas of splitting code of a Form in different pages. Its just as a puzzle :rolleyes:Code://NEW FILEif (kea.KeyCode == Keys.F2 || kea.KeyCode == Keys.N && kea.Modifiers == Keys.Control)
{
txtbox1.Text = "";
}
//
//
//CLOSE
if (kea.KeyCode == Keys.X || kea.KeyCode == Keys.N && kea.Modifiers == Keys.Control)
{
Close();
}
The problemis obviously
Because you havn't set the red braces your program uses or statement and as it is fulfilled pressing X it doesn't check further on and terminates the Mainwindow You yourself stetted the close command.Code://NEW FILEif ((kea.KeyCode == Keys.F2 || kea.KeyCode == )Keys.N && kea.Modifiers == Keys.Control)
{
txtbox1.Text = "";
}
//
//
//CLOSE
if ((kea.KeyCode == Keys.X || kea.KeyCode == Keys.N ) && kea.Modifiers == Keys.Control)
{
Close();
}
CPU_Wiz asked you in an early post if you havn't used the richtextbox with its ToString() Property. You answered 'no'
But in your code I foundObviously you did the same error in your 'small testprogram' too, or you wouldn't have got the same fault.Code:void run_click(object sender, EventArgs run_click)
{
string tempFile = Path.GetFullPath("C:/csc/");
string file = tempFile + "temp" + ".html";
StreamWriter SW = File.CreateText(file);
//SW.Write(txtbox1); // Here you have it You are not writing the text to the stream you are using txtbox1 object as a string so the compiler did for you txtbox1.ToString()
// correct code would be
SW.Write(txtbox1.Text);
SW.Close(); // I added this for you, but doing the code with using statement would be much better as mentioned before too
// Additional: You need to close the stream so your file is updated
// otherwise you cannot find any data on your webbrowser.
Form test = new Form();
test.Text = "Testrun";
test.Width = 640;
test.Height = 480;
WebBrowser wb = new WebBrowser();
wb.Parent = test;
wb.Dock = DockStyle.Fill;
wb.Url = new Uri(file);
test.Show();
}
I have also read the text of your about window.
Excuse me, but do you yourself really beliefe that you are in a state to help any other person in learning C# ? Come down to the earth please.:thumbd:Code:lbl2.Text = "My name is Tomas Sandven.\nI have been programming since 20/3 2007, when i found my first free C# programming book on the internett. Since then i have been developing a series of programms to help me learn.\nMy official IM and email adress is [email protected]\nFeel free to contact me if you need any kind of help programming C#.";
Here is the evidenz that I reapaired it ! But if you dont come down to the earth and correcting what we are trying to learn you. I'll disconnect of posts with your name
So, (after Jonny "gave it away"). Here is the offending line:
This line of code calls the .ToString() method as I stated back in reply #91 (and i believe earlier, also)Code:SW.Write(txtbox1);
However I discounted this because the Dahwan, specifically stated the problems was related to the contents of richtxtbox1
Simply amazing (even after all these years), how people can post completely incorrect information, and when asked to at least some some reasonable effort, become extremely rude.
Alas, it looks like I will be adding another person to the "Ignore" list (3rd one this year, out of 2000+ posts to people who showed at least some willingness)....
I think I'll follow this idea, because what me drives crazy is, that since post#85 he grumbles around that nobody finds his troubles. But in this post#85 he has shown a code which wasn't the code he really used in his program ! This code is nowhere ! So nobody could find this error. As I had seen the code of his testRumWindow class here on the web I was searching through his code where he will have something like richtextbox1 in his code, but I even could not find the testRunWindow code which he showed here.Quote:
Originally Posted by TheCPUWizard
Also nowhere in the program there was only a single line about a richtextbox1 in this code.
His code shown on the web was ( look at post#85)
and this code was commented by him withCode:using System;
using System.IO;
using System.Xml;
using System.Drawing;
using System.Threading;
using System.Collections;
using System.Diagnostics;
using System.Windows.Forms;
using WebSlinger.Properties;
using System.Text.RegularExpressions;
namespace editor
{
class testRunWindow : Form
{
private WebBrowser browserWindow;
public testRunWindow()
{
//
//
//TestRun window
this.Text = "Options"; //titlebar text
this.Width /= 2; //width
this.Height /= 2; //height
//
//
//Browser window
browserWindow = new WebBrowser();
browserWindow.Dock = DockStyle.Fill; //dock
browserWindow.Parent = this; //parent
browserWindow.Url = new Uri("http://www.google.com"); //adress
}
}
}
So everyone looks for richtextbox1 through all of the program, which is perfect out of any standard, really never seen a better example of getting a private system of disorder, or should I say: mess ?Quote:
Originally Posted by dahwan
In the truth the 'run' button was a TestRun button, which had a run_click delegate, but thats nearly the same isn't it ? :rolleyes:
And who cares about that the richtextbox1 he mentioned here, in reality was named txtbox1 in the program and exactly that code which produced the error he didn't post. He said that he saved richtxbox1.Text ( see above ) Useless to say that in truth exactly in the not shown codepart he saved the datastream but using only textbox1 ( without .Text) as his source, which created the error, he was grumbling for all the time.
But blaming us for our helpfu hands, we are not able to repair his problems. Stubborn he refused all of our comments to get a standard order in his coding. Ignoring the fact that his confusing way also confused himself he declared that it could not be his code as he has done another project which created the same problem. reading his post about this I really think, he was believing he has found 'a big MS bug' :D :D
As I personally hate ignorance and as he is obviously a person who didn't really want to learn, whatfor should I any longer answer his posts ? :eek:
No, I for the future dont !
ignorance = lack of knowledge. This is expected, and why people post. ;)Quote:
As I personally hate ignorance and as he is obviously a person who didn't really want to learn, whatfor should I any longer answer his posts ?
arrogance is a problem.... :mad:
Oh thats definitly not, what I wanted to express. In german 'ignoring' things means not to give any attention to it. So for example when I say I will ignore his post it means, I will no longer read them, even if they show up on my PC. Whatever an other person says, if you are an 'Ignorant' you do in a way as if the other just hasn't said anything. 'Ignoring a person' means he is there, but you are doing like if he isn't there. If he is talking to you this is just the same, as he's talking against a stone ! In this way, I was talking about 'Ignorance' This comes from an attitude not to allow other people to be corrected by them. And is maybe in the deapest background a problem of a inferiority complex. This attitude is followed by an unability to learn then, because the person thinks - he himself knows all- .Quote:
Originally Posted by TheCPUWizard
Thats what was in my german pictures in my mind when I said 'I hate ignorance' But I can agree with you, that 'arrogance' is maybe the better word for this attitude :thumb:
This thread has been most amusing. At any rate, I am in the same boat as dahwin. I am trying to learn C#, a very daunting task I might say. I was wondering if you guys knew of any good, basic beginner books?
I do not have any programming experience in any language. I have been a system administrator for many years and would like to learn something knew. I just started with two step by step books(one is a for dummies book). One I had to put down as it is written for visual studio(older version) and I am unable to follow the steps in their walk through tutorial. I have done as much as I could out of that book. I am now using another book which seems to be pretty good but looking for more. My goal is to read the chapters of different books on the same topics at the same time to get a better understanding.
Any recommendations?
Yes and no. If you are trying to help people and they refuse to learn its sometimes absolutly frustrating. If someone takes your ideas just as a sponge takes water then its great to help peopleQuote:
Originally Posted by ddjammin
The MS Visual Studio C# 2005 step by step is a good one.Quote:
.... I am trying to learn C#, a very daunting task I might say. I was wondering if you guys knew of any good, basic beginner books?
also there is a pretty good book on the net which has many additional explantions and pictures to illustrate the concepts Its named Illustrated C#2005 and you find it here
http://www.apress.com/category.html?nID=38 in the C#section. Its only some few U$ to buy a download version. And there is additional a big file with examples
Basically what you need to learn is not a lot of books. Sure sometimes one book explaains something better then another one. But in my experience (and I'm now 40 years of school and I learned programming in a time where we used punched cards for programs, so I had to add a lot of knowledge in all the years for my own and I did this mostly by books ) if you read a book and you did not understand whats written there then you get tired to read furter on and took the next book. But thats wrong. Find out which words you cannot understand and you will be able to get fully understanding. Everytime if your head feels heavy take a PC and do examples for yourself, about things you have read and understood. Try it out and you get trained that way more and more.
then read next chapter, clear all terms in it and when understood do some examples.
You cannot read furteher on in a book when there stood OOP and you have no ides about what that means. And its also not enough that you know that this means Object Orientated Programming, you need to get fully understanding what this means so clarify what this is. Therefor you maybe need a good glossary or a simple book which minimum explains basichs of OOP . Then you can go further on in text and your knowledge will increase very fast. No matter it need half a weeek to clarify what OOP is, but after this, you are able to understand what this means and when this tech is used in the book you will make it out and understand whats going on. ( And modern programming is OOP technique all the time I would say)
Great decision :thumb: ;)Quote:
I do not have any programming experience in any language. I have been a system administrator for many years and would like to learn something knew.
So get the newer version MS Visual Studio C# 2005 Step by stepQuote:
I just started with two step by step books(one is a for dummies book). One I had to put down as it is written for visual studio(older version)
Its significant that when you have studied your materials very ycorrect then you have a very clear feeling in your head and your body feels lightweight. To less practicals and you will feel heavy of weight especially in the head. there is one additional part. I'm normally trying to visualize also theoretical concepts like data are a piece of paper and storing them means to put them in a square place on my table which then in my phantasy is my discdrive. Also I use drawings on paper, because visualisation is very good for understanding.
On the other hand, if you have misunderstoods or not understood words your head feels confused and dizzy.
So thats my experience and this way I have learned Basic of the 80th, Fortran, old C ( before we had any windows, PowerBasic, Basic for an old non IBM system, Access Basic in different versions , Borlands C++ , MS Visual Studio C++ with MFC , VB 4-6 and now I'm just learning C# since approximatly 3 quaters of a year now.
In nearly every of that languages I have coded programs. Training and studying gives you a fast progress. There is one additional part.
In my sight of view I can help others to the point of my own knowledge, no more, but helping others also is a good method to find leaks in my own knowledge. And its also training.
And i never have had the idea 'that I know all about siomething' Because this is the stonewall where all learning would be finished. thinking to know all about stops the possibility to learn about something. Got it ?
So feel free to ask whatever you need but IMHO never only ask for asking, without any practical usage in your mind. This sort of questions may be good in a philosophical aerea, but not in a practical study.
You are welcome:wave:
I have to agree with Jonny (been doing alot of that lately).
Pick ONE book. Start from the fronty and skip nothing. Key in EVERY code sample. Run EVERY code sample through the debugger, line by line. Move to the next paragraph/sample/chapter when you are convinced you have a solid understanding.
Use other sources (searching CodeGuru as well as Google) for clarification or additional information on things you find difficult.
If you run into some serious trouble, post here. Read the FAQ's before you post, and try to make sure your posts are complete will ALL the necessary information (We do have to charge $$$ for mindreading :lol: ).
Good Luck, and welcome to CG! :wave: :wave:
Thanks for your advice. I appreciate the time you took to write such a detailed response. I have actually gone back over some of the chapters and have a much better understanding. Your advice is solid.
You are very welcome (see the people here are really willing to help those who show just a little effort :) )
Also remember to rate those posts you find helpful.
If you have any further questions, please start a new thread. :wave: :wave:
They were rated right after my reply:). I could tell people are willing to help here. I would have given up long before you guys did and I am very patient. I most certaily will be using this site from now on.
great :) And - You are welcome :wave:Quote:
Originally Posted by ddjammin
hi again everyone... i am very sorry for arrogance, ignorance and lack of knowledge. I Really didn't mean to get this forum ticked off.
You got my question answered JonnyPoet and i am very grateful. Thanks a lot.
by the way, all the code you guys see thats not used in my program is because i am in the learning phase, and i am changing the code of the whole program over and over again trying to make it feel better. The testwindow class, i decided to put it in the onclick event.
thanks and sorry againCode:void run_click(object sender, EventArgs run_click)
{
string tempFile = Path.GetFullPath("C:/csc/");
string file = tempFile + "temp" + ".html";
Uri dir = new Uri(file);
SW = File.CreateText(file);
SW.Write(txtbox1.Text);
Form test = new Form();
test.Text = "Testrun";
test.Width = 640;
test.Height = 480;
WebBrowser wb = new WebBrowser();
wb.Parent = test;
wb.Dock = DockStyle.Fill;
wb.Url = new Uri("C:/csc/temp.html", System.UriKind.Absolute);
wb.CreateGraphics();
test.Show();
SW.Close();
wb.Update();
}
DahWan (not dahwai :P)
My program is starting to work quite well!
One problem i still have is that when i "run" the file, i have to update(F5) to display what I've done. How can i do that automatically?
wb.Update() didn't work...
I figured it out, no problem ^^
I told you you have to close the writer stream just after finishing the writing and not in the end of the function. Otherwise its qwaiting for additional writings and not writing back all the data to the harddisk. Its absolutly necessary to close the stream, so it writes back all the data and finishes this, otherwise reading before closing the stream will lead to an empty html.Quote:
Originally Posted by dahwan
See the blue written code in post#112 line 9 text: SW.Close();
Blue written I 'm everytime suggesting people to add code red written lines suggest to be wrong and needs to be deleted.
In your code wb.Update() cannot work as the stream which is read is empty if you havn't closed the write procedure.
Code:// your code ...
// here you access the html for reading the data but the writing stream is open so your html file is empty
wb.Url = new Uri("C:/csc/temp.html", System.UriKind.Absolute);
wb.CreateGraphics();
// here you show the empty html in your browser
test.Show();
// now you close the writer and the html file on Harddisk is finished
SW.Close();
// but the data you have read to your browser are still that of the empty file from before
// now you rewrite this date ( which are empty ) again to the webbrowser, so nothing changes.
wb.Update();
I know, i figured it out...
Anyway, more progress, more problems. When i click ctrl+t to add a title tag, the tag ends up in the end of the text, where ever my pointer is.
How do i add the tags where my pointer is? And if possible, how do i put the pointer in between the tags?
This depends on your code as you didQuote:
Originally Posted by dahwan
Its obviously that you are adding this to the end of your richtextboxes text. So dont wonder:pCode://INSERT <TITLE></TITLE>
if (kea.KeyCode == Keys.T && kea.Modifiers == Keys.Control)
{
txtbox1.Text += "<title></title>";
}
And here is what you need to doAnd look for similar errors in other parts of your codeCode://INSERT <TITLE></TITLE>
if (kea.KeyCode == Keys.T && kea.Modifiers == Keys.Control)
{
//txtbox1.Text += "<title></title>"; delete this
// get actual position of the caret
int CaretPosition = txtbox1.SelectionStart;
// devide the text in the text before and the text after caret.
string sTxt1 = txtbox1.Text.Substring(0,CaretPosition);
string sTxt2 = txtbox1.Text.Substring(CaretPosition);
// insert the needed tag between the two parts and write all back to rtb
txtbox1.Text = sTxt1 + "<title></title>" + sTxt2;
}
Of course, that code makes so much sense XD
thanks a lot!
Oh my word!!! Suddenly everything is so easy!!! Not only do i add the tags, but also do i put the selection between the tags! This is so much fun ^^
thx a lot, poet!!
Sounds as if you have had a big win, getting rid of some 'big mysteries' simple named 'misunderstoods' :D :lol: :DQuote:
Originally Posted by dahwan
Enjoy and - go on to be interested in learning - instead of being a 'know best' boy ;) :wave:
I'm a bit offended, but so what? I'm so happy!!! :D
?? who is offending you. Its only a note for you to change your mind and don't falling back to former habits.
And again: If we need to read your code then it needs to be done in a standard way. If you really dont understand why this is necessary, thenI ask you why you dont write your posts in norway language ? Because nobody would read it, its too difficult first to translate your text to english, then reading it, then answering. So this is obviously clear for you.
And this is the same 'why' , why we need a standard way of writing code. Nothing against to have order in your class. Easy to do For example you can order them into Properties, methods and Events using regions. This way you have a nice order on a form and clicking to the specific region it opend and closes.
Try this instead of unusual cutting your classes into parts.Code:#region myEvents
.... all your events code
#endregion
BTW: All your code has no correct dispose Methods. Again look into what the wizzard does, when creating a project to see what parts are necessary to have a correct working code.
Also think: Bas Habits in coding are easily trained but nearly impossible to correct, when you have trained yourself this way.
ok i get your point, but do you think i should have my forms in separate files?
The general rule is that each class is in it's own CS file. You never put more than one class in a file. Therefore each form is also in it's own CS file.
If you have a class which contains many subclasses inside it (see example below) sometimes it is useful to write each of those subclasses in a different CS file and make the "Test" class a partial class, similar to what you're doing now.
Also, google for the MS guidelines on naming variables and methods. It is very good to adopt a coding standard and stick to it, it may as well be the MS one.Code:public class Test()
{
public class InsideClass()
{
}
public class InsideClass2()
{
}
public class InsideClass3()
{
}
}
Lastly, as a general rule of thumb, the length of the name of a variable should be proportional to it's scope. For example if you're writing a for loop, you'd use:
for(int i=0; i < blah, i++)
But if you have a variable that's going to be alive for quite a while, give it a descriptive name. As a (bad) example, you wouldn't name a class "a" because that's not descriptive and no-one will know what it's for.
There is one additional point, which explains you why to use of descriptive names. Programs very quick exceeds to bigger projects. I have e.g VB applications with 100.000 lines and more. In debug time its much easier then to read txtFamilyName.Text and txtPhoneNo.Text then only to have txt1.Text ... You know what you have in front of you, which usage it is and just where you are running through your code. Believe me, Debugging sometimes is needed years after you have written some code. People want add ons to your program, you have written lots of other things in between and you do never remember each piece of code you have done and why. In all this cases giving descriptive names and a good inline documentation or a header dokumentation helps to reunderstand difficult codeparts. So when we do
or what I showed you createing regions is very helpful when the code exceedsCode:// some text as explanation
I'll give you a small example
Please tell me what I'm doing here ? nobody knowsCode:class C
{
// includes Property FN, SN, T,P,Fx,E,St,... Method S();
}
// somwhere in the program declared you have
private C1 = new C(); //on a form you have a button btS and its click delegate like
private void btS_Click()
{
C1.S();
}
and in difference
What do you think you will be able to read easier after some years ? What do you think is easier to read for people who are asked to find codeproblems ?Code:class Customer
{
// incluses Property FirstName, SurName, Title, Phone, FAX, Email, Street, ... Method Store();
}
Private myCustomer = nw Customer();
private void btStore_Click()
{
myCustomer.Store();
}
For the full picture, just as explained before by Mutant_Fruit. There is no probleme to have SW for the writerstream and SR for your ReaderStream as they are used in some few lines and have a short lifetime.
But it can make troubles ( especially if others should debug, to have a richtextbox and giving it a wrong descriptive name like textbox1. People will not look for a richtextbox when there is textbox1. ( especially when in your post there is explaiined you have troubles with richtextbox1 !! )
Normally using a descriptive name, as this is your main editorwindow it would get a name just describing that e.g. RtbMainEditor if you still prefer the hungarian notation, which has lost its importance in C# naming rules But I think this is still accepted by most C# programmers. If you dont want using that Style you also can name it MainEditorRtb.
Both will enable more easy reading your code. You will get much more people willing to help, when they are looking to your code. ;)
So I think this would be worth to reorganize your program.
And: As you have proven now to yourself that you are able to get a design without any automatic designer, now come to normal standard and use the designer using the wizzard. Its code will be placed on a separate page, so you easily can see that its created automatically, you can design your form as you want and you will see it at designtime how it looks, so it also saves your time, which you can invest in creating the real functionality.
This also makes sure that your code has a correct Dispose() Method ( which is still missing in your code ).
Doing all that, we really would enjoy reading your code, because it looks as you are able to learn it, only needs to overcome a bit of stubborn habits (- which- we Austrian say, are quite normal for a nothern born 'Wild'. :D And 'Northern Wilds' are all the people living in the geographic line of Hamburg or more northwards :D 'Wild' is german slang meaning people not civilised, just as we have the picture of the barbarians :lol: :lol: )
ok, thanks. i get your point =)
I'll change it right away, and change my program to what you call standard structure.
I'll get back to you.
Great to hear that. Post the new Project in a zip file as usual ( if you have no winzip its freeware on the net for 30 days trial but works longer too.( its then remembering you that should buy it - and you should really do as it is cheap and worth the price. )Quote:
Originally Posted by dahwan
Jonny,Quote:
Originally Posted by JonnyPoet
Actually you dont even need it, just "SendTo-->Compressed Folder"
Our programming master, ladies and gentlemen! :DQuote:
Originally Posted by JonnyPoet
(Just so you know, its WinRar thats 30 days free then buy, not WinZip) :)
A yea, I have winzip since years so I never tried it with the OS directly;)Quote:
Originally Posted by TheCPUWizard
I'm using Winzip as a regular user since years and as I remember its also a 30 days trial there. I dont think they would have changed that in the time since I bought it.Quote:
Originally Posted by dahwan
So first look, before you come back to old habits only being antagonistic. :rolleyes:
Yay! All shortcuts working, all tags being added correctly, run file works ---
Here is the first release of my web development kit (sounds much cooler than it is)
Say hello to v.1.00.0 :D
I actually expected some comments on the last post, but i guess that's out the window... :P
What should be commented on your EXE file. We have told you in former posts we never run compiled code. I expected a reordered project with code using correct naming of fields, classes ... filed in the correct way , just as I described you, you should do. Instead you are posting a compiled project where nobody knows whats in it and if you have changed your unusual programming style. So what should I comment. reread forum rules, that my comment on posting an exe fileQuote:
Originally Posted by dahwan
-.-
Dude, you seriously don't trust me? you've been with me from the start man ^^
you should know i couldn't have coded a virus in a million years.
How can you ever download any software from the internet? its all exe...
Come on, i swear its the project I've been working on. I wish one of you had the guts to try it and tell everyone its safe :(
I want someone else than me to try it and comment it. Not from the code, but from the GUI.
Plz :(
I just don't have the time to gather up all the code and zipp'em down and send them. Compiling it to one file and sending it is sooo much easier :(
What if you happen to have a virus on your computer that has infected your program? Stranger things have been known to happen. In most forum's I've been in, it is standard practice to not run from an exe.Quote:
Originally Posted by dahwan
Hi, This post is very informative, however I would like some specific information. If someone can help me then please send me a private message. Best Regards,
Pakistan Property | Wholesale Suppliers
Wholesale Canadian Directory | All UK Wholesalers