624 Posted Topics
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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... | |
Re: 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. | |
Re: 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 … | |
Re: 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 | |
Re: 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); … | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: Lol. Google translate is a joke. Your post makes very little cohesive sense. Maybe post some code - as it's more universal. | |
Re: 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 … | |
Re: 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] | |
Re: 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) | |
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 … | |
Re: 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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 | |
Re: 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?) | |
Re: 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 ) | |
Re: 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 … | |
Re: 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() | |
Re: 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. … | |
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 … | |
Re: 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 = … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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!! | |
Re: 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 … | |
Re: 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 … | |
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 … | |
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 … | |
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 … | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: That is... a rediculous and shameful piece of code |
The End.