Answer Questions
mr pk Protected Override code
I have just started playing with the RC of VS2005, In the current project I need to Override the OnPaint Event of the windows form. When I did this in the Beta 2 system, it produced the override and added an exception to the code. Now when I try it in RC it adds the following "base.OnPaint(e)". Now the question I have is does this need to be in the code block if I am going to be providing the override code Do I leave it there, and Add my code t ...Show All
tig281075 HtmlDocument and Object Tag
Greetings, i have a question regarding the HtmlDocument class. Im building a small app that integrates the WebBrowser. At runtime i want to add applets to the source code. Although i can add the applets, there is a small problem: This is the code i want to generate in the Browser: < object style ="position:absolute; top: 1px; left: 1px" codetype ="application/java" classid ="..." width ="10" height ="10"> < param name ="code" ...Show All
AdamFinzel C# Class Documentation
I want to create documentation for my classes so other programmers can easily see how to use the methods and what they are for. Does the C# .net platform have an easy way of creating this kind of document Thanks. If you type three slashes ("///") in front of a class or method, Visual Studio will insert a XML style comment for you to fill out. This is the information shown in Intellisense later, and ca ...Show All
csperler C# CommandBarButton question
I'm using a VSTO Outlook 2003 Add-in. CommandBarButtons are displaying correctly in OutLook 2003 except when Word is used as the mail editor, (default installation). When Word is the editor the buttons display as small boxes with magnifying glasses in them. What am I doing wrong Is there a resource that explains the C# "Use" of CommandBarButtonClass Members Below is a snippet of the C# code which I'm having the problem with. ...Show All
kmarshbank Auto Generated Settings Class
Hi there, I was looking for some help/advice regarding the auto generated class that wraps an assemblies settings. We are currently building an application using VS 2005 but are using MSBee to build a 1.1 version assembly. We have hit a problem in that any Web References added through the IDE have cause this Settings class to be generated. As this class is a partial class this cannot be compiled sucessfully under framework 1.1 Is the ...Show All
jotathought Dictionary of events?
Is there a way to create a dictionary of event objects How This is what I have: public delegate void MyDelegate(); This is the type of thing I would like: private Dictionary<Object, event MyDelegate> listeners; Is something like that possible I know I could use a List<MyDelegate> instead of an event but I would rather use the event for obvious reasons. Thanks. No. It holds a list. A delegate is im ...Show All
v2Softwares Project Guidance Please
Hi All, Our company is using C# so I figured I better at least get a grasp of it. I have a VB6 project that has over 17k lines of code in it and I was going to start porting this project over to C#.Net. I have not had formal training on project planning prior to writing any code. I took the philosophy of write what I needed and then document it inside the code. Back in High School (I graduated 1983) we were taught to flow chart our programs prio ...Show All
Solarflashlights Properties Collection
Hi all, I wonder if one of you kind people would be able to point me in the right direction. I have a class with quite a few properties and I thought it would be quite useful to be able to iterate through the classes collections with a foreach loop and return information about each property (such as name, type etc) and its value . However, this is where I come unstuck as I can't find an out-of -box way to do this. I guess I need a collection of ...Show All
NICKY SUWANDI Refresh() how to work?
In these code, i use Refresh(), i guess it should remove old content displayed in this form, but it does not work, why if i want to clear old content, how should I do public void displayLabels() { this.Refresh(); Label lb = new Label(); int number =0; IEnumerator em = this.labellist.GetEnumerator(); while(em.MoveNext()) { lb = ((CageBox)em.Current).CageText; lb.Location = new System.Drawing.Point(80+number*166, 310); lb.Si ...Show All
skayal PInvokeStackImbalance was detected
Hi, I keep getting this error when I try to run my project from the IDE.This does not happen when running the exe. The details specify that the Stack Imbalance was detected in a third party dll which I am using. How can I fix this. Thanks, tribal A call to PInvoke function ThirdPartyDll!Namespace.ClassName.NativeMethods::ImageList_DrawEx' has unbalanced the stack. This is likely because the managed PInvoke signature does not match th ...Show All
marcin.walus Multiple Header Levels on a DataTable?
Is there a way to have multiple levels of Column headers for a datable. For each column, I wish to have a header. However, I wish to also have Column headers which span multiple Columns to give groups of columns a header. EXAMPLE: | Basic Info | Details   ...Show All
vikionline Casting an enumeration that has a defined type..
public enum foo : ushort { foo, bar } ushort test = foo.bar; Cannot convert from 'Test.foo' to 'ushort' Sure, I can make variable of type foo, but I'm encoding the value to a network stream, so I want it as a ushort. The thing is, I specifically told the compiler the enum is of type ushort, so why do I have to typecast it Well, it doesn't sound like you need a lecture on why you shouldn't write code ...Show All
nictan Where can I browse all the namespaces in Visutal studio 2005?
Hi, all here, I am new to C# and I am using visual studio 2005 for C# now, but where can I browse all namespaces in order to call them Also, are the namespaces of C# in both ASP.NET and .NET the same Thanks a lot for any guidance and help for that. With best regards, Click F2 to open the Object-Browser, you will be able to browse the available namespaces for your project. Hope this helps a bit :) A good majority of nam ...Show All
Joe Ingle How to Automatic Shutdown the PC?
Good day! Please help me or give some ideas on how to automatic shotdown the PC. The scenario is i have a shutdown button. if the users click that button it will automaticaly close your applications and shutdown you computer.. thanks. This MSDN page lists the shutdown functions. I couldn't find equivalent .Net framework functions so you have to use unmanaged calls to do what you want. Michael ...Show All
Ren. TreeView Click_Event
I made a treeview with a root directory called "week1" and inside the root there is a child called "day1". How would I add this code to the click event Label newLabel = new Label(); newLabel.Text = "Test"; newLabel.Location = new Point(10, 10); this.Controls.Add(newLabel); Hi, From your description I get the idea that you want the label to appear when the user clicks on the day1 node If that is the case, then you need to use the AfterSe ...Show All
