
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
‘ Read a property via reflection or return a default value’ Example: MessageBox.Show(GetProperty(Button1, “Text”, “”))Function GetProperty(ByVal obj As Object, ByVal propertyName As String, _ ByVal defaultValue As Object) As Object
‘ Return the value of the public field with the specified name,’ defined inside the obj object’ Note: requires Imports System.Reflection” Example:’ Public TestField As String = “hello”‘ …’ MessageBox.Show(GetField(Me,
‘ Invoke a method via reflection and return its result – return null if method ‘ doesn’t exist or throws’ Note: requires Imports System.Reflection” Example:’ Function GetCompleteName(ByVal firstName As String,’
‘ Check whether an object supports a member with the specified name” Examples:’ Debug.WriteLine(IsMemberSupported(Button1, “BackColor”)) ‘ => True’ Debug.WriteLine(IsMemberSupported(Button1, “Focus”)) ‘ => True’ Debug.WriteLine(IsMemberSupported(Button1, “TextColor”)) ‘ => False’ Debug.WriteLine(IsMemberSupported(Button1, “Print”))
The Evans Wireless Development Survey is a detailed report of extensive, in-depth interviews with almost 500 developers active in wireless application or infrastructure development. It was conducted in March 2003.
n Friday afternoon, DevX, which has operated as an independently-owned media company for nearly four years, agreed to become part of a larger group of online publications. Jupitermedia, the publisher
s I write this, four parts have been published in this series (see the left column). Now is the time to focus on how to access the database. As I
‘ Retrieve the content of an embedded text file’ Note: the file must be included in the project as an embedded resource.’ – after adding the file to the project
‘ Check whether a given regular expression is in valid format’ Examples:’ Debug.WriteLine(IsValidRegularExpression(“^(((d{3}) ‘ ?)|(d{3}-))?d{3}-d{4}$”)) ‘ => True’ Debug.WriteLine(IsValidRegularExpression(“^[|)$”)) ‘ => FalseFunction IsValidRegularExpression(ByVal regex As String) As Boolean Try Dim
‘ Return a validation summary string with all the error messages, if any,’ of the controls inside the specified container,’ associated to an ErrorProvider control’ ‘ Example:’ Dim summary As
‘ Check whether an object is storing a numeric value’ Examples:’ Dim s As String = “hello”‘ Dim d As Double = 2.4′ Dim i As Integer = 5’ Debug.WriteLine(IsNumeric(d))
‘ Return the application’s path.’ Note: it also works with add-ins’s dll, whereas Application.StartupPath ‘ returns’ Visual Studio .NET’s startup path instead’ Example: MessageBox.Show(GetApplicationPath())Function GetApplicationPath() As String Return System.IO.Path.GetDirectoryName _
‘ Returns an array with all the controls in the specified container control and ‘ its child containers’ Example:’ ‘ print the name of all the controls on the form
eb services are all about two things: XML and WSDL. When you build a Web service in a commercial platform such as Microsoft .NET or J2EE, you are building a
he best way to learn how to use the various controls in the .NET Compact Framework (CF) is to actually use them. So starting with this article, I will demonstrate
ozilla is not just a browser. Mozilla provides a framework that allows developers to create cross-platform applications by utilizing its accessible components, including JavaScript, CSS (Cascading Style Sheets), and Mozilla’s
omcat is a Java servlet container and Web server from the Jakarta project of the Apache Software Foundation. A Web server is, of course, the program that dishes out Web
efore Java Data Objects (JDO), database programming was stuck in the ’80s. All programmers had were either highly proprietary programming interfaces or SQL, a powerful but cumbersome declarative database programming
ntil recently, moving data between HTML lists was problematic due to differences in each browser’s DOM; however, as browsers move toward W3C DOM compliance, those differences are disappearing rapidly. In
he integrity and confidentiality of information traveling through the air has always been a concern. Who is really broadcasting the signal you are receiving? Is anyone eavesdropping on the signal?
ertain applications need to share data among different users or among distributed instances of the same application. Using a file to store the shared data isn’t an ideal solution due
his is Part II of an article series that describes how to pass data into and out of SQL Server not as raw data or as DataSets, but as objects
‘ Unregister an Enterprise Service from the COM+ Catalog’ Note: requires a reference to the System.EnterpriseServices.dll assembly’ Note: applicationID is the name of the COM+ application that contains the ‘
‘ Execute an array of sql script files with batch statements,’ by using the same SqlCommand object’ – connString is the connection string for the destination database” Example:’ Dim connString
‘ Get the path of the SQL Server’s OSQL.exe utilityFunction GetOsqlPath() As String Dim regKey As Microsoft.Win32.RegistryKey = _ Microsoft.Win32.Registry.LocalMachine.OpenSubKey( _ “SOFTWAREMicrosoftMicrosoft SQL Server80ToolsClientSetup”) If regKey Is Nothing Then Return
‘ Register an Enterprise Service in the COM+ Catalog’ Note: requires a reference to the System.EnterpriseServices.dll assembly’ This version identify the enterprise service with its path’ Example: RegisterEnterpriseService(“C:TempTestService.dll”)Sub RegisterEnterpriseService(ByVal servicePath
‘ Execute an array of sql script files with batch statements,’ by using the OSQL utility’ – dbName is the name of the destination database’ – isWinAuth, login and pwd
‘ Get the path of the Oracle’s SqlPlus.exe utilityFunction GetSqlPlusPath() As String Dim regKey As Microsoft.Win32.RegistryKey = _ Microsoft.Win32.Registry.LocalMachine.OpenSubKey(“SOFTWAREORACLE”) If regKey Is Nothing Then Return “” End If Dim sqlplusPath
n the software industry, developers of smaller-scale workgroup applications haven’t exactly been tres chic. It’s true that Microsoft has taken very good care of this enormous universe of developers for
he remoting framework in .NET contains a feature set designed to support intra-process communications and application integration functions; however, for many applications the default remoting behaviors may not deliver all











