2,157 Posted Topics

Member Avatar for oldetimer

Lots of people are hiring from what I see but at unusually low rates. It is an employers market right now and they are taking advantage of it. I'm an old programmer myself (not quite as old as you, but close :)) and am currently unemployed. I am getting interviews …

Member Avatar for alc6379
0
126
Member Avatar for choover12

You'll want to take a look at [URL="http://msdn.microsoft.com/en-us/aa937791.aspx"]XNA[/URL]

Member Avatar for ddanbe
0
231
Member Avatar for MaryAnne19

You can't use foreach in this situation (You can only use foreach on object collections that implement IEnumerable). You are reading data into the scdr object, but you never use it. Everything about the row is there, and that's what you need to be looking at.

Member Avatar for N4JRY
0
247
Member Avatar for NewOrder

When you created the project did you set it to "Class Library"? That's why you get an exe. You can tell from your code that you have both of them as "Console Application". Open the project that you want to be a class library (DLL) and go to Project-><Project name> …

Member Avatar for NewOrder
0
266
Member Avatar for Phil++

It doesn't write to the file because you have no write statement in there anywhere. You'll need to open another file and write out each of the lines your read in.

Member Avatar for apines
0
96
Member Avatar for MaryAnne19

Your connection string won't work as you don't specify where the database is. Take a look at [URL="http://connectionstrings.com/"]this[/URL] site, it has connection strings for everything :)

Member Avatar for MaryAnne19
0
171
Member Avatar for poorchap

What do you mean by cursor's position changes? Moved to a new input field, moved within an input field? You can add events to controls that would detect either or both of these things. Or do you mean the mouse cursor? It too has events to handle things.

Member Avatar for poorchap
0
109
Member Avatar for LuaMan

You do realize that formStuff is not the currently active form and is never shown in this code and it is the form you tie lua to?

Member Avatar for LuaMan
0
349
Member Avatar for jharter

What type is your values array? What happens when you run the code? Does the code actually run the replace line? What data is there in the array and what do you expect the replace to do?

Member Avatar for alc6379
0
174
Member Avatar for Cort3z

Figure out a different method to use. I can see no use for having over 2 billion objects. Maybe if you told us what you were trying to do, better methods would suggest themselves.

Member Avatar for Cort3z
0
3K
Member Avatar for hystaspes

Yes, they are software. Read [URL="http://en.wikipedia.org/wiki/API"]Application programming interface[/URL] please.

Member Avatar for Momerath
0
54
Member Avatar for selasedaniweb

This may sound odd to some people, but write the user manual first. Get the client to sign off on the manual, then write the software to do what the manual says. This way the client gets what they signed off on, and you produce what they need, rather than …

Member Avatar for Momerath
0
209
Member Avatar for sah

Could you explain more? It seems that you are saying that if you type them in, they don't show up in the chineseChar string, but if you cut/paste them in they do?

Member Avatar for sah
0
457
Member Avatar for fx5500

Since DataReader is a forward only reader, there is no way to know how many records are available from a Select statement. You'll have to count them as you read them. So initialize a counter before the while loop, and increment in the while loop. At the end you'll know …

Member Avatar for alc6379
0
109
Member Avatar for NewOrder

Because it makes it easier on others who want to use your code. For example, let us say you made a Matrix class. Which makes more sense to a developer:[code] Matrix A = new Matrix(4, 4); Matrix B = new Matrix(4, 4); Matrix C = A.MultiplyBy(B); // This Matrix D …

Member Avatar for alc6379
0
105
Member Avatar for pordsky

[URL="http://en.wikipedia.org/wiki/Numerical_integration"]Numerical Integration[/URL] and [URL="http://en.wikipedia.org/wiki/Numerical_ordinary_differential_equations"]Numerical Ordinary Differential Equations[/URL]

Member Avatar for ddanbe
0
74
Member Avatar for TheDocterd

Are you looking for help to import into SQL server or writing C# code to do the import? Also, without seeing the files/table definition it is hard to help :)

Member Avatar for taylby
0
245
Member Avatar for NewOrder

Yes, with the caveat that sometimes static initialization is delayed until it is needed. You can see this effect by playing with static constructors and derived classes.

Member Avatar for NewOrder
0
63
Member Avatar for NewOrder

params must be last, and only one params statement in a method. You can have any number of other parameters to the method as you want, they just must be before the params statement

Member Avatar for Momerath
0
71
Member Avatar for NewOrder

Line 9: Casting is not needed to go from a derived class to a base class. It is needed to go from a base class to a derived class.

Member Avatar for NewOrder
0
127
Member Avatar for rcanter

In line 4 you create a variable to hold the table. Where is the line where you actually create the table?

Member Avatar for rcanter
0
205
Member Avatar for NewOrder

The constructors are called in the order needed. If the derived class constructor doesn't make use of anything in the base class, it is called first, then the base class. But if you use something from the base class, before it is used the base constructor is called, then the …

Member Avatar for Momerath
0
80
Member Avatar for zachattack05

You'll need to add them to the project if you want them packaged up for distribution.

Member Avatar for zachattack05
0
77
Member Avatar for fx5500

I, for one, don't know what it is you are trying to do as you aren't very clear.

Member Avatar for Cort3z
0
104
Member Avatar for lewisco

You can attach to the TextChanged event and check if the last 2 characters in the text string are L2, L3 or L4 and add a newline to the textbox. An issue you might encounter is if the barcode has an imbedded L2, L3, L4 value (such as 3234L423444L2).

Member Avatar for codeorder
0
1K
Member Avatar for Clawsy
Member Avatar for Momerath
0
1K
Member Avatar for Jazerix

You are going to need to change the security permissions of your assembly. Read [URL="http://msdn.microsoft.com/en-us/library/bb763046.aspx"]this[/URL] on how to do so.

Member Avatar for Momerath
0
115
Member Avatar for Phil++

You can create another class to handle generating your HTML, or you can use a [URL="http://msdn.microsoft.com/en-us/library/wa80x488%28VS.80%29.aspx"]Partial Class[/URL] if you want to keep it in the same class, but in a different file.

Member Avatar for nick.crane
0
168
Member Avatar for georgejo

It's all still there. The run option is the green triangle on the bar, or under the Debug menu. Build errors show up in the error tab which should be on the bottom of your screen. Console applications open command windows, the problem usually is that they close when the …

Member Avatar for Momerath
0
162
Member Avatar for nilbernator

I'd take a look at the classes in Microsoft.Office.Interop.PowerPoint (add it as a reference then go to object browser). Not sure if it will open PowerPoint to display or allow you to display inside your app, but it's a start.

Member Avatar for Momerath
0
89
Member Avatar for svatstika

[code]private void button1_Click_1(object sender, EventArgs e) { List<string> myList = richTextBox1.Lines.ToList(); if (myList.Count > 0) { myList.RemoveAt(myList.Count - 1); richTextBox1.Lines = myList.ToArray(); richTextBox1.Refresh(); } }[/code]

Member Avatar for Momerath
0
4K
Member Avatar for snehil_khanor
Member Avatar for tgreer
Member Avatar for Momerath
0
130
Member Avatar for babbu

Yes. Access doesn't support transactions, you'll have to use one of the SQL Server variants (I'd try the compact edition first as it stores all the data in a single file, just like Access does).

Member Avatar for Momerath
0
113
Member Avatar for logicmonster

Since cosecatnt is just the reciprocal of the sin function, wouldn't it be easy enough to make your own?

Member Avatar for WaltP
0
61
Member Avatar for shahab.burki

This is psuedo code for max subsequence sum, you'll have to add your own start/end info: [code]maxsofar = 0 maxendinghere = 0 for i = [0, n) /* invariant: maxendinghere and maxsofar are accurate for x[0..i-1] */ maxendinghere = max(maxendinghere + x[i], 0) maxsofar = max(maxsofar, maxendinghere)[/code] This is from …

Member Avatar for apines
0
192
Member Avatar for dineshcbe
Member Avatar for Momerath
0
42
Member Avatar for Ankuriet

It really depends on what your ActiveX controls are doing. You might be able to do it all with just code behind, but I doubt it. Most likely you will have to look at Javascript and AJAX.

Member Avatar for Ankuriet
0
111
Member Avatar for jdm

[code]Scroll() { lable1.Text = lable1.Text.Substring(1) + lable1.Text[0]; }[/code] I'd set a timer to call the scroll function at some interval that doesn't make it look like a blur :)

Member Avatar for jdm
0
187
Member Avatar for DioRani

I'll assume that currentSongProgress is a progress bar? If so, you are setting it beyond the specified maximum in your code there. When the song ends, you should shut down the timer. You should also check to make sure that the value you are setting for playedTime is within the …

Member Avatar for Momerath
0
587
Member Avatar for edepperson

In your Decrypt method you create a memory stream but there is nothing in this stream and you try to read it into your byte array.

Member Avatar for mrhoso
0
233
Member Avatar for Netcode

Something like: [code]select FirstName, LastName from MyTable where PhoneNumber in ('111-222-3333', '222-333-4444')[/code] The [I]in[/I] clause allows you to specify multiple values to compare to and returns whatever matches any one of the values.

Member Avatar for zx1
-1
1K
Member Avatar for tgreer

It sounds like you are triggering events in your form_closed or form_closing event. Without seeing more code, that's the best I can do for you.

Member Avatar for tgreer
0
167
Member Avatar for nukedeath
Member Avatar for Spudgunner

I'd make an interface (ICard) and derive all cards from it. Possibly some abstract types for each category, then specific implementations for each card. I'd use List<T> to hold each players hand, and a Queue<T> for the deck.

Member Avatar for Spudgunner
0
113
Member Avatar for micahgeorge
Member Avatar for Momerath
0
8K
Member Avatar for arya6000

Nope, you don't have a Thread.Start anywhere in your code. Take a look at this free [URL="http://www.albahari.com/threading/"]ebook[/URL].

Member Avatar for Momerath
0
133
Member Avatar for Acidburn

Pass the form object to the DLL and have it walk the control structure saving all the control information. You'll have problems with events, though.

Member Avatar for Momerath
0
104
Member Avatar for NewOrder

In your Add method, what do you think this code does, because it doesn't:[code]if ((size - index) == Delta) { shareName = new string[index + Increase_By]; sharePrice = new int[index + Increase_By]; }[/code] If this code ever executes you lose all the information you previously had.

Member Avatar for NewOrder
0
96
Member Avatar for iamthwee

Everyone is going to die so the first part of the rabbit's statement is meaningless. The second part is also meaningless as everyone is going to die. So I shoot the rabbit and have dinner.

Member Avatar for diafol
1
390

The End.