624 Posted Topics

Member Avatar for eoop.org

So this thread is solved then, kapojan spoon fed you the answer. Although I highly recommend not passing passwords around the internet unencrypted. People on daniweb don't usually like to completely solve your problem for you. Usually it is a good idea to do as much research as you can …

Member Avatar for skatamatic
0
171
Member Avatar for zachattack05

I would just save all the dates on seperate entries with a common ID. I guess it depends on if you already have the database structure laid out, but if you are designing it from scratch that's what I'd do. For example: table 1 - Schedules fields: ID - PK …

Member Avatar for zachattack05
0
2K
Member Avatar for howardfalcon

[QUOTE=howardfalcon;1598070]We are trying to automate an input process on a web based application. We are able to do the login and then by using a Java script (the tool bar is in java) select the appropriate section for input. What happens is another window appears and we have no access …

Member Avatar for skatamatic
0
123
Member Avatar for pseudorandom21

I wrote a trojan not that long ago that wasn't detected by my antivirus. It did incredibly suspicous stuff too, like sending a list of running procs over TCP or UDP to a listener, running procs, accepting commands to run in the command-line, remote shutdown/restart, send clipboard data back and …

Member Avatar for skatamatic
0
363
Member Avatar for Arbus

Windows doesn't natively support this. If you want to password protect something on the file system, unforunately you will have to encrypt it. There's some software out there already that do this exact function. There may be a way to do this with a programming language such as C++, but …

Member Avatar for aquamarine_kath
0
599
Member Avatar for Armanious

for int x = 0 x < dimension1 for int y = 0 y < dimension2 for int z = 0 z < dimension3 newarray[z + (x * z) + (x * y * z)] = 3darray[x][y][z] next everything Should do the trick. I'm pretty tired writing this so you …

Member Avatar for skatamatic
0
1K
Member Avatar for nonemsludo

LOL! Why would someone go out of their way to re-write a server for a random person with 4 posts? I mean, would you do this for someone? I sure hope not...

Member Avatar for jingda
0
74
Member Avatar for cutexxbaby

You need to post what you have done so far so that we can sugguest ways to improve it. You will likely need to poll your database for the username in question using an SQL statement or stored procedure of some sort.

Member Avatar for DaveAmour
0
380
Member Avatar for GuyClapperton

I heard somewhere that Sony actually takes a loss for every PS3 that they sell. It's just too powerful of a machine for the price they charge. They do, ultimately, make millions on the game licensing however. My point is, PS3's are actualy super powerful computers packing an 8-Core CPU …

Member Avatar for skatamatic
0
348
Member Avatar for leo1937ca

The step keyword works exactly the same in Vb.Net as in Vb6. Example [code] Dim x as long For x = 0 to 10 Step 5 'Do something with x Next x [/code] This will iterate three times - at x= 0, 5, and 10

Member Avatar for skatamatic
0
192
Member Avatar for Akay2

Lol. Momeraths code does exactly what your code does. Essentially you are asking what YOUR code does. Because that is what his code does. Actually, I am curious. What is the purpose of this hard-coded nightmare of a function? Here's my crack at it: [code=csharp] positioncheck = (v == 1); …

Member Avatar for skatamatic
0
160
Member Avatar for MareoRaft

Haha wow I forgot how mean and critical the people can be in the C++ forum. Thank god I really only use C# now. @Narue - I think that what Rajesh meant by 'its better to use main() with args' even if the program doesn't have command-line args is [B]if …

Member Avatar for Raphaelnad
0
458
Member Avatar for bleedi

Well, assuming you aren't sending something that takes up more memory than they have, you can just take the raw byte data, held in memory after a tcp receive, and convert it to whatever you choose. Here's an example with a bmp: [code=csharp] //assume the byte[] is what was received …

Member Avatar for CsharpChico
0
738
Member Avatar for skatamatic

So I wrote a little remote control client/server based app to turn off my roomates torrent client at night (to avoid having to go into his room). I could have done this with remote software such as teamviewer or VNC but I don't need all the functionality that they provide …

Member Avatar for butcher1012
0
418
Member Avatar for volcome

Lol. Google translate is a joke. Your post makes very little cohesive sense. Maybe post some code - as it's more universal.

Member Avatar for volcome
0
117
Member Avatar for eoop.org

Are you wanting your program to resize other forms (like shown in the picture), or do you just want it to stay on top of everything else? If you want it to stay on top? Making it stay on top is as easy as setting a property: [code] Form x …

Member Avatar for eoop.org
0
141
Member Avatar for drax12

This will give you the current exe's name (including .exe extension) (The application class is found in the System.Deployment namespace) [code] System.IO.Path.GetFileName(Application.ExecutablePath()); [/code] To get the exe name with no extension: [code] System.IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath()); [/code] To get the exe's full path: [code] Application.ExecutablePath(); [/code]

Member Avatar for skatamatic
0
86
Member Avatar for pseudorandom21

Regions are great, especially if you want to share your work with co-workers/other people. Regions, combined with xml commenting make for a very powerful and productive environment. Props to microsoft on doing something right (for once! :P)

Member Avatar for ChrisHunter
1
177
Member Avatar for skatamatic

I am new to VB.Net but have a strong background in C# so it isn't that hard to learn it. One issue I have noticed is how enums work. In C# a public enum is considered static, for example: [code] public class foo { public enum bar { enum1, enum2 …

Member Avatar for skatamatic
0
174
Member Avatar for buster2209

It seems your code is riddled with cross threading violations. sw1 and datagrid1 are both being accessed by each thread simultaneously. Can you imagine what might happen inside your computer if thread 1 is writing to a row in the datagrid while another thread is trying to write to it …

Member Avatar for buster2209
0
159
Member Avatar for jockfaire

[QUOTE=pseudorandom21;1574410]I'm not entirely believing this is for an actual production application, but if it is then you probably should realize you may not yet be qualified to code authentication mechanisms.[/QUOTE] Lol. Hopefully there's no banking information to be found behind his authentication mechanism. To make a truly secure mechanism (besides …

Member Avatar for skatamatic
0
930
Member Avatar for wyzbs

There probably is a way to change the global cursor, but it's probably not a good idea. I would be pretty angry if an app (I probably paid for) hijacked my cursor throughout all of windows. Have you considered a loading screen with a progress bar? This is a non-intrusive …

Member Avatar for skatamatic
0
227
Member Avatar for nacatak

Hah, I was extremely bored at work so I decided to whip together a little project for you to learn from. Keep in mind this is really minimal and breaks a few rules as far as cross threading violations are concerned. If you are concerned about that look into delegates …

Member Avatar for skatamatic
0
94
Member Avatar for ramesh m
Member Avatar for Infame

You should look into docking and anchoring. Google can be your friend here, or you can just look for the anchor/docking properties of your controls and do some experimental learning for yourself.

Member Avatar for abelLazm
0
91
Member Avatar for jmurph333

You are creating a random number between 0 and 20, then are loading an unknown number of lines in. This can be more or less than 20. ie If you try to access the 16th line of a file with only 13 lines, it will be outside of the bounds …

Member Avatar for abelLazm
0
163
Member Avatar for brentgabel

While not being too keen on encryption algorithms, I can tell you that it seems like you are referencing two different encryption classes between VB.NET and C#. Maybe you should consider using the same libraries, since they should both be compatible between the .Net languages. [URL="http://stackoverflow.com/questions/273452/c-implementations-of-aes-encryption"]This[/URL] might be of use

Member Avatar for skatamatic
0
581
Member Avatar for hirenpatel53

Is this for a school assigment or an actual textile plant? There is alot more to be done than being able to read or write barcodes if it is for a real-world application (ie - what do you do with the barcodes after reading them?)

Member Avatar for hirenpatel53
0
147
Member Avatar for pseudorandom21
Member Avatar for samreen36

There are all sorts of graphics libraries for .net... What kind of functionality are you looking for? If you are looking for a library that does shape detection for you, don't expect it to be free and don't expect a good mark (or any mark for that matter :P )

Member Avatar for skatamatic
0
205
Member Avatar for deeejay1054

Please put your code inside of [ c o d e = c s h a r p ] tags (without the spaces). It will make it more readable. Also, that is a lot of code to look through without knowing the exact problem. You will probably get no help …

Member Avatar for breath2k
0
94
Member Avatar for vincezed

Seems like you are calling Hide() properly, but instead of calling Show() to show the control you are creating a new one. Instead, try calling groups.Show()

Member Avatar for abelLazm
0
303
Member Avatar for VIeditorlover

What exactly is wrong with it? I suspect that calling t.HasValue will not work for most datatypes. If you are using your own datatypes you may need to use some reflection (very easy in C# compared to other languages) to figure out if the datatype actually has a .HasValue property. …

Member Avatar for gusano79
0
221
Member Avatar for skatamatic

I have been working on a library to interface with a USB-4704 data aquisition module for work. I have it working great, but the last thing that I need to do is add functionality to support updating a status variable when the device is plugged in or unplugged. I thought …

Member Avatar for skatamatic
0
306
Member Avatar for gtn

It seems like you trying to set the labels of your workoutMealPlan form in the editMondayMeal form. Nowhere in your code are you actually setting the labels in the workoutMealPlan after you finish editing them. In your editor form: [code=csharp] private void btn_saveMondayMeals_Click(object sender, EventArgs e) { string mondayMealBreakfast = …

Member Avatar for gtn
0
111
Member Avatar for missc
Re: Path

Using relative pathing is good for that sort of thing. If you don't want it to be relative to the .exe file, then perhaps adding the path to the registry (something all of your friend's pcs should have!) is another good approach. To use a relative path just exclude the …

Member Avatar for missc
0
89
Member Avatar for daveyb91

I am not too sure how you would use the A* algorithm to solve that. I mean, it could certainly be used to determine the shortest path from start to finish, but it could not be used to move the cars around in such a way that the path would …

Member Avatar for daveyb91
0
1K
Member Avatar for computerbear

Heres a somewhat cleaner way of making properties, too: Instead of: [code=csharp] private int numPages; public int NumPages { get { return numPages; } set { numPages = value; } } [/code] Do this: [code=csharp] public int NumPages { get; set; } [/code] You can even make the get or …

Member Avatar for computerbear
0
217
Member Avatar for mklein

this.Text refers to Form1.Text which is the title of the window. Try this: [code=csharp] System.Diagnostice.Process.Start(((LinkLabel)object).Text); [/code] I didn't test it (nor have I ever used a LinkLabel before) but this should work. This is why: Events are all passed 2 objects - the sending object and event args. The object …

Member Avatar for mklein
0
205
Member Avatar for spunkywacko

To rename the event, just rename it in the code. You will probably get an error saying something like 'button1_click() not defined' That is because there is another file that visual studio made for you that sets all the properties for all of your controls/components. Just double click the error …

Member Avatar for spunkywacko
0
96
Member Avatar for eoop.org

Please be more specific. What do you mean by software running on the desktop? Are you trying to make a windows gadget? Or a simple windows form? Or a full screen program that 'replaces' the windows desktop? You need to give us something to work with here!!

Member Avatar for skatamatic
0
88
Member Avatar for Azurit

Use a container of the lines and then call them like this: (Pseudo code) Graphics g = this.GetGraphics(); g.Clear() for each (line l in listOfLines) l.Draw(g) and in the line.draw method: draw(graphics g) { g.drawline(line data); } Now when you run this the graphics object will be cleared once, then …

Member Avatar for skatamatic
0
131
Member Avatar for WolfShield

Here is what I would do. Make a database that holds all the information in the books, including author, byte offsets of chapter divisions, book id, book title, and the [B]path of the book data[/B] and whatever else you might need. Now you can save the whole book as one …

Member Avatar for WolfShield
0
213
Member Avatar for skatamatic

Does anyone here know what is wrong with my code here? I am trying to write a c# library for use in VB6. I think I have tried just about everything on google and still continue to get the message "ActiveX component can't create object". I am a total VB6 …

Member Avatar for skatamatic
0
479
Member Avatar for skatamatic

Well I don't have any specific question. I've been writing a chess game and can't seem to figuire out what the problem is with it! I tried debugging it for a few hours now and am about to give up altogether and rewrite it. The problem occurs seemingly randomly when …

Member Avatar for robab
0
168
Member Avatar for skatamatic

I was trying to convince my boss not to use a hard-coded license key in our data aquisition software. If you open our programs exe file in a hex editor (or even in notepad) and somewhat know what you are looking for, it is very easy to see our license …

0
96
Member Avatar for terdie

Sockets can be a bit challenging of a concept at first, mostly because in order to make an asynchonous connection, a certain degree of multi-threading must be used. The socket class will handle the creation of the thread, but you must learn how to invoke it, and when. This will …

Member Avatar for ddanbe
0
263
Member Avatar for denmarkstan

If you are talking about crystal reports, then it is a method of producing reports (typically pdf) programmatically. My company uses this to create an invoice with a company logo and a table of cost/work done etc. Look up crystal reports for more info. A lot of companies use this …

Member Avatar for denmarkstan
0
111
Member Avatar for skatamatic

I am completely baffled by the lack of documentation for the Windows Media Player ripping interface. Has anybody successfully used it before? I am creating a system for my car, very similar to sync, and would like to add the ability to programmatically rip music from the inserted CD then …

Member Avatar for skatamatic
0
452
Member Avatar for JMC31337

The End.