2,157 Posted Topics

Member Avatar for guvengunes

They have a FAQ with how to install it [URL="http://developer.gnome.org/gtk-faq/stable/c192.html"]here[/URL]

Member Avatar for Rashakil Fol
0
186
Member Avatar for katisss

Not sure what the issue is. Just limit the dynamic method to n items in the proposed solution. If it's over n, you reject it as a failed solution.

Member Avatar for katisss
0
136
Member Avatar for virusisfound

When you run Visual Studio in Debug mode it makes a copy of the database (if it's a file based one) and uses that to do the adds, updates, etc. This is so you can always start from the original database to figure out what is wrong. Look in the …

Member Avatar for virusisfound
0
189
Member Avatar for agrawal.priyank

Sounds like you have a lot of work to do. You'll need to read up about P/Invoke as you'll have to use the windows system DLLs to perform most of what you want to do. Good luck with your project.

Member Avatar for agrawal.priyank
0
215
Member Avatar for techlawsam

What you are missing is in line 29, this part [B]celsius * (9/5 + 32)[/B]. Since all those values are integers, it's going to do integer math on them. What this means to you is that 9/5 = 1. The other problem with that line is that you put () …

Member Avatar for techlawsam
0
186
Member Avatar for amulgarg

The Thread.Sleep() will still lock the UI (you are telling it to sleep, after all). If you want things to happen on a schedule use a timer.

Member Avatar for arunkumars
0
166
Member Avatar for kylelendo

It's a poor design to pull the password from the database into your application. Send the userid/password to the database and have it return if it is a valid combination. No data readers, just the ExecuteScaler is needed, you are almost there with it.

Member Avatar for kylelendo
0
332
Member Avatar for techlawsam

1) Yes. The method GetNumberOfSeconds returns an integer which is being assigned to totalSeconds. 2) totalSeconds is being used as a parameter (a value sent to a method). And yes, leftOverSeconds is the amount of seconds that aren't a full hour. 3) Techinically it's dividing it by NUMBER_OF_SECONDS_IN_AN_HOUR which you …

Member Avatar for techlawsam
0
252
Member Avatar for techlawsam

The () signify that this is a method. Without the (), in C# at least, it's a property (lower case property, upper case Property has a different meaning). Recto is an instance variable. It holds an instance of the Outside class. Recto.Display() is a call to the method Display of …

Member Avatar for techlawsam
0
173
Member Avatar for ppzm78

First thing I'd do is separate the read and the setting of the parameter in line 24 so I could put a breakpoint there and see what is actually being read. Also, how many characters are allowed in the table itself? Splitting is the easy part, btw :)

Member Avatar for ppzm78
0
184
Member Avatar for raaif

The problem is most likely with the contents of fname. Can you show us some samples that fail (and might as well show filepath too).

Member Avatar for lolafuertes
0
1K
Member Avatar for techlawsam

It is converting the type of (in line 18/19) roomLengthInches into a double instead of an int. It needs to do this otherwise the division would be an integer division and would give wrong answers. For example, if roomLengthInches is anything less than 12, the result would be 0 (zero) …

Member Avatar for techlawsam
0
180
Member Avatar for arjunpk

Yes you can, just declare the class as static and all the methods/properties as static. A static class is instantiated when the system decides it wants to do it but always before your first use of the class. You don't have to worry about when that happens, it just works …

Member Avatar for Momerath
0
244
Member Avatar for cheiL

As I said on the other forum, once you set the boolean value to false [B]IT NEVER CHANGES[/B]. All records after that one will be treated as if they passed the if statement check. You need to rethink your logic.

Member Avatar for cheiL
0
93
Member Avatar for kytro360

It will work but your threads will go out of scope as soon as the for statement is done. You are also starting them as foreground threads which means your program won't close until they are done. If that's the behavior you want, then you are good. But I'd look …

Member Avatar for Momerath
0
170
Member Avatar for Alkis90

The videos on that site are being played with [URL="http://www.longtailvideo.com/players/jw-flv-player"]JW Player[/URL]. Since it's open source you can just pull the code out that actually plays the video and convert it to C#.

Member Avatar for Momerath
0
74
Member Avatar for Troebadoer

You shouldn't close and reopen the connection each time. You should check if it is open and if it isn't, open it. Also, database connections do use unmanaged resources (anything dealing with the system software does) and will need to have the Dispose() method called on it.

Member Avatar for Troebadoer
0
229
Member Avatar for Panathinaikos22

Memory has nothing to do with it. It has to do with ease of change and reusability. Take your Log.dll for example. If you wrote it well, you could reuse it in other programs without having to write any new code.

Member Avatar for Panathinaikos22
0
115
Member Avatar for agent154

In the designer, or in your Form1 constructor, set the KeyPreview property to [B]true[/B]: [code]public Form1() { InitializeComponent(); this.KeyUp += new KeyEventHandler(Form1_KeyUp); this.KeyPreview = true; }[/code]

Member Avatar for agent154
0
226
Member Avatar for rockout15

use code tags as your code is impossible to read this way. You also don't indicate where the problem is

Member Avatar for Mitja Bonca
0
345
Member Avatar for AirWave

Use [URL="http://msdn.microsoft.com/en-us/library/system.string.split.aspx"]String.Split[/URL] to get them into separate strings.

Member Avatar for Momerath
0
54
Member Avatar for pro_learner
Member Avatar for pro_learner
0
165
Member Avatar for AirWave

[code]Console.Write("Enter command =>"); String command = Console.ReadLine(); int i = 0; if (command.Length > 1) { Int32.TryParse(command.Substring(1,1), out i); } switch (command[0]) { case 'm': menu(); break; case 'p': PrintPuzzle(); break; case 'n': shuffle(i); break; case 'r': if (i <= numCols) moveRowRight(i); break; case 'c': if (i <= numRows) moveColDown(i); …

Member Avatar for kplcjl
0
171
Member Avatar for RenanLazarotto

Bitmap has a save method, so you could do something like this:[code]Bitmap b = CropBitmap(...); b.Save("C:/myfile.bmp");[/code]

Member Avatar for RenanLazarotto
0
122
Member Avatar for zachattack05

Add a variable to your form[code]labelRightEdge = myLabel.Location.X + myLabel.Size.Width;[/code] Then add either a Layout, Resize or SizeChanged event handler to your label. Doesn't matter which one, they all are fired when the label needs to change size. Put this in the handler:[code]Point p = myLabel.Location; p.X = labelRightEdge - …

Member Avatar for Momerath
0
559
Member Avatar for aadarsh_khare

you'll want to use textBox1.Text otherwise you'll just get the class name as your values. You'll need other parameters for the other controls, and I have no idea what types most of the other stuff is. You'd also be better off learning to use [URL="http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbparameter.aspx"]Parameters[/URL]. It will save you from …

Member Avatar for divyam_shukla
0
241
Member Avatar for Zvjezdan23
Member Avatar for Srcee

The WPF Listview is under System.Windows.Controls, so it is not the same as the Winforms Listview.

Member Avatar for Srcee
0
109
Member Avatar for complete

It does work, you just didn't pay attention to the fact that it returns a value. DateTime is immutable, and any method to modify it returns a new DateTime, it does not alter the one you are using.

Member Avatar for Mitja Bonca
0
239
Member Avatar for complete
Member Avatar for complete
Member Avatar for techlawsam

Here is one of your lines [code]float takeHomePay = 28000 * (9 / 50) * (1 / 10) * (3 / 5);[/code] Your problem is that all your numbers are integers, so it does integer math on them. It then converts the result into a float. So you have things …

Member Avatar for techlawsam
0
197
Member Avatar for edchem9

Since the criteria aren't mutually exclusive, you'll need to use just if statements. What I mean by this is a call can be started after 6, and be longer than 60 minutes. If you use if/else you'll only get one of these. I see no where in this that a …

Member Avatar for Taywin
0
157
Member Avatar for priyad2
Member Avatar for Zvjezdan23
3
4K
Member Avatar for Zvjezdan23

Input from the console is a string, so you'll have to accept it as one and then convert it.[code]int x; String input = Console.ReadLine(); if (Int32.TryParse(input, out x)) { // x can be converted to a number, do whatever you need to do here } else { // x can't …

Member Avatar for Zvjezdan23
0
129
Member Avatar for techlawsam

Two things: 1) [I]return[/I] ends the execution of the current method and if that method has a return type, tells it what value to return. 2) Both of your parameters are integers, so the division in your return statement is integer division. It is then converted to a double (the …

Member Avatar for nick.crane
0
244
Member Avatar for TurkAlush

Process.Start returns a Process object. Use that to kill the process.

Member Avatar for nick.crane
0
867
Member Avatar for batlou
Member Avatar for VatooVatoo

What, exactly, do you want to have happen. Does the method run on that event? Is it supposed to change the state of the control? Does it change the state of the control? Does the control reflect the changed state?

Member Avatar for VatooVatoo
0
149
Member Avatar for SyncMaster170

If they want to type something into your form, it has to go somewhere. You can always set the focus to the textbox so they don't have to click on it. There are also other controls you can use for input. Really don't know what the problem is here.

Member Avatar for ddanbe
0
106
Member Avatar for Shizuo
Member Avatar for kytro360

References are included in the .csproj file. Or are you refering to web references? If you don't have any, then there is no references.cs.

Member Avatar for Momerath
0
65
Member Avatar for pilipinas

I don't think neural networks will help with this, you are looking more for knowledge based systems. Here is an [URL="http://www.codeproject.com/KB/architecture/commonkadsx.aspx"]article[/URL], but it uses CLIPS as the language. You have a lot of learning to do first, before you can even begin to start.

Member Avatar for Mike Gale
0
476
Member Avatar for PhxBased
Member Avatar for SteveyD

You've declared a placeholder for the byte values (line 3), but didn't actually allocate them. Change it to [icode]byte[] Data = new byte[256];[/icode]. No idea what Receive is supposed to do, so can't help you with that.

Member Avatar for SteveyD
0
1K
Member Avatar for shrutipopat

This isn't something that can be answered in a single post. I'd start at [url]http://www.facedetection.com/[/url] and get to reading.

Member Avatar for Khyati Patel
0
66
Member Avatar for pseudorandom21
Member Avatar for king03

Remove the Age field. You have their birthday, calculate it yourself. You might want to read the pages [URL="http://msdn.microsoft.com/en-us/library/bb655891%28v=VS.90%29.aspx"]here[/URL]. Doing a full database system for you is a little much.

Member Avatar for kapojian
0
86
Member Avatar for Connor Ward
Member Avatar for Momerath
0
116
Member Avatar for judithSampathwa

I'm not sure what you are asking here. I created a form with a DateTimePicker and a label. I set the format as you did above and added a method to the DateTimePicker.ValueChanged event: [code]private void dateTimePicker1_ValueChanged(object sender, EventArgs e) { label1.Text = dateTimePicker1.Value.ToString(); }[/code] If you do this you'll …

Member Avatar for judithSampathwa
0
237

The End.