Ludo from Belgacom's Q&A profile
Visual C# How to validate correct Enum name?
Based upon content in a code table in a database, I want generate an enumeration. However, the code table could contain names that are not valid enum names. Is there a function or a way to "convert" and check these names in order to generate a properer enumeration name. For example, the HumanResources.Department table of the AdventureWorks sample database contains "Engineering" (=ok) and "Tool Design" (=nok). Enum.IsDefined will tell you whether a constant or name is valid for the given enumeration. However as with all Enum methods it uses reflection and will be slow. I pers ...Show All
.NET Development Search a network drive
I need to be able to search our companies shared hard drive through an intranet page. I am not sure if this is possible. Basically I want to create a form and then when that form is submitted. I want it to call up Microsofts built search utility and then display the results. The reason for doing this is to make it easier for people to search company info by going to a form instead of a list of directories. Is this possible, any direction will be appreciated. Regg, can I suggest you direct this issue to the ASP.NET forums: http://forums.asp.net Regards, Kit ...Show All
Windows Forms GetRaiseMethod
I have a button on a form. The click event is handled by a Procedure. Is there any way to get the name of the procedure, using Reflection for instance: Public Sub SaveData() handles btnSave.Click ' some code end Sub. I would like to be able to pass in btnSave as the control, and Click as the Event, and get back SaveData ...Show All
.NET Development Microsoft Adapter SAP SAPProvider
Guys, Microsoft Adapter SAP SAPProvider seems to be the most powerful way to connect to SAP system, it is very easy to query tables and execute BAPIS and RFCs but I cant find an example to execute BAPIS that requires structures as import parameters. Does anybody know how to do it. Here some references 1. Download: Feature Pack for Microsoft SQL Server 2005 - November 2005 http://www.microsoft.com/downloads/details.aspx familyid=D09C1D60-A13C-4479-9B91-9E8B9D835CDC&displaylang=en , accessed in Dec., 2005 2. Configuring Reporting Services to Use Integration Services Package Data http://msdn2.microsoft.com/en-us/library ...Show All
Smart Device Development .net compact framework and HttpRequest Class ???
i want to send data using POST via Pocket PC in vb.net ! how can i do this there is a class WebRequestMethods but is it available in Compact Framework any idea is helpfull ... Use HttpWebRequest class http://www.netomatix.com/HttpPostData.aspx - scroll down to "How will I do it" ...Show All
SQL Server SSEUtil.exe SQL Server Express Utility
All, When I try to start the SQL Server Express Utility (SSEUtil.exe), I get the following crash output message below ... I have checked all of my instances. The all work with windows authentication and sql server authentication. I have used the surface area configration manager to allow 'everything' and rebooted my machine. I have tested each through osql. I have turned my firewall on an off. The problem stilll persists. Could this have something to do with my SQL Services running under the local account Y:\All_DatabaseMSs\SQLServer\SQLServerExpressUtilityJan2006Extracted>SSEUtil.exe -consolewnd -server HOME -user sa ...Show All
Visual Basic Formatting the msgbox
I am creating a simple payroll calculator. It crunches some numbers and spitts out an report-like messagebox. For now I've thrown together msgbox ("Ouput here") but the box that results is small. Is there a way to format the size of the message box Is there a better type of output (ie a report similar to one you'd find in access ) Thanks The more text you put into a messagebox, the bigger it gets. However, if you want to output some sort of report, a messagebox is the wrong tool, you should create a new form to show the report. A datagrid is the best control that's built in for showi ...Show All
Windows Forms Images do not appear on TabControl when using VisualStyles
Hello, I'm having a problem with a TabControl and VisualStyles. My tabcontrol contains images on each tab, which appear at design time, but when I run the application the images are missing and only the text appears on the tabs. Does tabcontrol support images when using VisualStyles My alignment is set to "Top" if that makes a difference. Thanks Simon I seem to have fixed the problem I was having. I am also using VS2005, but with top alignment. What I suggest you do is call Application.EnableVisualStyles() before you run your application, check out the code below: static void Mai ...Show All
.NET Development Dynamic AppDomains
I have an application that uses the FileSystemWatcher to monitor for the "drop" of certain files in a folder. Custom actions are then executed based on the file name, size, etc. This application can listen for an unlimited number of files and therefore, runs an unlimitede number of threads that implement the FileSystemWatcher. However, if a critical error occurs one of these threads, the whole app crashes. Is there a way I can create an AppDomain (therefore, another process) for each file listener I guess I am trying to simulate what IIS6 does when you add an applications to different ApplicationPools so that the crash of one wi ...Show All
Windows Forms Strings Problem?
Hi, VB.NET I have one combobox, one button and Datagrid. The combobox was loaded directly from Customers table. CompanyName. The following code no work, but error no report: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load SqlDataAdapter2.Fill(DataSet12.Customers) End Sub Private Sub button1_Click(ByVal send ...Show All
SQL Server how to do case-sensitive search
say, in my database there're two rows, name age career ------------------------ dave 20 student Dave 20 student if i use select * from db where name='dave' both will come out, how to do a case-sensitive that i got only the 1st row I do think I understood your question, however you can pich the collation you want but be sure to check the Case sensetive checkbox. ...Show All
Visual Studio 2008 (Pre-release) There is event when Server is closed that send to client ?
Hi I write server and client in wcf(indigo self host). Sometimes the server is failed. I want to know how client can to know if server was failed, without accept exception when i call the server. There is event when server is failed that the client can accept. Hi Oren, What do you mean by saying that the server failed Do you mean that the server threw an exception and the client never got it If you do mean that, you should read about FaultContracts. When exception occurs in the service, the channel is cut off and the exception never return ...Show All
Visual Studio Team System Report - developers who are not checking in their code regularly
I would like to create a report showing code that has been checked-out for longer than 2 weeks. I don't see this type of information contained in the BisDWDB, so I would assume I need to access the VSTeamSCC db instead. Is this correct If so, what tables would I need to select Substitute "tf.exe" for "h.exe". When Buck wrote that post we hadn't removed codenames yet (Hatteras -> Team Foundation). ...Show All
Visual Studio Custom Data Visualizers
I have seen the Custom Data Visualizers and I attempted to create one but I found the sample to be extremely lacking (or perhaps I am thinking lightyears ahead of the plans of the VS.NEt team again) A sample of what I wanted to do was I wanted to be able to build into vs.net such that the data visualizer for something like a hashtable. would have an extra row. And when this row was expanded it would display 2 columns. Column 1 would show all of the keys and column 2 would show each object associated with the key. A more advanced sample would allow one to expand the object used as a key or the object used as the value. (I somehow get the fee ...Show All
SQL Server installing SQL
I am trying to install SQL enterprise 2005 edition on an XP machine. Is it true that this will not work The config. manager appears but nothing else. If so, will the express version work Thanks in advance. Robert http://msdn2.microsoft.com/ms143506.aspx ...Show All
