4,439 Posted Topics
Re: I guess you are using VS 2008 C# express. What have you tried for yourself already? Perhaps a search (look right up) on this site might provide you with an answer. | |
Re: You cannot use [B]using ClLib1.bye2009;[/B] because bye2009 is a type. Use [B]using ClLib1;[/B] This is the same as [B]using System.Console;[/B] (can not do that) Use [B]using System;[/B] System contains a Console type. In your program you can use Console.Read(); whatever... | |
Re: What do you mean by an executable file? If you just want to read and write text to a file, this link will give the info: [url]http://www.csharp-station.com/HowTo/ReadWriteTextFile.aspx[/url] | |
Re: Hi narg, welcome here at daniweb:) We don't know what your programming knowledge is at the moment, you have to tell us more. Have you already some code? You obviously going to need the Timer class I guess and a lot of Console input and output. Look in Help menu … | |
Re: Perhaps this snippet can be of help [url]http://www.daniweb.com/code/snippet217204.html[/url] Look for the TX and TY methds. Have not much time now, will be back later if it did not help. | |
Re: double.MinValue is -1 divided by 10^300 or so. Line 17 of your code is OK, but in line 26 and 29 you are substracting this value two times(x 10) from your total. What you have to do is after every input of a grade check if that input is smaller … | |
Re: What exactly do you mean by different shaped brushes? See you are using a SolidBrush. There is also a HatchBrush (a brush with patterns) A TextureBrush (a brush with a bitmap or jpeg image) A LinearGradientBrush and a PathGradientBrush. | |
Re: I already gave you an example snippet in a previous thread. Perhaps it was to complicated I don't know. Did you study it? Give you a new simpler example here: Create a new windowsformsapp and drop a Panel on it, then fill in this code in the Forms1.cs file. [CODE=c#]using … | |
Re: A BackGroundWorker can only comunicate to the UI via events. Read for a full explanation here: [url]http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx[/url] | |
Re: Hi piyush.m welcome here at DANIWEB! What do you mean by [B]using Tab Control To Protect data gettiing shared [/B]? | |
Re: What is I[j, i] ? a point defined in the l lList? You cannot compare ints with Points if that is the case. Suggestion : Give more meaningfull names to your variables instead of I or l. | |
Re: Hi, rzhaley, welcome on DANIWEB:) Copy your for loops code and paste it underneath. Change the for loop with the int x in this: [B]for (int x = 26; x > 0; x--)[/B] you start from 26 and counting down now. | |
Re: Hi student88, welcome on DANIWEB:) Your assignment seems something that can better be done with XNA. I am assuming you have VS 2008 C#. You could start with a new WindowsformsApplication. In design mode drop a Panel control on the form and doubleclick it. You will be dropped into the … | |
Re: Just google "Printing in C#" lots of things there. Example : [url]http://msdn.microsoft.com/en-us/magazine/cc188767.aspx#S5[/url] | |
Re: Hi welcome here at DANIWEB! When you give a Button a name you can use that name as a variable. So : [B]this.But2down.Enabled = false;[/B] would disable the button you named "But2down" | |
Re: That is a very good question Anettest. But, you get more chances in getting it solved if you pose it in the C++ forum, instead of the C# forum. Also: put code between code tags. | |
Re: You can find this code here : [url]http://www.koders.com/csharp/fidB6AC18C659085347BED11C11D98B179E126D79DF.aspx[/url] | |
Re: When you answer to a thread, look below the buttons [B]Submit Reply [/B]and [B]Preview post[/B]. You'll see a panel marked "Additional Options". You will find a button there : [B]Manage Attachments[/B] click on it, it should be obvious now... | |
Re: [url=http://www.kli.org/tlh/pIqaD.html]This language[/url] sure has no diacritical marks and should be ok for everybody, because nobody can really claim it as his. Except for some people, who live far away from Earth... | |
Re: Why am I so dumb to even type this response I am typing right now?:?: | |
Re: Hi mstrop, welcome on this site:) This artical might help you : [url]http://www.codeproject.com/KB/cs/event_fundamentals.aspx[/url] | |
Re: Hi andrewglasgow, welcome here at daniweb! Please be a little more clear in describing your problem and perhaps you could send in some code and pinpoint what is wrong? | |
Re: First thing I found when googling [B]weekdays between two dates in C# [/B] [url]http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=1041[/url] | |
Re: Very good initiative! Just a little remark about the layout of your explantion. Would it not be clearer with less words on one line and some titles highighted in bold or so? | |
Re: Use a [B]switch case [/B]statement to convert every hexadecimal character to a decimal and add all the decimals together. E.G. hex B becomes 11. Multiply by 16 when needed. | |
Re: Hi bravo659! Glad you came back with your code. 2 things to start with : --> Line 17 of your SelectedIndexChanged code reads : [B]for (int index = 0; index > 20; index++)[/B] change it to this if you ever want to enter the for loop: [B]for (int index = … | |
Re: Hi RogerBailey welcome at DANIWEB! Well, why not have a look at this thread [url]http://www.daniweb.com/forums/thread239525.html[/url] and I believe your problem is solved. | |
Re: Depends on what your goals are. I can only speak for myself. Did some programming in C++ in the past, nice, but a steep learning curve. Now I use Visual Studio with the .NET environment and C#. Could have used VB or C++ as languages here as well, but I … | |
Re: Perhaps this snippet can help [url]http://www.daniweb.com/code/snippet217409.html[/url]. | |
Re: Could you tell exactly what is not working? Your code works fine when I use it. | |
Re: How would you enter time in a textbox? Which format would you use? How would you validate the input of the user? I would consider a DateTimePicker control for that. | |
Re: I wonder why this was moved, his is of interest in the C# forum too:( | |
Re: Check beforehand if your textboxes are not empty. if (LeaveDay.Text != string.Empty) etc. | |
Re: A form has a text property you can set to any textstring you want. You will see it appearing in the title bar of the form. Look up information about the Path class in System.IO to know how you can obtain a full path name. Use your help menu or … | |
Re: Are you working with Visual Studio C# and have you started a WindowsFormsApplication? | |
Re: So you would lke to have something like a key logger then? | |
Re: Did you know that in English there are about 30 different meanings of the affirmative word [B]yes[/B]? A story to illustrate: A man comes home from his work, says hello to the wife, installs himself in a seat with a newspaper and a drink. Two options: The wife says: " … | |
Re: Why not use a List of objects that can contain anything you want? Something like this perhaps: [CODE=c#]namespace ConsoleApplication1 { public class Names //class with 2 strings in it { public string Str1; public string Str2; public Names(){} //anything else here } class Program { static void Main(string[] args) { … | |
Re: Please stop using the word urgent, it is probably just your own fault... But as I in a very good mood today, I will give you a tip. As a return I expect from you that if you have any problem in the future, it is not an URGENT one. … | |
Re: SaveFileDialog : In the menubar of VS C# you as last menu [B]Help[/B] I use it quite often, it is there for a reason. Now in that menu select [B]Search[/B] a window opens, Type in SaveFileDialog and see what happens. In line 46 and 47 you want to store first- … | |
Re: don't know how you draw your line but the way you want it you have to draw your line relative to the ClientRectangle of your form. | |
Re: Line 13 :[B] playingDeck.Count [/B]must be smaller than 1 jonsca is right, if you post code and point the error the chance is greater you will get some help... | |
I have a main form which is going to use much input data typed in by the user. So I thought to make a separate form to handle the input. The closest to a solution was this thread [url]http://www.daniweb.com/forums/thread231368.html[/url] But I don't want the second form to be disposed off, … | |
Re: I think [B]bokstav [/B]means letter and is of type char. So [B]gjettet_bokstaver [/B]is defined as an array of char? Or am I wrong? I would like to see the declaration it plus that of [B]array_size[/B] As jonsca already suggested gjettet_bokstaver[array_size] probably has to be gjettet_bokstaver[array_size-1]) | |
Re: With a using clause you don't have to worry about closing a file. The compiler infers that for you and takes the appropriate actions! |
The End.