Forum: C# Apr 29th, 2009 |
| Replies: 3 Views: 1,690 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 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 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 Views: 1,906 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 Views: 1,906 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 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 .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 Views: 1,717 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 depends what you mean by "the icon". If it's just an image try a PictureBox |
Forum: C# Dec 3rd, 2008 |
| Replies: 1 Views: 1,833 Convert a color to a uint representation and back with simple byte shifting. |
Forum: C# Dec 3rd, 2008 |
| Replies: 2 Views: 1,554 Bucket sort is a very simple, fast sorting algorithm specialized in integers. |
Forum: C# Nov 22nd, 2008 |
| Replies: 5 Views: 1,440 http://richnewman.wordpress.com/hslcolor-class/
perhaps that will get you started |
Forum: C# Nov 22nd, 2008 |
| Replies: 2 Views: 2,673 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 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 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 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 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 Try FillRectangle from Graphics class |
Forum: C# Oct 10th, 2008 |
| Replies: 6 Views: 1,083 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 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 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 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 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 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 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 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 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 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 you might find this page helpful:
http://bytes.com/forum/thread524979.html |
Forum: C# Sep 23rd, 2008 |
| Replies: 12 Views: 2,427 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 Views: 1,765 Calculate the slope between two points. |
Forum: C# Sep 23rd, 2008 |
| Replies: 0 Views: 1,613 Calculate the distance between two points. |
Forum: C# Sep 17th, 2008 |
| Replies: 2 Views: 1,539 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 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 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 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 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 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 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 A simple way to check if the current C# program is the only instance of itself running. |