Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
55% Quality Score
Upvotes Received
13
Posts with Upvotes
12
Upvoting Members
11
Downvotes Received
11
Posts with Downvotes
10
Downvoting Members
9
9 Commented Posts
3 Endorsements
Ranked #486
Ranked #914
~85.8K People Reached
PC Specs
win 8.1
Favorite Tags
Member Avatar for Geekitygeek

Bogdan, the author is creating two independent forms, that are designed to be independent. Event processors are delegate handlers. You subscribe software by adding it to the event. In this case "child_FormClosed" is a subroutine that is built and owned by the parent form. By subscribing the child's FormClosed event …

Member Avatar for jacss1x
1
3K
Member Avatar for ddanbe

I apparently haven't had the math education in the dark ages (1960s) that I thought I had. I know: i^2 == -1 I haven't seen i used as an exponential value in any formula, but I've not studied Euler much either. How in the world does 2.718 raised to power …

Member Avatar for JOSheaIV
1
613
Member Avatar for mrbrightside10

I'm confused. This is obviously a homework problem. For that, you don't deserve a code answer. You are supposed to produce something like: Value: 1, Square: 1, Cube: 1, Sqrt: 1 Value: 2, Square: 4, Cube: 8, Sqrt: 1.4142135623731 Value: 3, Square: 9, Cube: 27, Sqrt: 1.73205080756888 Value: 4, Square: …

Member Avatar for ddanbe
0
1K
Member Avatar for J.C. SolvoTerra

To give you a little more insight in the English language, "in site" is basically a meaningless collection of two real words that would sound exactly like "insight". Site is (sort of) a specific location, you can't be in it, but you can be in a building or a hole …

Member Avatar for J.C. SolvoTerra
5
673
Member Avatar for cgeier

Note that this same technique can be used between a dll and a FORM. Note that the dll will have to run on a separate thread, the same as the two forms in this example do.

Member Avatar for kplcjl
4
5K
Member Avatar for ddanbe

Note that the name "Times" does not mean multiplication is being done, it means the routine defined is being repeated in a Linq expression, so maybe a better name may be called for. I can't think of a better name myself...

Member Avatar for kplcjl
0
382
Member Avatar for vadarfone

OK, I agree that you can't change the opacity of a textbox. That makes sense, because it resides on a form. If you could change it it would just disappear on the form itself. The Form.Opacity Property allows you to change the visability of the whole form. Instead I suggest …

Member Avatar for kplcjl
0
5K
Member Avatar for ddanbe

I didn't want to read the comments because they would probably come up with good answers and I didn't want to spoil my thoughts before trying something. There are several problems with this code. First off, strings are immutable. Every time you alter a string you add a new record …

Member Avatar for xrjf
0
1K
Member Avatar for Santanu.Das

JC: There are articles galore about sorting routines because people are interested in how they work. My gripe is that the authors pick the bubble sort because it is the easiest one to code. That is an N^2 routine. This is a shortened loop because it uses ((N+1) X N)/2 …

Member Avatar for David_50
0
522
Member Avatar for andrew909

FYI int[] IS a reference object, so if you change a value in the array, all objects that have access to the array also has access to the changes made. If you change the length of the array, you just created a new object, so if you change its values …

Member Avatar for kplcjl
0
284
Member Avatar for kegs88

The Padleft solution is another alternative, I used the string you supplied but didn't use. I suspect it is more efficient using Pad. Your delay seemed really short and that does produce a running man effect. When I added 100 to your delay, it was better but still had a …

Member Avatar for kplcjl
0
2K
Member Avatar for VIeditorlover

There has never EVER been a way to stop decompiling code. (You can ALWAYS get the assembler code.) Strong naming or using Authenticode on a strong named assembly WON'T protect you from someone decompiling your code. The only thing both will do is authenticate your modified stolen code didn't come …

Member Avatar for JOSheaIV
1
1K
Member Avatar for oussama_1

Line 302 has: control.text = String.Concat("Level ", levelNum.ToString, " Lives ", lives.ToString, " Money: ", rewards.ToString) This would do the same thing in a shorter format: control.text = String.Format("Level {0} Lives {1} Money: {2}", levelNum, lives, rewards)

Member Avatar for oussama_1
3
939
Member Avatar for ddanbe

It's been 45 years or so since I read flatland. My memory is fuzzy, so if you want to challenge me, I won't argue. Flatlanders never looked up or down because that dimension didn't exist to them. They were all circular in shape, their buildings were rectangular lines. They were …

Member Avatar for mattster
0
763
Member Avatar for Siberian

Don't know the language you are using. I do know C# and unless that is psudo-code, it won't even compile in C#. In C#, "this" is a keyword to point to the base object's values, something like "private string bat, bat2, bat3;" In that case the routine could look like …

Member Avatar for Siberian
0
129
Member Avatar for sknake

FYI, when talking about secure logins, providing any information on the validity of either the userID or the password is a complete no-no. Instead of just passing the userID, pass both the userID and the encrypted password to the connection making sure both are part of the where clause. It's …

Member Avatar for pritaeas
10
7K
Member Avatar for ddanbe

My version is Visual Studio 2010 Express. I believe that version is 4.0 but the express System Assembly does not include System.Speech. Dang. As far as the ASP.Net user, you are using the C# code to generate HTML and JScript (Looks exactly like JavaScript to me) to render on a …

Member Avatar for kplcjl
5
559
Member Avatar for kimbula...

[QUOTE=kimbula...;1243502]I'm having a problem with starting with KeyPress event. The program is derecting me to the TextChanged event. How to change it to the KeyPress event.[/QUOTE] I'm sure the purists are howling, but I say Keep the TextChanged event. use if (!int.TryParse(My_tbx.Text, out i) {//Error handling block } where "i" …

Member Avatar for kplcjl
0
5K
Member Avatar for kxjakkk

Sort of looks like a VB language version. Have no idea how that all works. In .NET you have Dictionary(TKey, TValue) Constructor (System.Collections.Generic) that can be used. This will NOT sort the data, but will efficiently determine if the word is unique. I don't see how the above code snippet …

Member Avatar for kxjakkk
0
640
Member Avatar for hxn xfir
Re: Help

No way would I try a one-liner. I tested this on 5 and 50 and both worked properly. /// <summary> /// Goes from 1 to 99, lists on Console the number list forward and backword /// Right adjusting the values. All values except the last number are repeated in reverse …

Member Avatar for JOSheaIV
0
810
Member Avatar for andreas.petrou.967

Andreas, Personally prefer: array2[j++]=array[i]; In your search function you have hardcoded 10. What happens when there are 5 items in the array? What happens when there are 20 and the 15'th has the number you are looking for?

Member Avatar for kplcjl
0
359
Member Avatar for ddanbe

One of the nice things C# has is the XML documentation. What's nice about that is that it activates intellisence so you can document it. Renaming the int parameter as suggested is a good idea because even if it is in a dll, you don't have to correct your calling …

Member Avatar for kplcjl
0
388
Member Avatar for Eternal Newbie

Congradulations, on solving it. A possible alternate solution would be to put the two forms into thread calls. That would free them from the parent thread and the calling form could close while they kept going.

Member Avatar for kplcjl
0
1K
Member Avatar for kingsonprisonic

I do have a question. In your regex expression you have [0-9a-zA-Z] sprinkled throughout. Since you also have ", RegexOptions.IgnoreCase" wouldn't [0-9a-z] serve just as well? If it doesn't, why do you use IgnoreCase? I might add, this might not work so well on the international front. FYI Your no_blank …

Member Avatar for Iamateur
4
1K
Member Avatar for riahc3

The following doesn't make sense: do { next = response.Content.IndexOf("\"", first); /*Not neccesary but in case Dani changes the array to something else....*/ if (next==-1) { break; } } while ((next==0)); I'm not a fan of do whiles, but even if Dani changes things around this is only going to …

Member Avatar for riahc3
4
462
Member Avatar for Lardmeister

hasnain..., I agree it's a very easy approach. However, I say it is a very INefficient approach. In type O notation it is N^2 which is bad. I tried to show an alternate approach that in O notation is still N^2 but would still be twice as fast. There are …

Member Avatar for kplcjl
0
1K
Member Avatar for Diamonddrake

You'd think 1000 would accurately represent 1 second. I found that if I compared ticks to the starting tick value that my elapsed time timer would occationally jump 2 seconds using 1000. By the time 5 minutes elapsed, you'd probably be off by about 5 seconds using this minute second …

Member Avatar for kplcjl
1
3K
Member Avatar for Reverend Jim

When I read the title, I had already figured out how to wrap when the whole word wouldn't fit on a line. I hadn't figured out how to find the split points on a word so it puts part of the word on the fir- st line and finishes the …

Member Avatar for tinstaafl
2
3K
Member Avatar for DIPY

[QUOTE=bokac1984;1099265]This is ok, but I have something else in mind, when I check checkbox I need my textbox to be false right away... This code doesnt exetuce that.[/QUOTE] That's completely opposite from what you said at first. You've gotten completely opposite answers to match your 2 requests. "right away"? The …

Member Avatar for hirenpatel53
0
3K
Member Avatar for SoftwareGuy

OK, you found a solution, but nobody suggested a delagate. I tried to build a puzzle solving code and display intermediate results and display them on my WinApp form. Didn't do a thing. Turns out, the form thread has to be idle to display changes and I wanted intermediate results …

Member Avatar for kplcjl
0
238