Answer Questions
Rowland Shepard get type safe method name as string
Is there a way to get the name of a method by refrencing the method itself, I want to do this to maintain type safety so if the method is renamed the app wont compile. I would also rather not do this through reflection unless it's fast and type safe. I need something like string methodName = typeof(SomeClass.SomeMethod).ToString(); Thanks You can do something like this using a delegate: ...Show All
S Tonstad SDK for software license keys?
Hi, We need an SDK (or a method) for adding license keys for our software. We would like to provide trial versions and paid versions of our software. At this time, it does not need to be very advance, but we would like to restrict usage somehow. Can anybody suggest a good SDK (or way) to do this (Does this kind of tool come with Visual Studio or as a plug-in / extention ) Thanks :-) yes..i ...Show All
John Doyle Scrolling Textbox vs 2005
hi ppl. how can i scroll manually a textbox its a multiline with vertical scroll.. i want to can scroll it to the end of the text when ever i want... i didnt found a method or propertie to do that :s... thx mig16 thanks,,, but i really need to scroll it.. im making a chat-- so when any user sends a string... i need to add the line to the textbox,, and the scroll down... so,, any ideas thx mig16 ...Show All
Minh PC connect to SQL Express 2005
Hi, I wold like to know how cani connect to SQL Express 2005 using C# 2003 can anyone place a sample here please.. With Many Thanks... Best Regards, Jassim Rahma I have not tried it myself but I do not see a reason why it should not work. Check out http://www.connectionstrings.com to know the connection string to pass to the SqlConnection/OdbcConnection/OledbConnection you use. thanks alot ...Show All
faith2006 How can I : Dont allow change text in combo box
A selected content in combo box can be edit, be I click search , an error occur.Although the content remain old value after lost focus , but I find the way to prohibit change the content when user select an item in combo box Could you please help me thank you in advance Hi In the ComboBox properties you mast select the DropDownStyle to DropDownList. Hope this helps Thank both of you, thats exactly what I need. Us ...Show All
PaulAh Problem in read a paradox database
Hi, I got a problem to read the graphic and BLOB type in paradox database. The database contains 14 fields (includes 3 BLOB and 1 Graphic field type). When i fetch the database schema from the paradox, i found that the result dataset miss some fields(the 3BLOB and the graphic field). Therefore, i try to use OleDbCommand to select the graphic field only. However, when i run the ExecuteNonQuery command. An exception has ...Show All
paulains Exceptions thrown by Image.Save Method
According to MSDN, Image.Save methid throws two types of exceptions: ArgumentNullException and ExternalException. What about other exceptions which can be raised if file name is incorrect, access denied etc. To be sure, I catch Exception, but this breaks .NET programming rules. Is there any information about Image.Save Looking at the various overloads of Save you can assume that the version that accepts a stri ...Show All
Kunal priyadarshi Getting Names of System Data Sources in Windows
Hi, How can I get the names of the System Data Sources in Windows from my C# code Thank you. Shakeel When you create a database, e.g. in MS Access you can set it as an ODBC data source on the System level. I want to get the names of all databases that have been set as System Data Sources from my C# code. Hope that explains it. :) Shakeel using System.D ...Show All
Rafael Navarro Config file for a windows form app
Hi, I'm working on a windows form application, so far I've only worked on ASP.Net applications. My question is, is there a config file you create similar to the web.config file Cheers Stephen web.config is used with web applications. web.config will by default have several configurations required for the web application. You can have a web.config for each folder under your web application. app.con ...Show All
David_Beardsley_CSG_Pro_Svcs aligning check
Problem: a table with 2 columns: a columns of label and a column of textbox. Now in the second column i'm adding a checkbox. Problem: how to align it to textboxes The check has a little border that you can see when you check it. Isn't possible to enable it Thx the alignment of square...i have no text... the square has a border, margin or something else pls give me an example of code...i can't find it... i hav ...Show All
vatsal shah What is this message telling me?
I keep getting this error message and haven't been able to locate a solution: An unhandled exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll Additional information: Could not find a part of the path "J:\DOH SSN MATCH\Unwise\tempFile.txt". The error pops up on the StreamWriter in following code: private void CheckForCrlf () { string chekText = "" ; ...Show All
SlothBear VB.NET web service from C#
Hi, I have a problem referencing a web service written in VB.NET from a C# application. The issue arrises because the VB component exposes a property with the same name as the defining type. This is legal in VB, but not in C#, so when the proxy stubs are created for the reference, they will not compile and I get the error: "member names cannot be the same as their enclosing type" Is there any know work round for th ...Show All
Vincent Reynolds please help understand this:
public static List<string> GetImagesFromGoogle(string search) { string googleUrl = "http://images.google.com/images q=" + search; List<string> urlList = new List<string>(); string html = GetHtml(googleUrl); string regExPattern = @"< \s* img [^\>]* src \s* = \s* [\""\'] ( [^\""\'\s>]* )"; Regex r = new Regex(regExPattern, RegexOptions.IgnoreCase | Regex ...Show All
daxu1 Calendar
I want to develop a calendar of the current month. So which class can i use to create this. Now there are two senero, one is that if the user did not supply the month and year as argument, then our program print the current month calendar of the current year, however if the user supplies the month and year, then we have to print out the user specified month calendar of the given year. How i can do this, explain the steps that i have to do in ord ...Show All
David Yue WDS3 and Outlook2007 Beta2 German Problem
Hello I installed Office2007 Beta2 German on a German WinXP Pro system. We work in a domain and ExchangeServer. The Quicksearch and the advanced search in Outloom doesn’t find anything with WDS3. When i remove WDS3 and install the actally WDS the search function works fine, but i get a message in Outlook to update the WDS to WDS3 Beta. Reinstall of Office2007 or WDS doesnt help anything. Anyone a Idea regards ...Show All
