282 Posted Topics

Member Avatar for Kalle_2

First of all a hash is way to store a value in an almost irreversable state. To use them values are stored as hash values (such as a database). Then when a user tries to log in, you take for instance their password, hash it, and compare it to what's …

Member Avatar for JOSheaIV
0
201
Member Avatar for mdev

I assume you tried all the different click events related to a ListView? Also, a little more detail, but are you actually getting the data from the XML successfully?

Member Avatar for TekknoDraykko
-1
232
Member Avatar for oren.turgeman.9_1

yeah you don't want to be adding to the workbook. Once you have a worksheet (which by default excel creates one), you can write to it, like `xlWorksheet.Cells[y,x] = value;` (of course x and y are the grid coordinates, and do note they are backwards to navigating a DataGridView, and …

Member Avatar for JOSheaIV
0
310
Member Avatar for mdev

Are you trying to remove all the data from within the Pessoa Element? That's what the if statement that checks against value looks to be doing to me. What do you want the XML to look like when you are done?

Member Avatar for JOSheaIV
0
208
Member Avatar for PulsarScript

You mind providing a little more detail. For instance what exactly are you trying to accomplish? The image and code alone aren't really explaining the issue or the goal

Member Avatar for JOSheaIV
0
137
Member Avatar for ddanbe

I have to ask, why no Regex? `@"([\d]+)°([\d]+)'([\d]+)"` (then match group 1,2, and 3)

Member Avatar for JOSheaIV
0
243
Member Avatar for JOSheaIV

Okay so this is for those who do or have developed for a living. Long story short, we had a meeting today where we finally set up standards for writing our code. Most of them I was sadly the blacksheep and lost my arguments (they mostly came from the one …

Member Avatar for JOSheaIV
0
149
Member Avatar for JOSheaIV

Hello everyone, So today I wrote a small little application that reads in the bytes from a SerialPort object. While this worked successfully, it was completely local. The device I was reading from was plugged into my machine. Now, again while that worked, I need to use the same logic …

Member Avatar for JOSheaIV
0
152
Member Avatar for Stacy_1

I think I see what's going on, it's that while loop. You are firing of a series of `Application.DoEvents()`, which, while I don't know a whole lot about this piece of code (other then anywhere I see it mentioned people suggest avoiding it if possible), but I am guessing that …

Member Avatar for harshchandra
0
202
Member Avatar for JOSheaIV

Hello Everyone, I recently came up with a really nice little piece of code that allows me to merge images quickly (by merging I mean fade in and out). The only problem is, the tests worked fine on small scale (like small images), but once I started to go larger, …

Member Avatar for tinstaafl
0
235
Member Avatar for Amr_Mohammad_R

To add onto what samsylvestertty said, Your best bet is actually to ask the manufacturer. If they have an SDK, they also can sometimes help with telling you have my implement and use it (like if it's non-native code)

Member Avatar for Bhuvan_1
0
127
Member Avatar for JOSheaIV

So hopefully the title makes a little sense, but I'll explain a little more. Currently I am developing a program at work that is designed to query a SQL database for results. The code is meant to be stand alone, a single .exe that can be run on any machine. …

Member Avatar for JOSheaIV
0
344
Member Avatar for Muzaffer_Ali

You can use it like so if(openFileDialog1.ShowDialog() == DialogResult.OK) { //use the OpenFileDialog as you like, you can get the //file name with "openFileDialog1.FileName;" } That above assumes your OpenFileDialog is named "openFileDialog1". Just place that piece of code within the button's click event (that's usually how I do it)

Member Avatar for JOSheaIV
0
164
Member Avatar for analys

Alright, so you have the filename as well as the folder name. I am going to assume you got this far, but you are unsure where to go next? Well if that is the case, first of all, make sure you have the following reference `using System.IO;` Now when I …

Member Avatar for JOSheaIV
-1
307
Member Avatar for fabregas42

First of all, I hope the XML you posted isn't what you are trying to actually read in ... because you won't (specifically the 'item' close node, and the 'HaberKodu', 'Kategori', 'Sehir', and 'title' open nodes). They are missing characters (< or >) It should look like <item> <HaberKodu> </HaberKodu> …

Member Avatar for JOSheaIV
0
429
Member Avatar for BibhutiAlmighty

So have you checked the property in the fomr "ShowInTaskbar". This pretty much means as it sounds, if true it shows an icon in the taskbar. So if you have two forms open, but with this true, and you minimize both you might get this dual icon (of course it …

Member Avatar for JOSheaIV
0
146
Member Avatar for mridul.ahuja

First of all, you know you can also just place the .exe in the Startup folder, and it will execute on boot (something I recently learned, no clue why it took me so long to figure that out) Of course that's getting side tracked. First of all I assume you …

Member Avatar for mridul.ahuja
0
445
Member Avatar for lithium112

Let me get a little more information first. You say you are trying to merge 2 databases correct? However, a DataTable will only hold 1 table. A database can be made up of multiple tables. So are you trying to merge the Databases? Let's assume you are. Then you need …

Member Avatar for lithium112
0
239
Member Avatar for Reapt

> Mono is probably the next most popular IDE after Visual Studio. I know a little side tracked, but Bob Hensley, have you tried using Mono on Linux? I got a Raspberry Pi I want to turn into a dev box

Member Avatar for JOSheaIV
0
264
Member Avatar for VIeditorlover

There are tool to obfuscate out there, which I can confirm do scramble the code up to prevent decompiling. There are free ones out there, but well they are free, so you get what you get (I personally haven't used any yet). We use one at my work, but it …

Member Avatar for JOSheaIV
1
1K
Member Avatar for david.1982

Why not use a 1 way? You can HASH the password, when it's initally entered and store that value. Then every time the user tries to log in, in the future, hash that value and compare it to what you have on record. If they match up, the hashed password …

Member Avatar for JOSheaIV
0
556
Member Avatar for analys

You could always read the file into a byte array using something like byte [] MyArray = File.ReadAllBytes(fileName); Then, if I am reading your code correctly Console.WriteLine("Start : " + HexConverted(MyArray[0])); Console.WriteLine("End : " + HexConverted(MyArray[MyArray.Length - 1])); That should give you the first and last byte of the file, …

Member Avatar for JOSheaIV
0
206
Member Avatar for CodeAssasian

There are multiple ways this can be done. Here are examples of ways I have done it (and do now): * Text File (.txt) * Excel * SQLite (read/write like you would a normal database, but it's a local file) * XML * BMP (sorry, had to throw that in, …

Member Avatar for JOSheaIV
0
175
Member Avatar for theashman88

Static items are loaded in at run time. Non-dynamic. If you have a piece of code that's reused a lot and doesn't really need to store data between uses Static can work nicely for that. Just remember, it's initialized at run time, unlike, a variable you initialize (that's why you …

Member Avatar for RichardGalaviz
1
308
Member Avatar for JOSheaIV

I have been developing window form applications for probably the last 4 or 5 years, and have drasticially improved my UI designing, which I am rather proud of, as it's a art form you might say. A whole thing of its own on top of development. But while I have …

Member Avatar for ddanbe
0
170
Member Avatar for Prateek_2

A stream to me is like everyone says, a collect of bytes. Now, because of this it allows the developer a lot more control of what to do with the data. For instance you could read in an image, or a text file, ext. Streams can be, well, streamed. You …

Member Avatar for JOSheaIV
0
204
Member Avatar for Trle94

Well if your code is anything like what is above, I am not sure why you are indexing. You simply are pulling the TextBox text everytime. So no matter how many times you loop through it will be the same thing. As for yoru first character, post code please, would …

Member Avatar for JOSheaIV
0
197
Member Avatar for aseeman

Well I feel my suggestion might be a little slanted cause I love to do it, but Regex. I actually awhile back wrote a custom library that would parse HTML, and relied heavily on Regex to perform the operations (the thing was a little weird, I need to clean it …

Member Avatar for JOSheaIV
0
297
Member Avatar for Suzie999

I swear there was a way to request a pause, I just can't for the life of me remember it. However, may I offer one suggestion. Place a lock around that pause variable. Such as //Thread method started with start button private void MyThread() { while (true) { lock(MyLock) { …

Member Avatar for JOSheaIV
0
129
Member Avatar for JOSheaIV

Alright, so the following has stumpted me and a few others in the office, and we just can't figure it out. I have develope a program that allows us to go out to a specific database and search one of the fields based on specified values. Now that seems all …

Member Avatar for diafol
0
5K
Member Avatar for JOSheaIV

Hello everyone, So here's an interesting question for you all. I need to know how to retrieve all the Column Names or Primary Keys from one of the specificed database types: SQL Server, Oracle, AS400, IBMDB2. Now this has to be as a query, or more specifically I have to …

0
98
Member Avatar for bananacat

First of all quick tip for you `openFileDialog.ShowDialog() == DialogResults.OK` you can stick that in an if statement (I love to do it that way). Secondly, I see it's an image ... aka, "Royal pain in the butt when it comes to memory management". I'd suggest trying ddanbe's idea first. …

Member Avatar for JOSheaIV
0
161
Member Avatar for asardeen

Have you ever though of user the Excep Interop? I used this years ago to read and write from an Excel file. I know that doesn't help to much now, but I will try and find my code for that when I get home tonight after work. However, if you …

Member Avatar for JOSheaIV
0
338
Member Avatar for Roisin

Ahh Lists, one of the reasons I love C# so much. So it looks like you are trying to retrieve the List of scores in your Student object right? public class Student { public Student() { this.Scores = new List<int>(); } public Student(string Name, List<int> Scores) { this.Name = Name; …

Member Avatar for JOSheaIV
0
558
Member Avatar for sanjeev_3
Member Avatar for richard.vannoy.92

If you are using Visual Studio, and in the Designer, you can simply change the Name in the controls properties. Doing so will update all the fields that are causing errors. (however, if you can't, then you simply need to edit the values related to it within the designer file …

Member Avatar for JOSheaIV
0
142
Member Avatar for iConqueror

Like ChrisHunter said, you could always use while(true) { break; } Okay so i added that `break;` just to remind you that when using a while true, that's the best way to escape the loop (break out of it). For instance, exiting the program (On a personal note, be careful …

Member Avatar for JOSheaIV
0
352
Member Avatar for ddanbe

2nd example. Now in your case it's rather simple here, but if you use two 'ifs' like that you are going to have to run the code on each, and risk them both performing a task instead of one. Plus if another developer were to work on your code, the …

Member Avatar for JOSheaIV
0
144
Member Avatar for JOSheaIV

Hello Everyone, Okay I have got probably one of the weirdest question you have seen in awhile. I have been working on a custom image selection form (much like a file selection, but I didn't like the default Microsoft one). This also includes me rebuilding a custom object, that references, …

Member Avatar for JOSheaIV
0
195
Member Avatar for celineshh

There a two lines of code you could use `Button.Enabled = false` or `Button.Visible = false` Enabled leaves the button on the screen, but it's grayed out and none of its events will fire. Visible on the other hand makes it disappear so you don't see it. Either way, place …

Member Avatar for arunkumars
0
1K
Member Avatar for deceptikon

Okay I have to ask. What is the date suppose to represent? The current date? date of birth?

Member Avatar for ddanbe
1
581
Member Avatar for ondegotariq

If I recall right the Trim function actually removes all white space (leading or trailing depending on which variation of Trim you use). White Space includes Carriage Returns and Line Feeds Also, how are you not getting an error with that TrimEnd written like that. Don't you need parenthesis after …

Member Avatar for JOSheaIV
0
206
Member Avatar for JOSheaIV

I have an application I have been buidling for awhile and have finally finished the first draft of it (it's a screensaver). Anyway, during my countless hours of testing never once did I see an error this error I am getting now. The error I am getting only occurs when …

Member Avatar for Ketsuekiame
0
216
Member Avatar for sanz

Alright, so for your example are you scanning a 1D or 2D barcode (in otherwords, the usual barcode you'd see at a super market, or items like a QR code or data matrix). Now from what you have said, it sounds like you are trying to scan a 1D barcode, …

Member Avatar for JOSheaIV
0
298
Member Avatar for Felix Arba

Hey Felix, So I scanned your post (currently in the office), but I will say this. Anytime I've blown a Stack Overflow error, it's been with recursive calls that don't increment or termiante properly. One example would be the index doesn't increment properly, so it continues to recursively call until …

Member Avatar for Felix Arba
0
562
Member Avatar for JOSheaIV

Alright here's one that's been stumping me way to long. You know when you right click a folder, and go to properties you get get items like the size, the type, ext. There's even options to change the icons. What I want to know is how is this information stores? …

Member Avatar for JOSheaIV
0
200
Member Avatar for AmrMohammed

`"Server={0};Database={1};User ID={2};Password={3};"` Where the {#} are where you enter your data, however, this is if you want to connect with SQL authentication, if you are using WIndows authentiation you can use the following string `Server={0};Database={1};Trusted_Connection=True;` These however are for SQL Server, which you plug the string into `DbConnetion connection = …

Member Avatar for JOSheaIV
0
297
Member Avatar for Ruan_1

I literally copy/pasted this from a code I wrote, so there might be a little overhead //downloads an image from the web (if it doesn't exist on file) public static bool Image (string url, string filename, bool forceDownload) { //if the file currently doesn't exist (download it) (or if we …

Member Avatar for Daemon_CC
0
173
Member Avatar for itslucky

While I haven't seen how it's entirely configured, we use WIX at my place. It's pretty easy to use, just have to configure the XML (of course it does tie into a build machine)

Member Avatar for Daemon_CC
0
1K
Member Avatar for JOSheaIV

Alright this is reallly stumping me and rather aggravating. Long story short, I didn't like how the ListView worked in C#, so I decided it was time to build my own, using a TableLayoutPanel and a custom control I built to emulate the image and text effect. Well while testing …

Member Avatar for JOSheaIV
0
453

The End.