2,157 Posted Topics

Member Avatar for singularity~
Member Avatar for Brick Wall

You can't add 1 to the time and expect to get the result that you added 2. Make an instance variable, increment it each time your timer ticks and add it as to the hour.

Member Avatar for Momerath
0
111
Member Avatar for zachattack05
Member Avatar for anshumanverma

Ok, the reason why it does that is that the 0:5eFE in the 5/6 spots indicates that this is an [Intrasite Automatic Tunnel Addressing Protocol (ISATAP) Address](http://msdn.microsoft.com/en-us/library/aa922393.aspx) (Tunneling IPv6 traffic on an IPv4 network). That is the correct format for an ISATAP address, you'll just have to deal with the …

Member Avatar for Momerath
0
71
Member Avatar for marimuda

Ada Lovelace wrote an algorithm to be processed by the Babbage Engine in the early 1800's, and the machine wasn't built until 1991.

Member Avatar for Momerath
0
158
Member Avatar for Darth Vader

Using shared memory is very easy in C#, no need for unmanaged code. Just do a search on memory mapped files. But I believe the original poster is trying to create software to automate something he doesn't have the source for, such as a game.

Member Avatar for Momerath
0
1K
Member Avatar for gelmi
Member Avatar for rstoplabe14

Your ErrorCheck method returns a value, but you never accept the value so it might as well not return one. You check iError in line 57 to see if it is one of your error codes, but since it *never* gets changed from the initial value, it will always be …

Member Avatar for Momerath
0
141
Member Avatar for kshahnazari

No need to create a class, just force it to box the value: `this.button1.Tag = (object)12;` But remember, when you go to retrieve it, it will be of type Object, you'll have to cast it back into whatever you need it to be.

Member Avatar for Momerath
0
112
Member Avatar for xikhari.some1behindu
Member Avatar for deceptikon
0
215
Member Avatar for xikhari.some1behindu

You'll need to convert them one by one, you can't cast strings into int. So use Convert.ToInt32, Int32.Parse or Int32.TryParse

Member Avatar for Momerath
0
227
Member Avatar for xikhari.some1behindu

Use a List<T> rather than an array. It will dynamically change its size as needed, and you can treat it as (and convert it to) an array.

Member Avatar for xikhari.some1behindu
0
252
Member Avatar for diya45

Do you see any paramters in your stored procedure? No you do not. Then why are you providing them in lines 87-93?

Member Avatar for arunkumars
0
316
Member Avatar for NardCake
Member Avatar for Momerath
0
97
Member Avatar for UrFace

This is not a code writing service. If you have a problem you don't understand *with your code* then come back and let us know.

Member Avatar for Momerath
-2
40
Member Avatar for gkaran487
Member Avatar for tboctavan
Member Avatar for tboctavan
0
210
Member Avatar for chromatinpt

Not too difficult int[] counts = new int[list_steps.Length - 1]; for (int i = 0; i < list_steps.Length -1; i++) { counts[i] = listSource.Select(p => p >= list_steps[i] && p <= list_steps[i+1]).Count(); }

Member Avatar for Momerath
0
141
Member Avatar for gelmi

The problem is that C# is case sensitive and your Main method in line 27 is 'main' instead of 'Main' (assuming those are in different files).

Member Avatar for Momerath
0
151
Member Avatar for cyberdaemon
Member Avatar for thang.chuotma

And you want us to debug your code, but you don't post any? What line gives the error? What are the values of the various variables at the time the error occurs?

Member Avatar for Bhuvan Ram
0
78
Member Avatar for night_sky32

You really aren't saving that much memory (about 4 bytes) so I wouldn't worry about it unless you are building for embeded systems. As for issues, yes it can cause some. What if you decide you need to know how many times your dog barks. If you put a counter …

Member Avatar for getnit
0
3K
Member Avatar for riahc3

How big is the file? You are limited by how much memory you have on your system, and the 2GB data limit (if you are using .NET 4.0 or lower).

Member Avatar for BobS0327
0
402
Member Avatar for nesa24casa

It looks like your png is being scaled up to cover the area, use a higher resolution picture.

Member Avatar for nesa24casa
0
178
Member Avatar for kaizen202

Just because you Disposed of an object doesn't mean the system has. Keep opening/closing the form and see if you run out of memory (you really do have a leak) or at some point all those GDI objects vanish (the GC ran and cleaned up for you).

Member Avatar for kaizen202
0
412
Member Avatar for jlmeyer43

The easiest way to get all the text into an array is File.ReadAllLines() String[] lines = File.ReadAllLines("MyFileNameHere.txt"); Once you have all the text, you loop through the array, then loop through each character in the string. But you don't really care about line breaks and stuff, so just use File.ReadAllText() …

Member Avatar for jlmeyer43
0
240
Member Avatar for nunntb473

Instead of all this complicated code, why don't you use[ NumericUpDown](http://msdn.microsoft.com/en-us/library/system.windows.forms.numericupdown.aspx) boxes?

Member Avatar for nunntb473
0
175
Member Avatar for Brick Wall

Using a loop is a waste of time. Arrays contain multiple methods for searching built in: BinarySearch() Exists() Find() FindAll() FindIndex() FindLast() FindLastIndex() IndexOf() LastIndexOf()

Member Avatar for xerohomicide
0
129
Member Avatar for kram54

It's telling you that the DevExpress DLL doesn't have a valid signature. Did you buy DevExpress or are you trying to distribute the developer DLL you can download for free?

Member Avatar for Bhuvan Ram
0
780
Member Avatar for jazeelkm

Do you really think the original poster is waiting around after 5 years to give you the code?

Member Avatar for sundar786
0
796
Member Avatar for Jothe

http://www.simple-talk.com/sql/t-sql-programming/reading-and-writing-files-in-sql-server-using-t-sql/

Member Avatar for Jothe
0
98
Member Avatar for tboctavan

Line 21: When you call a method, you don't provide the types with the method. Remove the two 'double'. Line 21: rate is not a variable in your method, did you mean rateofPay?

Member Avatar for JOSheaIV
0
168
Member Avatar for xixi.li.7

Where are you reading the file? I see you changing the path, but not actually reading any data from the file. And why do you change the path?

Member Avatar for Momerath
0
247
Member Avatar for Brick Wall

You should create a class to hold the band name and the minutes used. Use a List<T> to hold each of these that you create. Create your form as requested.

Member Avatar for Brick Wall
0
128
Member Avatar for puseletso.michelle
Member Avatar for kirtee2209
Member Avatar for waqar100

Where do you get the error? What line? What are the values of the various variables at the time?

Member Avatar for Momerath
0
187
Member Avatar for Dino000

When you create the form ( = new MyForm) and before you show it, you'll need to set the BackColor property. I'd create a method that sets the properties and just pass the form object to it.

Member Avatar for Dino000
0
248
Member Avatar for anish.anick

Not sure what you are asking, but to make a generic, you need a generic type indicator class Factory<T> {

Member Avatar for Momerath
0
218
Member Avatar for Procom22

You are creating a lot of random values (and way too many Random objects, you only need 1 per program). You need to rethink the logic of this program as you are doing a lot of stuff that doesn't need to be done (and line 37 effectively ends your program).

Member Avatar for Momerath
0
200
Member Avatar for mmatre

Once you parse the line you never store the value into your other arrays (that you haven't declared). Since you don't know the size that these arrays will be, I'd use a List<T> to hold the values.

Member Avatar for Momerath
0
127
Member Avatar for spuriousgeek

Without seeing the code and how you implemented the priority queue there really isn't anything we can say, it would all be guesses.

Member Avatar for spuriousgeek
0
1K
Member Avatar for itzchakri

You will have to get the HorizontalScrollBar property of each DataGridView and add a handler to the OnScroll event. When the event is raised, set the other scroll bars to the same Value as the one that was scrolled. Make sure you set a sentinal value in the handler to …

Member Avatar for Momerath
0
145
Member Avatar for JOSheaIV

You might want to consider using WebClient or WebRequest/WebResponse instead of WebBrowser. Not sure if they will meet your needs, depends on what you are looking at :)

Member Avatar for JOSheaIV
0
7K
Member Avatar for jonathan.oberhaus

If you decide to leave it as parallel arrays, just use [Array.IndexOf()](http://msdn.microsoft.com/en-us/library/7eddebat.aspx) to find the index.

Member Avatar for Momerath
0
122
Member Avatar for WolfShield

1) He's talking about Winforms so there is no aspx page at all 2) This is over a year old, he's probably figured it out by now.

Member Avatar for Momerath
0
1K
Member Avatar for eljainc

Remove 'APPOINTMENTS' from your table list. You are getting a record for every row in the appointments table that matches the criteria. If you are going to use two tables like that, you need to somehow tell it which rows in the appointments table belong to which rows in the …

Member Avatar for eljainc
0
284
Member Avatar for 9tontruck

You could make the work handler a service and pass it the information as you receive it. No need for threading or async handling.

Member Avatar for 9tontruck
0
445
Member Avatar for flyboy567

Your code isn't in a class. C# is an OO language and requires everything to be in a class. Other than that there doesn't seem to be anything wrong. That should open the COM1 port (and then immediatly close it since your method ends and the 'port' variable only has …

Member Avatar for Momerath
0
174
Member Avatar for stefano.a.feltre

in line 83 you are converting txtTemp.Text to an int, shouldn't you be converting your new textboxes.Text to ints?

Member Avatar for Momerath
0
149

The End.