Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~26.8K People Reached
Favorite Forums
Favorite Tags

50 Posted Topics

Member Avatar for papuccino1

Several ways to do it, here is an article on [URL="http://vckicks.110mb.com/image-from-file.php"]loading image files[/URL]. Just make sure to dispose of new objects properly depending on how you load the images

Member Avatar for NetJunkie
0
2K
Member Avatar for vckicks

The .Net Framework uses by default radians in its trigonometry calculations. Find out how to convert degrees to radians to use with C#

Member Avatar for ddanbe
1
716
Member Avatar for vckicks

Use regular expressions, regex, to create an efficient textbox that only takes in digits as input.

Member Avatar for Chatthanz
1
847
Member Avatar for perryleros

It might not be the cleanest solution, but error when decrypting is almost always the wrong password. It's not too bad to assume that an error meant the incorrect password was entered (error = alert user wrong password). I think this is normal based on how the encryption algorithm works.

Member Avatar for overcanyon
0
4K
Member Avatar for Egypt Pharaoh

.NET even has a built-in function to do the conversation. Some basic research would tell you the answer

Member Avatar for megabuild7
0
242
Member Avatar for dev.cplusplus

Sure it's possible! The trick is to scan the directory using System.IO.Directory.GetFiles() and System.IO.Directory.GetDirectories() [make sure to do it [URL="http://vckicks.110mb.com/scan_files.html"]recursively[/URL]] Then you can upload each file one at a time. If you need help with that here's a link to my site on [URL="http://vckicks.110mb.com/csharp_ftp_upload.html"]uploading files via FTP[/URL]. By the way, …

Member Avatar for iciku
0
102
Member Avatar for noktasizvirgul

This is a pretty big issue when it comes to .Net applications. In case you haven't, I would read up on [URL="http://vckicks.110mb.com/obfuscator.php"].Net Obfuscation[/URL], which is the simplest way to protect your applications. RemoteSoft's Protector is more advanced, but definitely more powerful. I have used it in the past and it's …

Member Avatar for ghimangi
0
139
Member Avatar for rosebabu

You need to make use of the FormClosing event. Here is a quick example: [CODE]private bool minimize = true; private void Form1_FormClosing(object sender, FormClosingEventArgs e) { if (minimize) { e.Cancel = true; this.WindowState = FormWindowState.Minimized; } }[/CODE] The reason for the minimize bool variable is to have control of whether …

Member Avatar for Geekitygeek
0
2K
Member Avatar for gp04lch

Maybe try [CODE]this.Controls.IndexOfKey("txt_to" + i.ToString());[/CODE] if the index is not -1 then you can use this.Controls[i] and it will be the textbox

Member Avatar for pokopolo
0
91
Member Avatar for vckicks

A simple way to check if the current C# program is the only instance of itself running.

Member Avatar for ashishkumar008
1
256
Member Avatar for vckicks

The xor operator allows you to switch the values of two integer variables without the need for a third, temporary variable.

Member Avatar for maryann2076
0
160
Member Avatar for vckicks

A slightly modified version of Bucket Sort that uses LinkedLists and initializes buckets only when required. Results in massive speed improvements.

0
265
Member Avatar for vckicks
Member Avatar for subtercosm
0
2K
Member Avatar for vckicks

Bucket sort is a very simple, fast sorting algorithm specialized in integers.

Member Avatar for MosaicFuneral
0
2K
Member Avatar for vckicks
Member Avatar for vckicks
0
325
Member Avatar for vckicks

Draw animated GIFs in C# in a frame-by-frame basis. Gives you a finer level of control.

0
236
Member Avatar for anupam_smart

Unfortunately there is no way to make a Form semi-transparent and keep controls within it opaque (as far as I know). The hackery way to do it is to have two forms, one semi-transparent, and the other one on top to hold the opaque controls. However I don't recommend this …

Member Avatar for Diamonddrake
0
199
Member Avatar for C#Newbie

Just a quick glance I would play around with this line: output.Write(fr.friendName, fr.friendStreet, fr.friendCity, fr.friendState, fr.friendZip); You have to convert the arraylist element into a string or something before writing it to the file. Just make sure it's in a format that you can read back later.

Member Avatar for C#Newbie
0
519
Member Avatar for BobLewiston

Just some quick thoughts, if you are using .NET Framework 2.0 or up then you have the notion of partial classes, which means the code for the Form can be in several different files. The code you posted seems to be designed to be the only code in the Form, …

Member Avatar for JerryShaw
0
152
Member Avatar for danielc

Some interesting answers. I've always used this method: [URL="http://vckicks.110mb.com/single-instance.php"]Single-Instance Application[/URL] It's obviously not fool-proof because changing the title of a running application is not that hard. Something else you can do is if you can get the location of the running process you are comparing, create a new FileInfo class …

Member Avatar for hassan-golab
0
3K
Member Avatar for vckicks

Hello, I'm having some very confusing problems with the StringFormat class. I'm hoping someone will know what's going on. I want to draw text right-to-left. It's multiple lines so I figured using the StringFormat class was an easy way to handle that, I declare it as: [CODE]StringFormat f = new …

Member Avatar for vckicks
0
200
Member Avatar for karthi_selva
Member Avatar for karthi_selva
0
175
Member Avatar for Arctic Giraffe

[url]http://richnewman.wordpress.com/hslcolor-class/[/url] perhaps that will get you started

Member Avatar for gbertoli3
0
178
Member Avatar for sivak

I don't mean to give a useless answer but a simple Google search of all the above questions gives immediate and rich answers...

Member Avatar for Jugortha
0
121
Member Avatar for papuccino1

I tried writing tetris a while back (not for C#) but trust me on this: make blocks classes and then use small arrays to hold 4 blocks in different positions (to make pieces). That will make it MUCH easier when it comes time to break pieces apart as rows disappear.

Member Avatar for vckicks
0
215
Member Avatar for serkan sendur

I know what you mean, it would be nice to have a structured way for applications to communicate between each other. The best you will find is by hooking on DLL's used by other programs. There are plenty of legitimate uses for such applications without them being viruses or keyloggers …

Member Avatar for Jugortha
0
154
Member Avatar for Chris11246
Member Avatar for rapture

i would recommond to convert to C# first. Luckily 1.1 to 2.0 C# conversion is relatively simple since most new things in C# 2.0 only make things easier (so worst case C# 1.1 code will be harder than it has to be). Tricky part is VB.Net to C#. But like …

Member Avatar for rapture
0
253
Member Avatar for legend_018

I cannot really relate with a personal example. But I can't imagine having to memorize everything. A better idea would be to memorize Properties and Methods that are commonly used (how do you know which are common? As you keep programming you will get a feel for what is commonly …

Member Avatar for jireh
0
405
Member Avatar for murderotica

There is a series on CodeProject all about this topic, they are quite impressive: [url]http://www.codeproject.com/KB/security/steganodotnet.aspx[/url] For the rest of them, do a Ctrl+F search of "Steganography" in: [url]http://www.codeproject.com/KB/security/index.aspx?#Cryptography%20&%20Security%20-%20Security[/url]

Member Avatar for murderotica
0
175
Member Avatar for redone

I'm not really sure what you mean but here is a good place to start: [url]http://www.codeproject.com/KB/combobox/[/url] They have a lot of articles on custom comboboxes. I don't think you'll find exactly what you want, but it gives the idea on how to approach the task. Good luck

Member Avatar for vckicks
0
64
Member Avatar for sancti

If you want the border when you print then it's probably easier to add it during the PrintPage event of the document.

Member Avatar for vckicks
0
61
Member Avatar for papuccino1

try something like this: for (int i = 0; i < listBox1.Items.Count; i++) make sure it's i < and not i <= since you are starting with index 0. Good luck

Member Avatar for jireh
0
109
Member Avatar for vsmaddy

you might find this page helpful: [URL="http://bytes.com/forum/thread524979.html"]http://bytes.com/forum/thread524979.html[/URL]

Member Avatar for vsmaddy
0
115
Member Avatar for matejkralik

if you are talking about the default blank row at the bottom of all the rows then you have to turn off the property AllowUserToAddRows. Since it is not a real row you cannot delete it.

Member Avatar for Renukavani
0
100
Member Avatar for DotNetUser

This is something similar to what you are doing, working with [URL="http://vckicks.110mb.com/dynamic-control.php"]dynamic controls[/URL].

Member Avatar for vckicks
0
965
Member Avatar for vckicks

I've been going crazy with a problem lately and I was hoping someone could give me a little insight. Basically I have a database project in C# that I work on with two computers. One uses Vista and the other XP. So far I have transfered the project files between …

Member Avatar for vckicks
0
115
Member Avatar for Soundgarden

Anyone with the same problem, the [URL="http://vckicks.110mb.com/scan_files.html"]recursive scanning[/URL] article shows how to do it exactly.

Member Avatar for vckicks
0
105
Member Avatar for Gaurav arora

Be careful with instances of classes. You might be passing variables to the wrong instance.

Member Avatar for vckicks
0
80
Member Avatar for sancti

A cleaner way to do it is with API calls, there is an example in this page on how to [URL="http://vckicks.110mb.com/csharp-programming.php"]Capture the Screen[/URL].

Member Avatar for vckicks
0
83
Member Avatar for reaven

it depends on the batch file i think, but just try "C:\setstation.cmd", you just need the full path.

Member Avatar for reaven
0
193
Member Avatar for y_itay

There is no easy way to filter data with a generic collection unfortunately. But sorting shouldn't be too hard since generic collections have a Sort function you can call. To implement a custom sorting algorithm check out this link on [URL="http://vckicks.110mb.com/sort_points.html"]sorting points[/URL]. It should help as a general guideline. hope …

Member Avatar for y_itay
0
636
Member Avatar for mrjoli021

In this case I would load all the string data into a variable so you can use the StringReader class (in System.IO). The StringReader object lets you read a text file line by line. So you could scan through the lines in search of your delimeters and only read the …

Member Avatar for nvmobius
0
110
Member Avatar for C#Novice

set the Name property of the textboxes to a common name and increment with numbers, for example, "txtQuestion1", "txtQuestion2", etc. Then later you can iterate through the Controls collection (through the Form or whatever is holding the textboxes) and if the name starts with "txtQuestion" for example, take it's Text …

Member Avatar for selvaganapathy
0
99
Member Avatar for Umair.P

It depends on your programs structure--as in how the dialog is created and shown--but try closing the dialog Form (the one called with form.ShowDialog()) by setting the DialogResult equal to OK or Cancel. Then make sure to read any property values before calling Dispose.

Member Avatar for Umair.P
0
101
Member Avatar for IT_Techno

easiest way: [CODE]int myInt = 5; string formattedInt = myInt.toString("0000"); int readFormatted = int.Parse(formattedInt); //in case you want it back to an integer[/CODE]

Member Avatar for vckicks
0
125
Member Avatar for sivaslieko++

there is an API call that i can't recall from memory, but it gets the ID of the current Active Window

Member Avatar for sivaslieko++
0
80
Member Avatar for master78
Member Avatar for vckicks
0
120
Member Avatar for FilteR

Try checking the filename extension before adding it and only add the ones that end with ".mp3". Here's the full code: [CODE=csharp]private void listview1_DragEnter(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) e.Effect = DragDropEffects.Copy; } private void listview1_DragDrop(object sender, DragEventArgs e) { string[] directoryName = (string[])e.Data.GetData(DataFormats.FileDrop); //Get all the files inside …

Member Avatar for vckicks
0
115

The End.