4,439 Posted Topics
Re: Well serkan, glad to have met you. You have always been yourself. I appreciated that very much. See ya!:) | |
Re: Hi, working all summer on your project? [url]http://www.daniweb.com/forums/post892819.html#post892819[/url] | |
Re: You could check tokens.Length and then act accordingly. Should also advise you to use the generic List<> type instead of ArrayList. | |
Re: Whew! Just going to concentrate on your robot class here. Find out what [B]automatic properties [/B]are. I rewrote it so: [CODE=c#]class robot { public robot() // Default constructor { location = new Point(); // Sets location.X=0 and location.Y=0 direction = 231; } public int direction { get; set; } //auto … | |
Hi all, Left of a TextBox I have a Label and the text changes during a run so I want the text to be right aligned. So I used the TextAlign property of a Label and set it to MiddleRight. It does not work. Looked for an answer, could not … | |
Re: Set as last statement in your Main method something like Console.ReadKey(); otherwise your Console window will vanish into oblivion... Might be a typo but in Main you are calling SetUp[B]T[/B]heArrays in your class this method is defined as SetUp[B]t[/B]heArrays. Find your coding style a bit weird, but fine with me … | |
Hi all, The following does work, but not as I expected. If I use an enum I normally don't have to prefix it with a class name. Here it seems the only option. Can anyone tell me why? [CODE=c#]namespace ConsoleApplication1 { class Program { static void Main(string[] args) { MyEnums … | |
Re: DUNNO guys... why would anyone download a file and then auto shutdown the computer??? Anyone any ideas? I have... | |
Re: Some 20 years ago I programmed in [url=http://en.wikipedia.org/wiki/Modula-2#Description]this language [/url] It had the concept of a DEFINITION MODULE(= +-header file) and IMPLEMENTATION MODULE. You could design all your definitions and then let a team of programmers fill in the implementations. It would complile even if not all implementations were filled … | |
Hi everyone, Want a DateTimePicker column in my DataGridView. Essentially used code I found on MSDN [url=http://msdn.microsoft.com/en-us/library/7tas5c80.aspx]here[/url] Just dropped the different classes in separate files. It works, but the problem is I have to click from 2 to 4 times before I can select a date! The first click shows … | |
Re: Serkan, this is the same :[url]http://www.daniweb.com/forums/thread225308.html[/url] | |
Re: Try this : [CODE=C#]string path = "C:\\test\\another\\directory\\"; // because the split method splits on every "splitter char" // when it comes to the end(which in this case is a "splitter char", // it will split of an empty string so remove the end of the string path = path.Remove(path.Length - … | |
Re: Perhaps you can try this, it works with doubles but you can convert decimal to double. [CODE=c#]class Program { static void Main(string[] args) { double DecNum = 13.573451; string TheTime = MakeTimeString(DecNum); Console.WriteLine(TheTime); DecNum = 1.25; TheTime = MakeTimeString(DecNum); Console.WriteLine(TheTime); Console.ReadKey(); // hold console until a key is pressed } … | |
Re: Nice discussion:) Should look pretty in the Geek's Lounge! | |
Re: Redo or upgrade entirely, if at all possible. | |
Re: Well, the equation of a circle with radius R on the origin is [TEX]x^2+y^2=R^2[/TEX] All you have to do is test if this inequality is true or false : [TEX]x^2+y^2 <= R^2[/TEX] If it is true the point (x,y) is in the circle, if it is equal it is on … | |
Re: Getting te same. But why does someone wants to display \a in a List[B]VIEW[/B]? \a is the alert or bell character, I believe it is ASCII 7 so it is below ASCII 32(the space) and is as such non printable. Same as opening excel.exe in Word. Looks like rubbish because … | |
Re: [QUOTE]The date of the appointment, the time, the text to display, whether and alarm should be activated, and then the date and time of that alarm.[/QUOTE] First, you should try to organize your info into a class or struct. | |
Re: Hi deepas, Your problem will have more chance to get solved if you would tell us WHAT error msg you are getting. | |
Talking about a shoebox type of database here. Would like to make a nice interface in C# for it. Typically something around 50 records or so. (e.g. my wine cellar;) ) To use a genuine SQL DB seems to me like a bit of an overkill. Could use a flat … | |
Re: Use [B]Console.WriteLine("{0,14}","Right"); [/B]to right align a string and [B]Console.WriteLine("{0,-14}","Left"); [/B]left align a string. Think you have to assign [B]description.Substring(0, 14); [/B]to another string. Edit: Must be getting some sleep : jantin24 already said that... | |
Re: Although you could do this with the string methods available. It is better to use the Regex class here. Look at [url=http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex.aspx]this[/url] You can find an example of a path regex [url=http://techtavern.wordpress.com/2009/04/06/regex-that-matches-path-filename-and-extension/]here[/url] | |
Re: Set the PassWordChar property of your textbox to '*'. Put this in your eventhandler: [CODE=c#]// Show the text you typed so far MessageBox.Show(textBox1.Text);[/CODE] | |
Re: I don't know either why that is. You should ask the implementors of the TextBox class. What I do know is that you cannot set the Height of a TextBox with a MultiLine property set to false. (the default) In this case the height depends on the height of the … | |
Re: Seems like you are trying to make your life extremely difficult. Don't know what you are trying to do, but why not use the features of C#? Use a generic list of balls. [CODE=c#]class Ball{//..code here} List<Ball> MyBallList = new List<Ball>();[/CODE] Now with MyBallList you can add, remove, insert and … | |
Re: Is there a reason why you don't use DateTimePickers on your form? They are as easy to use as a textbox and will save you the trouble of validating a date input format in a textbox. | |
Re: How much more unspecific you can get? :'( [COLOR="Red"][B]Data???[/B][/COLOR] Come on, you can do better than that and ask a specific question please. | |
Re: TEACHER: Donald, what is the chemical formula for water? DONALD: H I J K L M N O. TEACHER: What are you talking about? DONALD: Yesterday you said it's H to O. | |
Re: In Form design mode, double click your Add button. You will be in a Add button click event handler. Now write whatever code you want to store your data in your database. | |
Re: He guys, thanks! I'm learning a lot here. :) | |
This may just be an impression, but I think DANIWEB is working faster, at least on my system!:) | |
Re: Try this: [CODE=c#]// What I would do List<string> Strlist = new List<string>(); foreach (string str in listBox1.SelectedItems) { Strlist.Add(str); } // Or try the corrected jatin24 style int n = listBox1.SelectedItems.Count; string[] array = new string[n]; for (int i = 0; i < n; i++) { array[i] = listBox1.SelectedItems[i].ToString(); }[/CODE] | |
Re: Please help us! Post this on the ASP.NET forum. Show some code where you have problems with. | |
Re: IMO you cannot express a year with one digit. With 2 digits a computer might infer to put a 19 or 20 before it, depending on the situation. | |
Re: Show us the code you got so far. We will be most happy to help you with your problems. | |
Re: Use a DateTime to do it. As an example look at [url=http://msdn.microsoft.com/en-us/library/ch92fbc1.aspx]this[/url]. | |
Re: You mean you don't want the user to be able to click on it? A FormClosing event happens before a Form is closed, a FormClosed event happens after a Form is closed. You don't need to implement these if you don't want to. | |
Re: Could you please be a bit more elaborate on the code? What is Word etc. | |
Re: Set the DoubleBuffered property of the form to true. Default it is false. | |
Re: You should download the free Visual C# or C++ 2008 Express edition if you not have already done so. On it's starting page it has a Getting Started section. | |
Re: Do you use a RichTextBox or a TextBox in your application? | |
Re: Cannot read your pgn file. On line 19 you draw an ellipse on the same spot where your circle is drawn, because x and y are still equal to zero. Update those values before every draw and I think you will work it out. Succes! | |
Re: The first word is DESIGN. Take pencil and paper, not a computer. The second word is THINK. You probably need a database. What are the tables and their relationships? You probably need computer input and output. What are the hardware devices you need extra for that? You probably going to … | |
Re: Welcome C#Beginner to DANIWEB! What do you mean by [B]DATA TIP in Break Mode[/B]? If you hover over a variable, and you don't see anything it probably means tha the variable is out of scope. | |
Re: The tag feature is handy! When I click on [B]Java[/B] I get all the threads tagged with Java. If I do this for C# or C++ I get an invalid tag specified error. | |
Re: Your btadd_Click method should just do what it says: add a score to a list. Display can first perform the calculations and display the results. Clear button should only clear the list. | |
Re: Is this something you want to do for your final year project? | |
Re: Welcome to DANIWEB Minald!:) Please post in the right forum. However if you want to do this in a forms application you could do something like: [CODE=c#]using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace GradientText { public partial class Form1 : Form { public Form1() { InitializeComponent(); this.Width = 900; } … |
The End.