Software Development Network Logo
  • Visual Studio
  • Microsoft ISV
  • Visual C++
  • Smart Devicet
  • SharePoint Products
  • IE Development
  • Visual C#
  • .NET Development
  • Visual FoxPro
  • VS Team System
  • Visual Basic
  • SQL Server
  • Game Technologies
  • Windows Forms
  • Windows Vista

Software Development Network >> Visual C#

Visual C#

New Question

Method(new Object), when is the object released/disposed?
How to check if letter exists in string?
I have a really newbie question on scope
Accessing controls on other open forms
How do I transfer data to an Excel file
Before we proceed I really need some protection!
CheckListBox select single item...
can i write to: global::Proj.Properties.Settings.Default.ConnString
synchronization???????????????????
Timer ticker is called after timer is disposed

Top Answerers

laboremus
csLearner
J8ck
lm089
Brad Smith
portect
ReneeC
The Other Bill
Dave Le
leo1
sitemap
Only Title

Answer Questions

  • Puzzl3b0x How to always force rebuild C# project?

    Hey I have this C# project (.csproj extension).  I want to have it always rebuild every time, regardless.  How do I do that   Is there a flag or something I can manually throw into the project file (xml tag) I can't touch the build scripts, all I can do is edit the .csproj file.  Again all I'm looking for is some xml to throw in the .csproj file that will guarantee a rebuild every time the project is built. Now I figure I can add a pre-build event that just calls 'devenv project.csproj /clean' on the project.  So I guess thanks to Gabriel Lozano-Moran for the great idea. So the answer turned out to be quite obvious.  I'm not taking the best route but it will be f ...Show All

  • SDH2007 why is this error?

    When i try to compile this line ActiveDs.IADsSecurityDescriptor sd =(ActiveDs.IADsSecurityDescriptor)usr.Properties[ "ntSecurityDescriptor" ].Value; I am getting the following error Error 3 The type or namespace name 'ActiveDs' could not be found (are you missing a using directive or an assembly reference ) C:\AuthAD\Default.aspx.cs 240 13 C:\AuthAD\ Error 4 The type or namespace name 'ActiveDs' could not be found (are you missing a using directive or an assembly reference ) C:\AuthAD\Default.aspx.cs 240 50 C:\AuthAD\ does anybody knows how to fix it...thanks thaya A little googling reveals that ActiveDs is a type library. You need to add a reference to it in your project. In your project, right-click ...Show All

  • cmwith StrongNameIdentityPermission

    I tried to protect my entire assembly by using StrongNameIdentityPermission at the assembly level using Request Minimum with the following code [assembly: StrongNameIdentityPermissionAttribute(SecurityAction.RequestMinimum,PublicKey = "002400....")] But this did not work even when both the assemblies had different strong names.Can anyone tell me where i have gone wrong.Thanks In what way did it not work Are you using v1.x or v2.0 of the framework Where are the assemblies deployed Yes am using v2.0 framework.Actually i am on the process of protecting my dll at the assembly level ,I was able to protect in the class level by using demand or link demand method ,But anyway am trying to protect in the ass ...Show All

  • S S Tanwar Tekrar

    I don't want to use form while drawing screen. You might receive more assistance if you could be more specific as to what you want. Rhubarb ...Show All

  • spinnaker15136 Open a MSAccess Report that uses a parameterized query using C#...

    Let's say I have a table in MSAccess called Person: Person { PersonID AutoNumber, FirstName Text, LastName Text, Age Number(Long Int) } Create a new query with parameters called PersonQuery: Select FirstName, LastName, Age From Person Where Age >= [@beginAge] and Age <= [@endAge] Create a simple Report called PersonReport using PersonQuery as it's RecordSource. Here is the C# code I'm trying to use to open the report, but I always get prompted for the Parameters from access. Access.Application accessApp = new Access.Application(); accessApp.OpenCurrentDatabase("Database.mdb",faslse,null); accessApp.CurrentDb().QueryDefs["PersonQuery"].Parameters["@beginAge"].Value = 21 accessA ...Show All

  • savio31 .NET Conversion issue..

    Good afternoon, I'm in the process of converting VS2003 and .NET 1.1 code into VS2005 .NET 2.0 code. After the code is in Team Foundation I attempt to open a .sln, the 'Conversion Wizard' runs and says it completed without issue, when I attempt to open the 'new' .sln I receive the following error; "The application for project 'C:\...\...\....csproj' is not installed. Make sure the application for the project type (.csproj) is installed" If I'm in the wrong forum I apologize, has anyone encountered and conquered a similar issue Thanks for your help. Is it posible that on your machine you have installed VS 2005 without C#. ...Show All

  • Anpiro System.Threading.Threadstart question...

    Im not sure that this is the correct forum for this but it was the closest that I could find for this particular question. I apologize in advance if this is a newbie question. Im still getting my feet wet in the .Net environment. I wrote a windows service today ( a particularly easy task now with VS 2005 ) and I used a thread to do the work in the service. things work fine when the method that I use in the ThreadStart creation doesnt take any paramaters, but I couldnt figure a way to use a method that takes a paramater. I tried aThread = new Thread ( new ThreadStart (<class> .method(arg))); aThread = new Thread ( new ThreadStart (<class> .method)); But both of those lines would give me compiler errors. I c ...Show All

  • Javfarary Objects and implement IDisposable being used in static classes

    Hi I have an object which implements IDisposable. As a result of this, anywhere it's used I'm disposing of it. However, in a few instances it is declared as a member variable in a static class. Since static classes cannot implement interfaces I can't implement IDisposable on the static class and dispose of the object there. Also, static classes can't have finalizers so I can't dispose of the object in there. Is there a way to do safely dispose of the object in the static class Or, do I even need to worry about it since the static class will live for the lifetime of the AppDomain and disposable object will be destroyed when the static class is reclaimed anyway Thanks! Jeremy Hi Jeremy This is really a tough thing to ...Show All

  • ChuckD1969 reading from a website

    what type of stream would i go about using to read the source from a website such as weather.com so i can get temp and stuff http://www.weather.com/weather/local/77345 well you can use the StreamReader and the HttpWebRequest/WebResponse classes: http://msdn2.microsoft.com/en-us/library/system.net.httpwebresponse.aspx http://msdn2.microsoft.com/en-us/library/system.net.webresponse.aspx Be sure to import the System.Net and System.IO namespaces:   example:   WebRequest theRequest = WebRequest.Create(" websiteurl "); WebResponse theResponse = (HttpWebResponse)theRequest.GetResponse();   StreamReader theReader = new StreamReader(theResponse.GetResponseStre ...Show All

  • datahook Using the IS operator in a FOREACH loop

    I am either not understanding how the IS operator works or how the FOREACH loop works. I found some C# code that creates 1 object of 4 different derived classes (see code below). Those 4 objects are assigned to variables of an array of the "base class" type. A FOREACH is used to iterate the array. The FOREACH variable is the "base class" type also. In the FOREACH loop, the IS operator is used to find the object that is specifically one of the four derived types. Here is my question... Since the FOREACH variable is a "base class" type how can the IS ever evaluate to true since the type it is being compared to is a "derived class" type What am I missing Given: Class Employee - An abstract ...Show All

  • SgtDuty For Loop

    In the following snippet, I got nothing in "path": for ( int j=arrcolid.Count-1;j==0;j-- )    {     path += arrcolid[j];    }   But in the following snippet, path is "DogCatFox", Why for ( int j=0;j<arrcolid.Count;j++ )   {       path+=arrcolid[j];   } TO clarify all this: The second element of a for() loop is the condition which CONTINUES the loop. (ie, it's the WHILE condition, not the UNTIL condition) James, thks a million! Hi Refer http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=547057&SiteID=1&mode=1 First I thank you for your advice. But I don't agree with you. Index of Ar ...Show All

  • Kripz Database INSERT Statement

    Ok. I am highly familiar with databases and the INSERT statement. My only problem is, when I insert new data, and close the program, it did not save the data into the database. Can someone please tell me what the problem is It can also be that you are copying the database to the output directory every time you compile it. Check the properties of the database file and the value of "Copy to output directory". You might want to set it to only if newer. Are you using transactions If so make sure you are committing them. ...Show All

  • VBTeacher Enumerator on a linked list

    Hello everyone! I'm trying to get an Enumerator to work on a linked list but I'm not sure how to do it. MSDN documentation says that at first the enumerator should be positioned before the first element/node in the collection. Any tips on how to do that in a linked list I thought about setting it to null but then when the MoveNext() method is called I can't do current = current.Next since current is set to null. Should I save the firstNode, then in the MoveNext check if current is null and then do current = firstNode. Seems a little bit messy. Any tips Thanks in advance! -Marlun The notion of being 'before the first' or 'after the last' is just part of the definition of the IEnumerator and IEnumerator& ...Show All

  • donno20 displaying form as image

    Hello everybody i want to display a form as thumbnail in the listview for that i am using DrawToBitmap() but it is not working for richtextbox and any com components if i use CopyFromScreen() it is also capturing any contextmenus and filedialogs please help me regards Ramana kumar hello bhanu no it is not solved. i am managing this with copyfromscreen but it is having problems like displaying dialogs and contextmenus plese help me. regards, Ramana kumar. hello  Sven De Bont thank you very much for your response, it is also working similar to CopyFromScreen() method it is capturing any contextmenus and folder ...Show All

  • The Samster with keyword

    Hello, In VB 6 this keyword means inserting an object to the context. fields and properties of the object can be accessed directly, without a variable name (like when writing code inside a class and all the properties of "this" are accessible). In VB the dot "." operator is used, in other languages like delphi - you can just write the property \ method name. Is there a "with" keyword or something similiar in c# Thanks. Simp,y No :) Best Regards, Rizwan aka RizwanSharp Afaik there is no "With" construct for C#... There is no with in C#, see this link for more details from the C# language designer http://www.gotdotnet.com/team/csharp/learn/columns/ask.aspx#with ...Show All

93949596979899012345678910

©2008 Software Development Network

powered by phorum