Forum: C# 9 Hours Ago |
| Replies: 26 Views: 436 you could in theory take your image and load it in as a byte array, not as an image, sift through the bytes and find the start of the image data, then apply them there, but idk what the results would... |
Forum: C# 9 Hours Ago |
| Replies: 26 Views: 436 your extention was jpg but the image was NOT a jpeg. extensions mean nothing. Listen.
1. If you want to preserve your changes you cannot compress it, because compression codecs change those... |
Forum: C# 1 Day Ago |
| Replies: 26 Views: 436 the idea behind JPEG image compression is that it removes color differences that are not apparent by the human eye. If you really want a full quality picture you might want to always save to bmp or... |
Forum: C# 2 Days Ago |
| Replies: 26 Views: 436 I ment size as in file size not dimensions. sorry.
// We will store the correct image codec in this object
ImageCodecInfo iciJpegCodec = null;
// This will... |
Forum: C# 2 Days Ago |
| Replies: 26 Views: 436 if the image is a different size, its probably the compression level. when you save your bitmap, if you save it as a jpeg file, you can alter its compression methods, changing its filesize, if you... |
Forum: C# 25 Days Ago |
| Replies: 7 Views: 353 I'm not sure what you mean about it requiring that you override some methods. But that's not your problem. You added a reference to the debug dll of the class library, when your class library is in... |
Forum: C# 26 Days Ago |
| Replies: 7 Views: 353 Do your controls inherit from UserControl or Control? if they don't inherit from one of those they can't be added.
Furthermore, Its likely that you custom control doesn't have a public... |
Forum: C# 26 Days Ago |
| Replies: 7 Views: 353 Depending on your settings it might not. Rightclick on the toolbox and select "choose items" browse to your library and select the controls from it you want to see in the toolbox. |
Forum: C# 28 Days Ago |
| Replies: 2 Views: 236 IF you want to affect the first form, why would you create a new instance of it? What you need to do is pass THE instance of the first from to the second form. then act upon that instance, easy.
... |
Forum: C# 34 Days Ago |
| Replies: 6 Views: 381 a separate picture box for each image yes, your bottleneck in performance will be loading the images from disk, Creating a new image using the images is just an extra step that is even slower, a few... |
Forum: C# 34 Days Ago |
| Replies: 6 Views: 381 The way you are doing it isn't bad, you just aren't using the buffer idea correctly, the paint event should just draw the buffer image, nothing else. all the other stuff including the loop should be... |
Forum: C# Nov 13th, 2009 |
| Replies: 3 Views: 514 I don't recommend using wmp.dll, but I do recommend using directshow. Windows is built around directX. included in directX 10 and higher is the directX managed libraries that supply you with video... |
Forum: C# Nov 12th, 2009 |
| Replies: 5 Views: 374 |
Forum: C# Nov 5th, 2009 |
| Replies: 8 Views: 896 on the usercontrol's cs file create an event delegate and event like so
public delegate void onMyEventHandler(object sender, EventArgs e);
public event onMyEventHandler... |
Forum: C# Nov 5th, 2009 |
| Replies: 5 Views: 504 If you need to customize all 3 of the buttons events, the standard practice is to create a your own title bar control such as seen on AIM and Y! instant messengers.
otherwise, DDoubleD has the... |
Forum: C# Nov 2nd, 2009 |
| Replies: 10 Views: 410 the system must have a equivalent or newer version of .net installed. not necessarily the same version.
and yes, as the previous person stated. the UAC in vista forces applications to... |
Forum: C# Nov 2nd, 2009 |
| Replies: 10 Views: 410 I have ran all of my apps on both XP and Vista, and the only issue I have had with 32/64 bit is on one of my apps I imported a few methods from user32.dll. on 64 bit vista 1 of the methods I imported... |
Forum: C# Nov 2nd, 2009 |
| Replies: 8 Views: 896 you create an event handler from a button on the usercontrol in the main form then just do the removing there, Could be a lot of solutions. |
Forum: C# Nov 1st, 2009 |
| Replies: 8 Views: 896 since you always clear the controls on the panel first, seems like it will always be the only control on the panel, so panel2.controls. clear(); should work.
but you could also use... |
Forum: C# Nov 1st, 2009 |
| Replies: 10 Views: 410 If you write an application targeting the .net framework it will work across XP, vista, and windows 7 no problem. the 32/64 bit crossover might give you trouble if you use a lot of windows interlop.... |
Forum: C# Nov 1st, 2009 |
| Replies: 9 Views: 488 Sorry, VPN is a safe way to transmit data, but I don't know much about it. and no you can't forward ports through code, but you don't have to worry about the ISP, just the router that is responsible... |
Forum: C# Oct 31st, 2009 |
| Replies: 9 Views: 488 ...Sockets are basically how the internet works, and how you connect to a computer on a "local" network from the outside world is by configuring the router that controls the flow of information on... |
Forum: C# Oct 30th, 2009 |
| Replies: 9 Views: 488 once connected, the tcpClient object holds a reference to the client connection, so you use that object to send and receive data. you never worry about the IP or routing of the client.
Did your... |
Forum: C# Oct 29th, 2009 |
| Replies: 9 Views: 488 the trick is that you have to set up a forwarded port on the router to the network that will be connected to.
example, if network A has an external IP (the IP that the internet sees) of... |
Forum: C# Oct 23rd, 2009 |
| Replies: 13 Views: 850 here is the thing. you are animating the effect from within the paint event, and that is typically not a good idea.
a better approach would be to create a bool value like idk, Bool red = false;... |
Forum: C# Oct 23rd, 2009 |
| Replies: 13 Views: 850 Of course you shouldn't invalidate the entire form, you would get the object that is being repainted using the sender property and call invalidate on that.
I was sure this was just pseudo code,... |
Forum: C# Oct 23rd, 2009 |
| Replies: 13 Views: 850 that my friend is because you are sleeping the thread before the paint event is finished, this means windows is never told by your program that it wants be be repainted, and since nothing you are... |
Forum: C# Oct 14th, 2009 |
| Replies: 12 Views: 842 I actually never heard of Slashdot.org but I just checked it out, and it looks pretty cool, I look forward to seeing your app.
when it comes to UI stuff with GDI the possibilities are endless, its... |
Forum: C# Oct 13th, 2009 |
| Replies: 8 Views: 685 glad to hear it! might want to mark this thread as solved.
good luck with your application. |
Forum: C# Oct 13th, 2009 |
| Replies: 8 Views: 685 Yes that in menu merge system, its all the rage in forms applications. If you ever used a mac you will notice that all applications you ever open do this, and the file menu is always visible on the... |
Forum: C# Oct 13th, 2009 |
| Replies: 12 Views: 842 I'm glad I could be of help, I spend most of my time in C# trying to make things look the way I want them, so I can help with a lot of drawing related issues.
Best of luck with your app, I would... |
Forum: C# Oct 12th, 2009 |
| Replies: 8 Views: 685 sounds like your child forms don't have the MdiParent property set to the instance of the mdi form.
when you create your child forms you should set the MdiParent property on the form, and be sure... |
Forum: C# Oct 12th, 2009 |
| Replies: 12 Views: 842 suspend and resume layout just stop the form from updating while making a lot of changes. since you are only making one change, it won't help you in your case.
you would use this.Refresh();... |
Forum: C# Oct 12th, 2009 |
| Replies: 12 Views: 842 you are asking your application to do a lot of changing, but you aren't telling i that it needs to repaint. after you change the opacity you should call either this.Invalidate(true); which will cause... |
Forum: C# Oct 6th, 2009 |
| Replies: 10 Views: 640 I think sknake posted a good snippet on a different question here on this forum, when I get a chance I will find it for you. also. it depends what you are searching through. will it be a list of... |
Forum: C# Oct 5th, 2009 |
| Replies: 10 Views: 640 well I can tell you Google didn't write it. they based their entire empire on something they paid for with petty pocket change.
Its a great system, they have evolved the original algorithm a bit.... |
Forum: C# Oct 5th, 2009 |
| Replies: 8 Views: 425 I am still not sure, your screenshot shows widows explorer while editing the name of a folder, if you wish to pass the name of a rightclicked folder to a program you don't need it when editing text.... |
Forum: C# Oct 4th, 2009 |
| Replies: 8 Views: 425 http://blog.voidnish.com/?p=17
have fun! |
Forum: C# Oct 3rd, 2009 |
| Replies: 4 Views: 647 well I am sorry to say, this isn't exactly beginner type programming. Its a goal to work toward, break it into small pieces, get each part of the concepts working, then bring them together.
but I... |
Forum: C# Oct 2nd, 2009 |
| Replies: 4 Views: 647 This is not my area of expertise, but I think I can give you some ideas if anything.
A good start would be developing a client/server type application, the server would run on the computer you... |