I'm looking for menu code that will allow the user to drag/drop menu items to move them where they want and allow detection of a right click on a menu item. Any pointers would be appreciated.
mikelb
Posts
-
context menu with drag/drop and right click -
Opening a form inside anotherNo problem, glad it helped. For the border, just set the border style to none and the title and resize-ability will go away. Michael
-
Opening a form inside anotherWhat I did was this, and it works for me: In the constructor code for the form add: this.TopLevel = false; In your main form use this: frmAddNew add = new frmAddNew( ); add.Parent = panelWorkArea; panelWorkArea.Controls.Add( add ); add.Visible = true; Let me know if that works for you.
-
Can .NET work as Visual Studio6.0?Yeah, by unistalling .NET and installing visual studio 6. Seriously though, .net is neither trendy or redundant. Depending on the language you are coming from you'll be amazed at how much more you can accomplish in .net compared to your previous language. Things that used to be difficult or require 3rd party tools are now easy and built-in to the language. .net 2003 comes with an obfuscator(?) or you can get a tool for .net 2002 that will do it for you.
-
Opening a form inside anotherWhat I did one time when I was trying to do the same thing was put a panel control where you want the form to go. The panel control, if I remember correctly, is able to "host" a form so you just create an instance of the form and add it to the panels controls.
-
GDI+ and memory leaksI have some custom drawing code that I'm doing in my application. I made sure to use the using statement or explicity call dispose on all the brushes and pens that I'm using to make sure that I don't have any memory leaks. My problem is that if I start the application and move the mouse around to cause the drawing to occur then I see in the task manager that I slowly eat up more and more memory, 20-60k at a time. If I don't change a single line of code but put in a GC.Collect() at the end of my drawing then I see that no extra memory is consumed. I've left the application running for a while and I don't see the memory being released w/o the GC.Collect(). Am I supposed to just trust that everything is going ok under the covers and that at some point Garbage collection will get it? If I do this and I give someone here my application won't they assume I have a memory leak? Thanks, Michael
-
Launch an .exe from aspx pageit is possible and there are many articles related to this... First article I saw was written in 2001, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet10142001.asp