282 Posted Topics

Member Avatar for maxpaine69
Member Avatar for LaxLoafer
0
2K
Member Avatar for ddanbe

Hmm, never knew this even existed, but then again that's programming for you. I might have to start using this, could be fun (especially for notifications where the occasional sound ... well I wouldn't want to use that boring thing) Update: Ohh just started poking around MSDN for this library, …

Member Avatar for kplcjl
5
563
Member Avatar for martin3885

So you are trying to write a number into the row headers? Have you tried items like this? dataGridView1.RowHeadersDefaultCellStyle.Font = new Font("Arial", 50); dataGridView1.RowHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; You can also do items like backcolor. And then if you want to set the text you can use this piece of code dataGridView1.Rows[index].HeaderCell.Value …

Member Avatar for JOSheaIV
0
1K
Member Avatar for Amador_1

Ahh XML, it can be a stumper at first, but once you learn the tricks, it becomes easy and powerful. Let's see, where did I leave that code (I'll convert it over to match yours) List<string> Names = new List<string>(); List<int> Ages = new List<int>(); List<string> Informations = new List<string>(); …

Member Avatar for JOSheaIV
0
259
Member Avatar for star.bravo

Read in Fonts as Bitmaps huh ... care to explain the reason behind that? I've never done this myself, and have to wonder if it's the best approach. Might have to look into this myself, to see if it can be done. I have experience with working with Bitmaps (here's …

Member Avatar for JobPencil
0
193
Member Avatar for hxn xfir
Re: Help

Have you attempted it all? This seems a lot like a Homework question, which is not what this site is for. I'll give you a hint though, you could use an array for this (to store the numbers, with only 1 occurance of each)

Member Avatar for JOSheaIV
0
817
Member Avatar for JOSheaIV

Hello Daniwebbers, Recently I have begun a new project that will go out to the internet and fetch information off IMDb about a source of media. Now currently when I do this I use an XML file to store what I have downloaded and parsed. For each piece of media …

Member Avatar for JOSheaIV
0
730
Member Avatar for edwingk

Well for saving, you could always just write the image to a file with a byte array. Of course this involves creating the header for the file. (however if you read it in as a Byte array that could get around it). I know that's how I got around an …

Member Avatar for JOSheaIV
0
3K
Member Avatar for KushMishra

If you were to ask for an older language say Fortran to C, I could point you to the right direction, however with the complexity of OOP languages today, this can be a rather hard task. Any good interpreter and converter (I think those are the right terms ... little …

Member Avatar for JOSheaIV
1
454
Member Avatar for ashishkumar008

Ahh Embedded Resources, I just learned about how to handle these at work when I had to work on someone else's source code. There are multiple ways to handle these. You can add them as resources in the properties, at which point, you can use very short amount of codes …

Member Avatar for JOSheaIV
3
5K
Member Avatar for mr_scooby

Ahh BackgroundWorkers, coding made easy. The best way to keep these clear is to call function, however, you can put the code needed in the DoWork event for the BackgroundWorker (well actually you need to DoWorker to execute what you want done ... at least I have never seen it …

Member Avatar for JOSheaIV
0
397
Member Avatar for mcoliver88

Hey mcoliver88, I sent you a message. I would like to see what you figured out about the SQL link I sent you

Member Avatar for Cameronsmith63
0
260
Member Avatar for jjtheflash

This can be done rather easily. First of all let me ask, do you know how to build forms? Next do you know about events? What you'll want is an event for the ListBox, the click one (or index change ... can't remember if that ones exists for ListBox). On …

Member Avatar for Cameronsmith63
0
200
Member Avatar for ddanbe

Ahh passwords. The larger the range of characters, the harder it is to crack a password. If you just use 0-9, that's 10^x possibility of passwords, where x is the length of the password. The more variaty you add, the great the complexity. Most passwords, when stored, are stored as …

Member Avatar for JOSheaIV
1
215
Member Avatar for JOSheaIV

Alright so here's a good one for you guys. Long story short I am trying to create a .bmp file out of a byte []. Now I have code that will convert a byte [] to an Image that I then save to a file, but this doesn't work. Why? …

Member Avatar for JOSheaIV
0
209
Member Avatar for Ahmed_43

Speaking off KM499's answer, you can also do something like string VarName = dataGridView1[1, 1].Value.ToString(); Where [1, 1] is the column and row index (in that order). This allows you to choose what ever cells you want to look at

Member Avatar for JOSheaIV
0
798
Member Avatar for kissbudai.matyas

Okay so let me get this straight. You want to take words and write them to a picture? So for instance a document would be a picture? Why not just screen shot it, no coding needed (if this is the case)

Member Avatar for JOSheaIV
0
128
Member Avatar for xXghostXx

Okay so I am no expert in this (heck I am referencing a code someone else wrote at my work), but I have a few questions. First of all, what line is it breaking on? Also, does the ConnectionString need to be case-sensative (I know SQL doesn't, but that's for …

Member Avatar for xXghostXx
0
2K
Member Avatar for king03

YIKES! Storing passwords as plain text. Here's a tip for you there, HASH them. When they create the account you hash the password and store the results. Then when they try to log in, you hash their password they have entered and see if it compares to the one in …

Member Avatar for odai.khateeb
0
3K
Member Avatar for JOSheaIV

So I have finally completed a project I have been working on for awhile, it's rather large and needs to be used in another project. With that I have decided I want to create a DLL out of the code (well a class library) ... plus I wanted to learn …

Member Avatar for Ketsuekiame
0
384
Member Avatar for M.Waqas Aslam

Hmm, While I've never done this (but wanted to) I could throw out something. I have seen others do items like this, but they were USB devices they rebuilt. If it's a good old RC plane, you might have to remake the controller, or do some redesign to the original, …

Member Avatar for JOSheaIV
0
142
Member Avatar for visya

Okay so assumning I understand this correctly, here's one way to do it I believe (note, I didn't this in SQLite, but it should be similar) First of all you need a column of type VARBINARY Then you take the document or whatever you have an convert it into a …

Member Avatar for JOSheaIV
0
236
Member Avatar for JOSheaIV

Okay, so I have been trying left and right to figure this out, but I just can't figure it out. I have been trying to produce a collection of Bitmap variables in my program of a series of characters. The problem is that during my tests, I save a file …

Member Avatar for ddanbe
0
212
Member Avatar for mcoliver88

Have you every though about creating a custom object? Something along the lines of using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MyProgram { public class QuizProblems { public QuizProblems (string question) { this.question = question; } public string question { get; set; } public string answer { get; …

Member Avatar for bertha
0
322
Member Avatar for prabhakar78

I am a little confused still by what you are asking. Can you do me a favor and take a screenshot of what the DataGrid looks like and pointout where the textblock and combobox you are working with are located? It might help me better understand what you are trying …

Member Avatar for KushMishra
0
690
Member Avatar for iFrolox

Well if I understand this correctly, this is something I just recently looked into. I can give you some links I found that might help http://www.codeproject.com/Articles/12138/Process-Information-and-Notifications-using-WMI http://stackoverflow.com/questions/10746670/how-to-monitor-that-an-application-is-opened Now, if you are interested, I was working on a program that would detect a process starting up, and then getting the processes …

Member Avatar for iFrolox
0
225
Member Avatar for JOSheaIV

Hey everyone, So awhile back I built a program that contained a function to merge two databases (well SQLite ones that are read in as Lists). When the first database is read in, well the file, it's read into a Binary Search Tree, while the second is read into a …

Member Avatar for JOSheaIV
0
214
Member Avatar for rahulsingh725

Well I'll assume you know how to extract the values from the DB with an SQL query. Once there it's rather easy All you need to do is create a for loop, and extract each value and pass it into a string. Then have another string that you simply append …

Member Avatar for JOSheaIV
0
209
Member Avatar for JOSheaIV

Hey everyone, So recently my sister got herself her own laptop (okay it's been a year or so). Anyway, she's been getting horrible at staying up super late messing around on it. Well I decided I'd help my parents out and write a program to control her laptop a little. …

Member Avatar for JOSheaIV
0
212
Member Avatar for ange1991

You want a simple single line of code to do all that? Why not make a new function and move this all into that. Then call the function from the button click? (A professor once told me, a program should not be written with the intent of using the least …

Member Avatar for JOSheaIV
0
212
Member Avatar for kiail

Mind telling us exactly where the error is? Like what line is throwing it or the message or what? I feel you only gave us part of the code since I never see you calling PlantHelper.GetPlants()

Member Avatar for JOSheaIV
0
177
Member Avatar for Smalls

Oh there is indeed. I just recently learned this myself. *(Please make sure to read this all the way through, it might clear itself up at the end)* First of all, we'll assume you at least know a little about backgroundWorkers (if not I can elaborate more). First of all …

Member Avatar for JOSheaIV
0
4K
Member Avatar for zachattack05

I usually leave it as Form1. It's easy, and I always remain that it is the main form (for awhile I would then name other forms form2, form3, ext and then maybe follow it with another name, but I soon stopped doing that)

Member Avatar for Momerath
0
274
Member Avatar for nnayram

Most of this should actually copy/paste over to be honest. Personally, I'd copy it over in parts, like x amount of lines at a time, then compile it. If you see an error, track it down, and fix it. A lot of C and C# code is similar, well at …

Member Avatar for LesF
0
477
Member Avatar for cirbab4

I will say, while the main thread for the form is there, I personally don't care to use it because it locks up the form, and you can't move it or alt+tab in and out easily, ext. Also if you are still puzzled about Invoke look at it this way. …

Member Avatar for JOSheaIV
0
188
Member Avatar for JOSheaIV

Hello everyone, I am back with yet more Fortran problems it seems. So I have spent some time working on trying to understand the C code that was produced from my f2c conversion of some Fortran 77 code. Well to understand it better I have been trying to use f2c …

0
279
Member Avatar for JOSheaIV

Okay so I hope this is the right place to put this. But onto the point. Anyway a long time ago my father showed me a game he used to play called Adventure. Some right remember this command prompt game as well as it's opening words "YOU ARE STANDING AT …

Member Avatar for ddanbe
0
233
Member Avatar for funfullson

ohh I actually found this link cruzing around the web one day saved if cause I thought it might be useful, might help you [url]http://msdn.microsoft.com/en-us/library/ms173187(v=VS.80).aspx[/url]

Member Avatar for Sri Harsha
0
352
Member Avatar for de Source

Okay so let me make sure I understand this right First of all, have you successfully written the Excel file to an SQL Table? Secondly, if an item has a same ID from the Excel file, then you extract it's status and add it to the SQL table. If I …

Member Avatar for arun1123
0
321
Member Avatar for JOSheaIV

Hey guys, maybe you could help shed some light on an issue I ran into while running a program of mine tonight. I have built countless programs around downloading webpage data and parsing it to retrieve data, but during a running of one of my programs tonight I got an …

Member Avatar for JOSheaIV
0
292
Member Avatar for JOSheaIV

Okay so here's a good one for you guys, I have some theories but would like some help. So I have a project I just came up with while I was waking up this morning. Part of this project involves comparing 2D arrays (or Lists, if I say array assume …

Member Avatar for JOSheaIV
0
225
Member Avatar for peymankop

Why do I feel this is for a final project? Since this sound **VERY** similar to a final project for a C# class I had years ago. But anyway, that last image, you just need to redraw it. The project I had, the professor dubbed it "The Tortoise and the …

Member Avatar for JOSheaIV
0
205
Member Avatar for vishalonne

Hmm, never worked with Access databases before, but couldn't you use some sort of incrementer that kept track how many times the button is clicked? Now for dataGridViews all you need to do is do something like dataGridView1.Rows.Add(); //adds a new row dataGridView1 [i, (dataGridView1.Rows.Count - 1)].Value = ""; // …

Member Avatar for JOSheaIV
0
399
Member Avatar for Ronnie.Sk1ttl3s.Eke

Okay so I looked at the screenshot and code, and I saw something that caught my eye. You said you are only creating 2 tables correct, so I went to your code and looked between where you created your 2nd and 3rd table. Which is this: LOCK TABLES `fe` WRITE; …

Member Avatar for JOSheaIV
0
253
Member Avatar for Jacobah

Hmmm, well I am no expert here, but it looks like what you are trying to do just doesn't like it. The Interop service doesn't want to accept the .jpg simple as that. Now you mention .BMP, have you actually gotten it to work with other file formats? To be …

Member Avatar for JOSheaIV
0
316
Member Avatar for visweswaran28

Just for the record, this is called Steganography. Might help your searching

Member Avatar for tinstaafl
0
206
Member Avatar for Ravenous Wolf

Correct me if I am wrong, but can't you simply specify the file name and extension? I know when I did some earlier coding in C#, since the .exe and saved file were in the same folder, I didn't need to specify a path, but simply the file name.

Member Avatar for JOSheaIV
0
6K
Member Avatar for blaze007

Read in the values from the fiile, using what ddanbe gave you to get you started. Now can I ask you this. I assume the numbers are on one line. The file you are trying to read in, how exactly does it look? I know a great way to split …

Member Avatar for ddanbe
0
382
Member Avatar for Aaron_JY

I think I understand exactly what he's asking, as this is something I have used prenty of times (and perfected). Okay so you know how you declare a new variable? Or a custom object? Maybe decalre a class that you call to (aka it's not static). Same concept for forms. …

Member Avatar for JOSheaIV
0
148
Member Avatar for CrazyMisho

Ever tried cURl? There's a library for C# that offers all of the great features cURl has (at least I believe). I have really been getting into this for a program I have been developing (and learning how to use it). I am quickly learning it's a powerful tool Here's …

Member Avatar for JOSheaIV
0
250

The End.