4,439 Posted Topics

Member Avatar for serkan sendur

Well serkan, glad to have met you. You have always been yourself. I appreciated that very much. See ya!:)

Member Avatar for jasimp
-2
372
Member Avatar for xtremebeauty

Hi, working all summer on your project? [url]http://www.daniweb.com/forums/post892819.html#post892819[/url]

Member Avatar for Geekitygeek
-2
257
Member Avatar for NT.

You could check tokens.Length and then act accordingly. Should also advise you to use the generic List<> type instead of ArrayList.

Member Avatar for Antenka
0
216
Member Avatar for EvilLinux

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 …

Member Avatar for ddanbe
0
658
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
0
232
Member Avatar for kahaj

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 …

Member Avatar for DdoubleD
0
90
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
0
93
Member Avatar for chathuD

DUNNO guys... why would anyone download a file and then auto shutdown the computer??? Anyone any ideas? I have...

Member Avatar for sknake
-1
246
Member Avatar for serkan sendur

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 …

Member Avatar for serkan sendur
1
369
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
1
2K
Member Avatar for Anupama G

Serkan, this is the same :[url]http://www.daniweb.com/forums/thread225308.html[/url]

Member Avatar for serkan sendur
-1
103
Member Avatar for tiwas

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 - …

Member Avatar for Rashakil Fol
0
146
Member Avatar for procomp65

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 } …

Member Avatar for procomp65
0
3K
Member Avatar for chillboat
Member Avatar for papanyquiL
Member Avatar for ddanbe
0
154
Member Avatar for S2009
Member Avatar for MervinKoops

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 …

Member Avatar for MervinKoops
0
185
Member Avatar for serkan sendur

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 …

Member Avatar for kvprajapati
1
389
Member Avatar for ctrl-alt-del

[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.

Member Avatar for kvprajapati
0
181
Member Avatar for deepas

Hi deepas, Your problem will have more chance to get solved if you would tell us WHAT error msg you are getting.

Member Avatar for ddanbe
0
154
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
1
1K
Member Avatar for =OTS=G-Man

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...

Member Avatar for sknake
1
191
Member Avatar for rajaseeth

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]

Member Avatar for ddanbe
0
147
Member Avatar for rock9449

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]

Member Avatar for sknake
0
129
Member Avatar for darkocean
Member Avatar for ctrl-alt-del

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 …

Member Avatar for ctrl-alt-del
0
213
Member Avatar for DustinS

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 …

Member Avatar for DustinS
0
218
Member Avatar for EvilLinux

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.

Member Avatar for EvilLinux
0
241
Member Avatar for kofi

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.

Member Avatar for bharat_h03
0
79
Member Avatar for KernMilestone

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.

Member Avatar for quicktpgo
0
553
Member Avatar for jismtu

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.

Member Avatar for jatin24
0
127
Member Avatar for serkan sendur
Member Avatar for ddanbe

This may just be an impression, but I think DANIWEB is working faster, at least on my system!:)

Member Avatar for DdoubleD
0
365
Member Avatar for Cory_Brown

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]

Member Avatar for Cory_Brown
0
165
Member Avatar for Nishanthi

Please help us! Post this on the ASP.NET forum. Show some code where you have problems with.

Member Avatar for Ramy Mahrous
0
124
Member Avatar for tig2810

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.

Member Avatar for ddanbe
0
121
Member Avatar for wil0022

Show us the code you got so far. We will be most happy to help you with your problems.

Member Avatar for wil0022
0
126
Member Avatar for tig2810

Use a DateTime to do it. As an example look at [url=http://msdn.microsoft.com/en-us/library/ch92fbc1.aspx]this[/url].

Member Avatar for tig2810
0
180
Member Avatar for igalep132

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.

Member Avatar for Diamonddrake
0
212
Member Avatar for ohnomis
Member Avatar for ohnomis
0
121
Member Avatar for zydaru

Set the DoubleBuffered property of the form to true. Default it is false.

Member Avatar for zydaru
0
282
Member Avatar for corybaxter

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.

Member Avatar for vincent2085
0
80
Member Avatar for MxDev
Member Avatar for serkan sendur
0
159
Member Avatar for papanyquiL

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!

Member Avatar for papanyquiL
0
305
Member Avatar for sumaira_manzoor

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 …

Member Avatar for DdoubleD
0
160
Member Avatar for C#Beginner

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.

Member Avatar for C#Beginner
0
112
Member Avatar for Salem

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.

Member Avatar for MosaicFuneral
1
984
Member Avatar for EvilLinux

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.

Member Avatar for EvilLinux
0
2K
Member Avatar for neutralfox
Member Avatar for neutralfox
0
189
Member Avatar for Minald

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; } …

Member Avatar for ddanbe
0
95

The End.