Posts
 
Reputation
Joined
Last Seen
Ranked #121
Strength to Increase Rep
+11
Strength to Decrease Rep
-2
84% Quality Score
Upvotes Received
115
Posts with Upvotes
101
Upvoting Members
68
Downvotes Received
18
Posts with Downvotes
14
Downvoting Members
18
55 Commented Posts
~331.54K People Reached
About Me

23 year old software developer from Edmonton, Alberta. Right now I am developing embedded FPGA, PLC, and real time OS systems that integrate with .Net (C# and VB.Net) applications for monitoring,recording, and control.

Interests
Guitar, Weed, and Learning
PC Specs
Hardware changes too fast for me to bother keeping up.
Favorite Tags

624 Posted Topics

Member Avatar for skatamatic

When working with TCP client sockets I often find myself frustrated with the lack of event-driven support. I usually end up writing a whole bunch of code to determine disconnects, reconnecting, etc and I figuired it's time to just write my own class for this stuff. I figuired I'd share …

Member Avatar for Alejandro_8
6
9K
Member Avatar for samaru

Hardest? Probably the game I made in college. It used a client and a server, a database on the server for storing instant replays which where pushed out after kills (similar to call of duty), and direct 3d. Believe it or not, the hardest part of the whole thing was …

Member Avatar for Fest3er
0
3K
Member Avatar for chait_anya

It is kind of a headache. I have called C# written dlls in vb6 a few times via com interop. A lot of overhead involved - really lowers overall performance. Plus you need to add a bunch of attributes to your classes and create a seemingly pointless interface that your …

Member Avatar for Sajid_11
0
1K
Member Avatar for pseudorandom21

[QUOTE=Narue;1703267]That seems kind of silly to me. The point of a checksum is to verify the legitimacy of a file after downloading it. If you're getting the checksum before downloading the file it's no different from taking on faith that the file is legit in the first place.[/QUOTE] Would make …

Member Avatar for Reinhard_1
0
7K
Member Avatar for Batch Devil

I don't think any native windows console commands support sockets. So making a multi-player game in batch is going to be impossible. I suppose it could be possible to create a file on a shared path on a network, then use batch to read the file and display the scores/etc …

Member Avatar for Jaxonpoop123
0
2K
Member Avatar for ddanbe

Wouldn't this allow the user to enter "....." as a number? I wonder how efficient this would be: [code] private void MyTextbox_KeyPress(object sender, KeyPressEventArgs e) { int aDouble = 0; // Check for the flag being set in the KeyDown event. if (double.TryParse(MyTextBox.Text + e.KeyChar, out aDouble)) MyTextbox.Tag = aDouble; …

Member Avatar for noface0711
1
3K
Member Avatar for jasminee

Are you asking us to do this for you? Or did you have a question? People on this site won't typically do your homework for you.

Member Avatar for ddanbe
0
290
Member Avatar for Indianblues

You can't expect your code to do things you don't tell it to do. If you need to remember things, it will need to be saved to some form of media. The simplest form of this would be a textfile. Google reading/writing from textfiles in c#, use your knowledge of …

Member Avatar for Shubhamrs8055
0
1K
Member Avatar for awesomelemonade
Member Avatar for VIeditorlover

The only way to prevent someone from reverse engineering your code is to [B]not give them your program[/B]. This might sound like an oxymoron, but it really isn't. Think about client/server apps - the client only knows its inputs and outputs and not [B]how the inputs got transformed into the …

Member Avatar for JOSheaIV
1
1K
Member Avatar for sknake

[QUOTE=sknake;989676]Open up visual studio, slap that code in to a form, and hit F5.[/QUOTE] There's no designer code so it won't be that simple...

Member Avatar for pritaeas
10
8K
Member Avatar for Chair

The return statement will not be called if the first if() statement fails (ie the Read() returns false) One way to solve this is to put return ""; at the end (after con.close()) Note that con.close() is not being called if the name is read, since return is called which …

Member Avatar for pritaeas
1
9K
Member Avatar for Doctor Inferno
Member Avatar for king03
Member Avatar for Tortura

It's pretty bad practise to simply serialize everything in a class, whether related to the data you want or not. Not only can it be highly inefficient, you can run into issues with 3rd party libs that don't play nicely with the .net object binary serializer (especially interops). Using a …

Member Avatar for skatamatic
0
185
Member Avatar for richjohn.bulante

Does your biometric hardware come with an API? Hard to just start telling you how to use something that we know nothing about ;)

Member Avatar for richjohn.bulante
0
162
Member Avatar for Tim202

Hard to say. What controls are you using? Any events you think may be suspect, or low level hooks? If you kill DWM.exe (Aero) does it still happen?

Member Avatar for skatamatic
0
162
Member Avatar for anisha.silva

It sounds like you are asking homework questions to an assignment that you don't understand. Sounds like you have made all your classes - so are you having troubles implementing them into an application?

Member Avatar for skatamatic
0
155
Member Avatar for Andy90

[This](http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/05dc2d35-1d45-4837-8e16-562ee919da85) looks like a good place to start.

Member Avatar for nmaillet
0
149
Member Avatar for RobLockett

What kind of reports are you generating? HTML? Crystal? Some formats will be easier to work with than others for something like this...

Member Avatar for Momerath
0
158
Member Avatar for anisha.silva

Your question doesn't really make a whole lot of sense but I'll take a stab at it. You are asking how to represent Async communication, I think. Seeing as C# is an object oriented language, you will need to represent it as an object (a class) as well.

Member Avatar for anisha.silva
0
263
Member Avatar for TIM_M_91

In the DogChorus constructor you are initializing a bunch of members with the same names as the Dog class (which are all private except for Breed) that aren't actually members of the DogChorus class. Perhaps you mean to have 2 objects of type Dog in this class called lady and …

Member Avatar for skatamatic
0
247
Member Avatar for silvercats

Latency is the amount of time it physically takes your data to arrive at your destination - it's based mostly on distance, optimum routing and hardware that must be passed through. The speed is based off of your bandwidth - basically how much your ISP is lending you and can …

Member Avatar for goatnetworking
0
271
Member Avatar for LateNightCoder

You are not instantiating a new button into memory. Try using Button newBtn = new Button(); //Set attributes from XML here myForm.Controls.Add(newBtn);

Member Avatar for LateNightCoder
0
263
Member Avatar for samsylvestertty

Which SendKeys are you using? Is it the .Net wrapper or a WIN32 API call? Have you tried running it as administrator?

Member Avatar for samsylvestertty
0
379
Member Avatar for Mike Askew

If you are looking in a special folder you can use the SpecialFolder enumerator to make sure you get the path right everytime: Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) There's quite a few other special folders to note that are represented by that enumerator.

Member Avatar for Cap'nKirk
0
148
Member Avatar for VasquezPL

This has nothing to do with C#, and everything to do with Active Directory for Windows Server 2003/2008. If you go to 'Server Manager', go to **Roles->Active Directory Domain Services->your.domain.name->Users** you will see a list of users and groups, and when you double click a user and go to the …

Member Avatar for VasquezPL
0
274
Member Avatar for Sciprios

There's really a lot of ways to do this. One option would be to use an event that other forms can subscribe to: //In form two public partial class Form2 : Form { public class MyFormEventArgs : EventArgs { public string SomeData { get; set; } public MyFormEventArgs(string data) { …

Member Avatar for skatamatic
0
179
Member Avatar for Rubinder singh

If you have a deep wallet, [DevExpress](http://www.devexpress.com/) has some outstanding control suites that I use quite regularly at work. If you don't want to spend any money, you will either have to write them yourself or find a really nice person who has done your work for you. Let us …

Member Avatar for skatamatic
0
317
Member Avatar for TyroneDavis

License keys, online product validation and server-driven content. Oh and code [obfuscation](http://en.wikipedia.org/wiki/Obfuscation_(software)).

Member Avatar for Techjunkie1900
0
112
Member Avatar for aldm

Try using the Let keyword to create a temp datetime. var views = from vc in dbContext.ViewCounts let tempDate = new DateTime(vc.Time.Year, vc.Time.Month, vc.Time.Day) where vc.Time >= dateFrom && vc.Time <= dateTo group vc by new { catalogueId = vc.Catalogue_Id, day=tempDate } into vc2... I haven't tested it but I …

Member Avatar for aldm
0
155
Member Avatar for crankyslap

I've noticed that same problem before, too. But I don't think you rational behind why it occurs makes sense - how fast or how slow the threads fire shouldn't have an impact on the argument passed to the dowork() method. I think it's a bug with the way annonymous delegates …

Member Avatar for skatamatic
0
381
Member Avatar for codechrysalis

You are assigning all of your values to the same index in the 2d array, and I don't think it needs 3 columns. Putting aside the errors, I think this is the logic you are after: [code] Random rand = new Random(); for (int i = 0; i < 10; …

Member Avatar for Michael27
-1
303
Member Avatar for yup790

So your sepecific problem is creating these controls at runtime? If that's the case: private void CreateImageButton(Rectangle bounds, string text, Image image) { Button btn = new Button(); btn.Bounds = bounds; btn.Text = text; btn.Image = image; this.Controls.Add(btn); } This will create a button with the given location and size …

Member Avatar for yup790
0
326
Member Avatar for Diamonddrake

Generally using a polling timer is to check for events like this is not a good idea. It will consume more CPU than using events or window messages and has a delay period in between each update. Also, even though your timer is set to a very fast firing 10ms …

Member Avatar for chrisrmead
0
3K
Member Avatar for Ajayraj

You are giving 4 of the parameters the same name. Without a doubt this will cause problems - I think you meant to increment each one but stopped at @Val3. Since you are creating this command and only running it once, you don't really need to use parameters, just a …

Member Avatar for prathamesh3090
0
303
Member Avatar for 1qaz2wsx7

Not that it really matters, but 'global' methods and members are typically frowned upon in an OOP environment since they inherently have no associated object (instanceless) thus delving away from the object oriented nature. Having said that, feel free to ignore the norm and do what works best for you …

Member Avatar for JerryShaw
0
2K
Member Avatar for arunkumars

You seem to have 'Method Overloading' confused with the term 'Method Overriding'. Overloading is using the same method within a class with different return types or argument types. Method overriding is used with polymorphism to allow different functionality to be achieved in derived classes than in the parent class.

Member Avatar for Mitja Bonca
0
226
Member Avatar for Cameronsmith63

I use MySQL at work for this kind of thing. You can do a database restore from a self contained file to load in the data. Note that for large databases this can take a while.

Member Avatar for skatamatic
0
111
Member Avatar for Akill10

How about a list of linked list, where each linked list contains each significant vector position required to satisfy a condition.

Member Avatar for skatamatic
0
116
Member Avatar for lxXTaCoXxl
Member Avatar for skatamatic
0
159
Member Avatar for Taximus

There's 2 ways to do this. 1 would be to hook IE directly by injecting code into it and knowing what you are monitoring (basically would have to know how IE works inside which I unfortunately can't help you with). This would be pretty troublesome and complicated so I recommend …

Member Avatar for Taximus
0
790
Member Avatar for George_91

I would make the group-box with the radio buttons into a custom user control, then give it a property "IsAnswered" or something similar public bool IsAnswered { get { return (this.Controls.OfType<RadioButton>().Any(x => x.Checked)); } } //Then in the main form, in your validation function (or event or whatever) btnNext.Enabled = …

Member Avatar for skatamatic
0
840
Member Avatar for foo

I think primitives like int and string as keywords opposed to classes were added to keep C++ programmers happy and porting code less tedious.

Member Avatar for skatamatic
0
284
Member Avatar for George_91

Do you just want to simulate the result of a click (ie calling the click event handler)? Or did you want to automate the click (ie the mouse move onscreen and visually depresses the button)? The first one is by far easier than the second one, but both are possible.

Member Avatar for skatamatic
0
1K
Member Avatar for JasonWung

If you want them to write to the same log file you will have to syncronize the two applications such that neither of them try to access the same resources simultaneosly. An easy class for cross-process syncronization is the [System.Threading.Mutex class](http://msdn.microsoft.com/en-us/library/system.threading.mutex.aspx). Note you will have to use a named mutex, …

Member Avatar for skatamatic
0
540
Member Avatar for mujtabaaain

So....do you understand how threads, threadpools, or background workers work? Do you understand file IO and parsing? Or do you just want us to do the project for you (lol)?

Member Avatar for skatamatic
0
358
Member Avatar for celop

Hmmm, since this is for your final project you would think that these topics were probably gone through during the semester at some point. Also, you already started a thread for this - why not just tack this on the end of it rather than creating a new one?

Member Avatar for celop
0
91
Member Avatar for silent.saqi

If you have any sort of control over the database, maybe putting images in a different table and having a default image if the user has/doesn't have an image uploaded is a good idea. You can link to it with a foreign key to link employees with their images and …

Member Avatar for skatamatic
0
157
Member Avatar for rossco89

Basically the problem is - if no username/password match is found in the table, no value gets returned.

Member Avatar for skatamatic
0
207

The End.