Answer Questions
Popsodav Using and Calling method name
Hi, Is this possible to call method name dynamically here is some code to explain that. string modulename; string methodname; modulename = "Mod1"; methodname = getMethodName(modulename); myClass myobj = new myClass(); myobj.methodname(); I don't know my method name till I call the method. Method name can have paramters but that I can get from tables. So I need to call method which I can get at run time not compile time. How is it possible Tha ...Show All
longhiphop Complex Windows Forms application performance optimization
I need some ideas for enhancing performance of a HUGE WinForms app that we're writing in C#. The application is a financial reporting application, and as such has a number of screens that display LOTS of data. The best example I can provide is one of our screens that has a tab control on it with four tabs, each of which contains a tab control with three child tabs as well. Each of the main tabs contains a child tab that displays financial "histo ...Show All
Wizard of Ogz .NET Assembly Security
Hi all, just a quick question. Since there is a .NET Reflector written by LR which disassemble an exe/dll file, i can't find anything nor a better solution to get secure. How are we suppose to write a secure .NET app since it can be disassemble Is there a way to do it or perhaps possibility Or what's your recommendation / suggestion Regards, David [.NET NEWBIES] The best way is the cost way ! Buy this tool http://www.preemptive.co ...Show All
Ferenc78 How do we access <satelliteassemblies> config section in code?
v2.0 Web.Config Does anyone know how to read and write programmatically this out, besides resorting to the XML Dom: < configuration > < satelliteassemblies > < assembly name = " App_GlobalResources " > < culture > fr </ culture > < culture > de </ culture > < culture > pt </ culture > </ assembly > </ satelliteassemblies > &l ...Show All
Harald K&#246;stinger How do you convert a Bitmap to an Icon
Can someone tell me how to convert an Bitmap to an Icon The following code does not work. notifyIcon.Icon = (System.Drawing. Icon ) new IconConverter ().ConvertFrom( /*Resources.MainResource.HelpDeskUser*/ new Bitmap (16,16) ); Try this: Bitmap bitmap = new Bitmap(16, 16); notifyIcon.Icon = Icon.FromHandle(bitmap.GetHicon()); Thankyou David, have been looking over and over ...Show All
ulven ProgressBar with FTP is it possible?
hi. I am new to .NET forms and C# application. I am trying to implement a simple UI that privdes button click to download a FTP file. I am using the Webclient class and WebRequestMethods.FTP.DownloadFile method for request's methods. I am read the stream using the streamreader. FTP works fine. Now i want to add progressbar to show progress of the file. is there anyway to do I have looked up few examples of downloadfileasync method combine ...Show All
Drew Mason SQL Server access ASP.Net
I have a connect string to a SQL database: “Data Source=Cats;Initial Catalog=Orders;User ID=sa;Password=sa” It connects to the database correctly. If I change the string to: “Data Source=Cats;Initial Catalog=Orders;User ID=ian;Password=ih” It will not connect. “ian” is a valid SQL login to the Cats server with the same priviledges as the SA account – I can successfully login to SQL Query Analyzer with ian/ih. I tried the same thing on a “loca ...Show All
rn_dba How to select XmlDocument root node with XPath slash "/"?
XPath reference says that "/" returns the root node. However, I can't seem to get it to work. Take the following as an example XML file: < xml version="1.0" encoding="utf-8" > <employees> <employee> <firstname>John</firstname> <lastname>Doe</lastname> </employee> <employee> & ...Show All
Timothy Wilson throwing SoapException returns HTML to client
I'm testing a Web Service written using C# in Visual Studio 2005 and running in IIS 5.1. When it throws a SoapException, HTML gets returned to the client rather than a SOAP message. If the Web Service processing is successful, a SOAP message gets returned. But when I throw a SoapException (and set the actor, message, detail, etc.), HTML is returned. Any ideas how I can get a SOAP message returned when I throw a SoapException Thanks. ...Show All
emari What is the best programing lang.?
VB, C#, C++, or J# c# Hi Stargate, Microsoft claims that the choice of programming language for the .NET Framework is a matter of 'lifestyle'. C# makes the most natural choice for the .NET Framework since the framework itself is written in C#. However, I would say building an application using the .NET Framework would require a thorough knowledge of the classes in the Framework which means that ...Show All
Emmanuel MacAdjeh MENSAH ADO - Access automation question
I'm trying to query an MS Access table via an app which is to run stand-alone nightly. I can access the table created in Access just fine. However, I'm having trouble finding the proper connection string codewords which will allow me to query the linked tables. These tables are linked to a strongly protected SQL database. I can open the access database directly and click on the linked file and input the user/password combination and see th ...Show All
minamur How to get the application main form
Hi All, I am developing a Windows application using C# - VS2005. Is there a way to get a reference to the main application form ( the one that was started by the application.run()) from any user controls, any objects within the Windows application Thanks in advance The cast isn't valid. That's why I said you could at least get a Control reference to be passed to methods that require a Control reference. Casting from a basic ...Show All
dbKemp Instantiating SqlParameterCollection
SqlParameterCollection ' s constructor is private, so it’s obvious that one cannot create it’s instance with using - Dim objSqlParameterCollection as New SqlParameterCollection I get it’s object with SqlCommand’s Parameters( ) method. I’m curious about – how SqlCommand creates object of SqlParameterCollection Without using SqlCommand class, can I instantiate SqlParameterCollection ...Show All
Jason. replace webbrowser contextmenu
greetings, how is this done when i add a contextmenu(strip) to a form that has a webbrowser control and then set the wb contextmenu to it, the wb still uses the default. docs don't mention any thing that this should not work. a search doesn't turn up any additional info. toggling the "iswebbrowsercontextmenu" property works fine. any ideas tia jas Unfortunately the rig ...Show All
gps Network stream problems (PLEASE HELP!)
Is it possible to read a single network (TCP) stream using both blocking and asyncronous reads in the same application All attempts I have made cause the application to hang. Basically I would like to be reading asyncronously for unexpected incoming messages in the background whilst blocking for replies to specific messages sent to the server as a result of the users actions. Please tell me if I haven't worded this very well as I haven't b ...Show All
