Forum: C# 12 Days Ago |
| Replies: 7 Views: 281 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# 12 Days Ago |
| Replies: 7 Views: 281 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# 13 Days Ago |
| Replies: 7 Views: 281 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# 14 Days Ago |
| Replies: 2 Views: 214 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# 24 Days Ago |
| Replies: 3 Views: 441 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# 32 Days Ago |
| Replies: 8 Views: 748 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 2nd, 2009 |
| Replies: 10 Views: 390 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: 390 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: 748 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: 748 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: 390 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: 463 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: 463 ...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: 463 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: 463 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: 724 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: 724 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: 724 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: 716 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: 594 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: 594 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: 716 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: 594 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: 716 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: 716 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: 603 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: 603 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 3rd, 2009 |
| Replies: 4 Views: 610 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: 610 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... |
Forum: C# Sep 29th, 2009 |
| Replies: 6 Views: 441 yeah. its a much simpler solution. |
Forum: C# Sep 29th, 2009 |
| Replies: 6 Views: 441 very simple solution, just use GDI+ to draw a new arrow :)
at the end just throw in
//e.Graphics.FillPolygon(Brushes.Black, new Point[]{new Point(x, y), new Point(x, y), new Point(x,y)});
... |
Forum: C# Sep 24th, 2009 |
| Replies: 21 Views: 1,539 setting any variables as public is considered no longer acceptable in 3.5. because in theory the variable could be attempted to be read from or written to at the same time crashing the app, now you... |
Forum: C# Sep 24th, 2009 |
| Replies: 21 Views: 1,539 Sorry, I don't have much time to reply right now. but the reason that the "this" is throwing an error is because using "this" in the context I provided needs to be within a function and not directly... |
Forum: C# Sep 23rd, 2009 |
| Replies: 21 Views: 1,539 Apparently up on terms of properties, constructors, and passing references...
you almost got it. the first code chuck i presented was an example of how to set a private control accesible by a... |
Forum: C# Sep 23rd, 2009 |
| Replies: 21 Views: 1,539 ok, first thing you need to do is set all the controls you need access to from the outside as properties.
example
public Panel thepanel
{
get
{
return mypanel; |
Forum: C# Sep 22nd, 2009 |
| Replies: 3 Views: 195 Sorry papanyquiL, apparently I should reload my tabs more often, I had this tab open an hour before I got around to answering, lol, I guess I am over multitasking...
Below is the almost identical... |
Forum: C# Sep 21st, 2009 |
| Replies: 2 Views: 369 Ok, the simple solution is to have your program save the embedded resource swf movie to disk if it doesn't' already exist. then pass the path to your load movie function.
more importantly, instead... |
Forum: C# Sep 19th, 2009 |
| Replies: 1 Views: 365 the image returned will be the same size as the rectangle it was cropped from, not the original image, as for any other problem. you might want to look at how the cropping rectangle is created.
... |
Forum: C# Sep 16th, 2009 |
| Replies: 6 Views: 426 Glad i could help, and as for the padding, just place the control the distance from the anchored sides that you want it to stay, and then the anchor property handles it for you , it will stay the... |
Forum: C# Sep 16th, 2009 |
| Replies: 6 Views: 426 ok lets jump off this dock.
the X and Y properties of a location type cannot be set directly. so no you can't set them that way.
the "anchor" property should do what you want, but only if the... |