Answer Questions
eeevans Getting Connection String?
I found the code (at the bottom) as a way to fish the connection string out of the config file. However, despite using System.Configuration; I cannot find these references--e.g. ConnectionStringSettings -- in System.Configuration. I find only System.Configuration. ClientSettingsSection System.Configuration. ConfigurationException System.Configuration. ConfigurationSettings System.Configuration. ConfigXmlDocument W ...Show All
jp01uk Unable to cast COM object of type
Hello, I tried to a function wrapper for my website which calls ExecuteQuery(...). I got this error when I tried to display the output from the internet browser: Unable to cast COM object of type 'Microsoft.Windows.DesktopSearch.Query.SearchDesktopClass' to interface type 'Microsoft.Windows.DesktopSearch.Query.ISearchDesktop'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A227843C-1D92-48 ...Show All
Mr. Rare how to make form invisible on startup?
I have an application that minimises to system tray and runs on windows startup. I would like the application to start with the main form invisible when loaded. Everything I've tried so far has failed. Any ideas I tried setting this.Visible = false but that does not seem to work. It still shows. I think after the form load event is done show() is called, which overrides the visibility setting (or something lik ...Show All
Steve in Alaska how to use cursor in c#
hello i would like information for how using "cursor "and there methods What do u mean with Cursor .. plz give me an explanation and where do u use it ( the language or developer tool) I am assuming you mean the System.Windows.Forms.Cursor class http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformscursorclasstopic.asp That should tell you everything you need to kn ...Show All
Matjaž My question is so basic I'm ashamed to ask it! LOL..
OK.. I'll do it anyway.. I have no shame here... First.. I am not a professional programmer.. Just a old man trying to keep his brain alive.. I code things I never use just to THINK.. I think it helps the brain.. Besides I enjoy it! I have ALOT of C# books.. To many in fact.. Just a old man and I get all mixed up. Either I can not read or the information I need is not in them (or understand what I'm being told!). I can do most anything I ...Show All
Carl Daniel using code written in C
Hello. I need to use a code written in C (not C++) in my C# application. Is it readily usable in .NET What do I need to do You can also just create a standard DLL from the C code, and export functions as if they were to be called from other C/C++ programs. Then in your C# program you can use P/Invoke to call the C functions from your C# code. See for example: http://msdn.microsoft.com/msdnmag/issues/03/07/NET ...Show All
Bojan Bizarre optimisation issue
Hi all, I have a very strange C# issue with a task that should be very simple. The context: I have an ArrayList of 'person' objects, each with user-specific information, which I want to use to replace node elements in an XHTML template. I am going to the person object and calling a method GetTemplateFindReplace, which defines the XML nodes to replace and the values to replace them with, in Dictionary<string,string> format. public Dict ...Show All
majid12345 Help! Access generic list data in App_code class from code behind
C# newbie has a simple C# question here: suppose I have a list in PhotoManager.cs class under /App_Code. In photos.aspx.cs I want to call one item from the list data such as string skname, what should I do I know if you use dataset you will have something like this: dsCategory.Tables(0).Rows(0).Item("skname") but I don't know how to do it with List. I googled for a while still no luck. BTW, the GetCategory method returns single row ...Show All
error maker CLSID
Hi, I've read up about CLSID and I think it's just GUID, right So, can I just use Guid.newGuid in C# to get a new CLSID or Use the Tools menu->Create Guid to get my CLSID All these names are very confusing IID, CLSID, Guid.. They're all the same right Also, I'm working on a project on Extending Active Directiry property pages snap-in which requires a CLSID(GUID) in the beginging of the code so I have to get a CLSID (gUID) before the cod ...Show All
capttrekker source code for .NET classes
Is it possible to obtain the source code for built in classes in .NET More specifically, I would like to see the source code for the PictureBox class, preferably written in C#. Is it possible to get this piece of source code Yes, here are some articles about it and links: Shared Source Common Language Infrastructure 2.0 Release Microsoft Shared Source Initiative Encourages Academic Innovation Microsof ...Show All
Ronak Desai how to change color in a text cut
i'm drawing a string in a progress bar control and when the string gets outside of the progress bar, if the backcolor is white and the font is white , we can't see it, so i need a way to be able to show the remaining chars in some inverted colors (backcolor of the progress bar) . i could have cut the string but it doesnt work if the bar cut a char in 2. waiting for an answer, i remember you that in this way, i ...Show All
DuckHyun Kyung What's wrong with my word.application in multithreads?
I wrote an own-defined threadpool and used waitcallback to delegate a function in each thread in pool. But there are some problems with the program: when I run the program, it gave no response and I can see the "winword.exe" process in the task manager, no exception occurred. The problem seemed to be at running this statement: Word.Application msWord = new Word.ApplicationClass(); Although I kne ...Show All
bruceradtke is it possible to make a grid similar to an excel spreadsheet
is it possible to make a grid similar to an excel spreadsheet using visual C# that i can use with a database and program say for payroll purposes,if so suggestions please using visual studio 2005 Yes it is posible, but a lot of developers have allready some this. Take a look at the Grid Control section at The Code Project, here . Thanks for that much appreciated ...Show All
Handerson Thread Synchronization C# --> C++
Hello I have a little native dll written in C++. I call it's functions from C#, but I have some problems that I can't afford. I have no unerstanding in multi-threading at all, so your help will be appreciated. I have a C# class which uses BackgroundWorker. It calls the dll's function to determine some changes and if one found, it must trigger associated event. But the problem is that I call Connect() function from the BackgroundWorker's Do ...Show All
Dean Hiller2 Webbrowser control for setting proxy?
I trying to create my own custom web browser, using the webbrowser control in VS 2005. I trying to deal with setting proxy server, but i just cannot do it. How to set proxy for my custom webbrowser? i try using webproxy and webclient class, but still doesnt work for me. Try not to suggest modifying registry directly, and not to suggest going to internet explorer setting to change proxy. All I wanted to know if whether there is a class, su ...Show All
