Search Results

Showing results 1 to 40 of 58
Search took 0.01 seconds.
Search: Posts Made By: vckicks ; Forum: C# and child forums
Forum: C# Apr 29th, 2009
Replies: 3
Views: 1,690
Posted By vckicks
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...
Forum: C# Feb 12th, 2009
Replies: 3
Views: 696
Posted By vckicks
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...
Forum: C# Feb 12th, 2009
Replies: 8
Views: 1,964
Posted By vckicks
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...
Forum: C# Jan 3rd, 2009
Replies: 2
Solved: StringFormat
Views: 1,906
Posted By vckicks
Thanks for the input. You gave me an idea and turns out the thing is reversing the string, but not really reversing it.

"hello!?" comes out as "?!hello"

So basically it reverses the order of...
Forum: C# Jan 3rd, 2009
Replies: 2
Solved: StringFormat
Views: 1,906
Posted By 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...
Forum: C# Dec 25th, 2008
Replies: 11
Views: 4,663
Posted By vckicks
Some interesting answers. I've always used this method:

Single-Instance Application (http://vckicks.110mb.com/single-instance.php)

It's obviously not fool-proof because changing the title of a...
Forum: C# Dec 23rd, 2008
Replies: 6
Views: 2,385
Posted By vckicks
.NET even has a built-in function to do the conversation. Some basic research would tell you the answer
Forum: C# Dec 17th, 2008
Replies: 0
Code Snippet: Fast Bucket Sort
Views: 1,717
Posted By vckicks
A slightly modified version of Bucket Sort that uses LinkedLists and initializes buckets only when required. Results in massive speed improvements.
Forum: C# Dec 11th, 2008
Replies: 6
Views: 2,127
Posted By vckicks
depends what you mean by "the icon". If it's just an image try a PictureBox
Forum: C# Dec 3rd, 2008
Replies: 1
Code Snippet: Color to uint and back
Views: 1,833
Posted By vckicks
Convert a color to a uint representation and back with simple byte shifting.
Forum: C# Dec 3rd, 2008
Replies: 2
Code Snippet: Bucket Sort Integers
Views: 1,554
Posted By vckicks
Bucket sort is a very simple, fast sorting algorithm specialized in integers.
Forum: C# Nov 22nd, 2008
Replies: 5
Views: 1,440
Posted By vckicks
http://richnewman.wordpress.com/hslcolor-class/

perhaps that will get you started
Forum: C# Nov 22nd, 2008
Replies: 2
Code Snippet: Degrees to Radians
Views: 2,673
Posted By vckicks
If the angle isn't whole use a decimal point (45.352343). If you want to convert something like 45°30'10'' to a decimal representation then that would be a different function to write.
Forum: C# Nov 12th, 2008
Replies: 6
Views: 2,518
Posted By vckicks
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...
Forum: C# Nov 12th, 2008
Replies: 3
Views: 394
Posted By vckicks
I don't mean to give a useless answer but a simple Google search of all the above questions gives immediate and rich answers...
Forum: C# Nov 3rd, 2008
Replies: 4
Views: 3,201
Posted By vckicks
Several ways to do it, here is an article on loading image files (http://vckicks.110mb.com/image-from-file.php). Just make sure to dispose of new objects properly depending on how you load the images
Forum: C# Oct 20th, 2008
Replies: 8
Views: 848
Posted By vckicks
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...
Forum: C# Oct 13th, 2008
Replies: 2
Views: 841
Posted By vckicks
Try FillRectangle from Graphics class
Forum: C# Oct 10th, 2008
Replies: 6
Views: 1,083
Posted By vckicks
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...
Forum: C# Oct 8th, 2008
Replies: 4
Views: 572
Posted By vckicks
There is a series on CodeProject all about this topic, they are quite impressive:

http://www.codeproject.com/KB/security/steganodotnet.aspx

For the rest of them, do a Ctrl+F search of...
Forum: C# Oct 7th, 2008
Replies: 4
Views: 5,046
Posted By vckicks
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...
Forum: C# Oct 7th, 2008
Replies: 1
Views: 1,028
Posted By vckicks
I'm not really sure what you mean but here is a good place to start:

http://www.codeproject.com/KB/combobox/

They have a lot of articles on custom comboboxes. I don't think you'll find exactly...
Forum: C# Oct 7th, 2008
Replies: 5
Views: 772
Posted By vckicks
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...
Forum: C# Oct 1st, 2008
Replies: 15
Views: 5,782
Posted By vckicks
I thought it goes without saying, but add this in the constructor of your Form:

This.FormClosing += new EventHandler(Form1_FormClosing);

I'm not too sure about the EventHandler part, but the...
Forum: C# Sep 30th, 2008
Replies: 1
Views: 829
Posted By vckicks
If you want the border when you print then it's probably easier to add it during the PrintPage event of the document.
Forum: C# Sep 27th, 2008
Replies: 3
Views: 781
Posted By vckicks
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
Forum: C# Sep 24th, 2008
Replies: 15
Views: 5,782
Posted By vckicks
You need to make use of the FormClosing event. Here is a quick example:

private bool minimize = true;
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (minimize)
...
Forum: C# Sep 23rd, 2008
Replies: 4
Views: 32,131
Posted By vckicks
This is something similar to what you are doing, working with dynamic controls (http://vckicks.110mb.com/dynamic-control.php).
Forum: C# Sep 23rd, 2008
Replies: 4
Views: 3,098
Posted By vckicks
you might find this page helpful:

http://bytes.com/forum/thread524979.html
Forum: C# Sep 23rd, 2008
Replies: 12
Views: 2,427
Posted By vckicks
Maybe try

this.Controls.IndexOfKey("txt_to" + i.ToString());

if the index is not -1 then you can use this.Controls[i] and it will be the textbox
Forum: C# Sep 23rd, 2008
Replies: 0
Code Snippet: Slope Formula
Views: 1,765
Posted By vckicks
Calculate the slope between two points.
Forum: C# Sep 23rd, 2008
Replies: 0
Code Snippet: Distance Formula
Views: 1,613
Posted By vckicks
Calculate the distance between two points.
Forum: C# Sep 17th, 2008
Replies: 2
Views: 1,539
Posted By vckicks
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.
Forum: C# Sep 13th, 2008
Replies: 4
Views: 1,866
Posted By vckicks
So I took of any Signing, and then I got excited because there was something checked in Security about ClickOnce or something. But neither helped.

Conclusion: It's unsolvable.

I created a new...
Forum: C# Sep 12th, 2008
Replies: 4
Views: 1,866
Posted By vckicks
I thought about what you said and I'm fairly certain that it was the ClickOnce deployment that seemed to cause the problem. Seems like curiousity killed the cat on this one.

I turned off the...
Forum: C# Sep 9th, 2008
Replies: 4
Views: 1,866
Posted By 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...
Forum: C# Sep 1st, 2008
Replies: 3
Views: 1,845
Posted By vckicks
Anyone with the same problem, the recursive scanning (http://vckicks.110mb.com/scan_files.html) article shows how to do it exactly.
Forum: C# Sep 1st, 2008
Replies: 2
Views: 3,121
Posted By vckicks
Be careful with instances of classes. You might be passing variables to the wrong instance.
Forum: C# Aug 25th, 2008
Replies: 4
Views: 4,004
Posted By vckicks
A cleaner way to do it is with API calls, there is an example in this page on how to Capture the Screen (http://vckicks.110mb.com/csharp-programming.php).
Forum: C# Aug 25th, 2008
Replies: 3
Views: 2,421
Posted By vckicks
A simple way to check if the current C# program is the only instance of itself running.
Showing results 1 to 40 of 58

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC