Hans Verkoijen's Q&A profile
Visual Studio 2008 (Pre-release) System.ServiceModel not listed in Visual Studio Add Reference
I've noticed on several systems that after upgrading to the WinFX Feb CTP, System.ServiceModel.dll no longer appears in Visual Studio's Add References dialog (.NET tab). A gacutil /l shows that System.ServiceModel.dll is indeed in the GAC, but for some reason VS doesn't want to list it for Add References. The same thing seems to have happened to other WCF assemblies such as System.Runtime.Serialization. Does anyone know why this behavior occurs, and what can be done about it Running a reapir on the WinFX install hasn't helped, and this same symptom has been observed on multiple machines. David I saw couple of questions o ...Show All
SQL Server system.Data.SqlServer for CRL integration ??
After installing Visual Studio beta2 with SQL express, I try to use common Language Runtime to create Stored proc. But in the example I follow I got to do this But in my setup I cant add system.data.sqlServer. This namespace is not valid and return an cannot be found error. Do you think I got to install SQL server full version to use CLR Here is my code: Imports System.Data Imports System.Data.Sql Imports system.Data.SqlServer Public Class SqlData Public Shared Sub GetSources( ByVal Usager As String ) Dim sp As SqlPipe = SqlContext.GetPipe() ...Show All
Software Development for Windows Vista Printer Pipeline Filter Sample
Where is the sample source "Printer Pipeline Filter Sample - Nup, Booklet, Watermark" of WDK5270 installed I was not able to find it. Nitin, My apologies for the delay in our response. The full XPSDrv filter samples (showing NUP, Booklet, Watermark etc) are included in the Windows Vista Beta 2 WDK. The sample also inlcudes an inf that illustrates how to associate the filter dll(s). There will be some changes to the sample for the RC1 release, but you should have everything you need to get started using the Beta 2 sample. Thanks. -Daniel (Microsoft) ...Show All
Visual Basic Newby: Need help converting VBA script to VB 2005
Hello, I am new to programming. The following script needs to be converted from VBA to Visual Basic 2005. Dim fileName1 = InputBox("Enter filename for filtering") fileName2 = InputBox("Enter filename for output") Open fileName1 For Input As #1 Open fileName2 For Output As #2 Do Input #1, Data1 ' Gets number Input #1, Data2 ' Gets name Input #1, Data3 ' Gets model Input #1, Data4 ' Gets description Input #1, Data5 ' Gets interval If Data5 = "0" Then Data6 = "a" If Data5 = "1" Then Data6 = "b" If Data5 = "2" Then Data6 = "c" If Data5 = "3" Then Data6 = "d" If Data5 = "4" Then Data6 = "e" If Data5 = "5" Then Da ...Show All
SQL Server export to excel: i get blank with the report name?
when i do export to pdf works fine but when i do export to excel then i dont get any data in the excel sheet... i get blank with the report name any idea thanks ...Show All
Smart Device Development 0xC0000005 Access Violation
Hi, i'm developing an application on embedded Visual C++ 4 sp4 under windows CE.NET, and everithing works fine, but after a while the program crashes in the next line dataBloqueptr->data = new unsigned __int8 [total]; telling me that an 0xC0000005 Access Violation has happenned, the strange thing is that by the time the program crashes the line and the function that contains it have been executed a lot of times without problem. So please, can you tell me how to debug this problem, and what does it means the error, i think there's a problem with memory allocation, but i have checked over and over and i'm pretty sure that i'm not ...Show All
.NET Development Why is Thread.Name a write-once property?
In my application, I have run into an InvalidOperationException when I did try to re-assign the Thread.Name property. Looking at the doc, it says that this property is write-once. Can someone tell me why For me this constraint is just annoying (the workaround is easy but painfull). Thanks in advance, Joannes Actually, there is no constraint (at least no constraint specified in the doc) about the time when the Thread.Name can be set. Therefore the Thread.Name can be set at any time (at the middle of its execution) and confuse whatever debugging tools that rely on it. Is there something that I have missed in ...Show All
SQL Server accumulating the result of a snapshot replication filtered by date
hi all, Im running a snapshot replication on table. first, i gonna copy the entire table with a regional filter other than date second i'm going to replicate a days worth of data by using both the regional filter and date filter (getdate) to capture a days wordth of data. the publication are working fine. my question is how am i going to accumulated the result of the filtered snaphot replication in a single table in my db. many thanks, joey Hi Joey, You can configure your article to use 'delete' as the pre-creation command which corresponds to the 'Action if name is in use - Delete data. If article ha ...Show All
Visual Studio Express Editions Install C# Express Edition?
"An instance of setup is already running. Only one instance of setup can run at a time." What is this error message mean I have VS 2003 install on my local computer. Also, .NET framework 1.1. Is it anything to do with the VS 2003 Also, I never install any version of VS 2005 or Express edition. PLease Help... Thanks, Ron. Have you tried using the uninstallation tool referenced in the following link http://msdn.microsoft.com/vstudio/express/support/uninstall/ The preview version(s) of VS2005 maight not have been completely uninstalled. Thanks, Scott Currie DDCPX Program Manager Microsof ...Show All
Smart Device Development Multiple form vb.net project
I know there is some documents out there that i read says to use less screens because of the memory usage and stuff. And chaching stuff. My question is i do have multiple screens and when i have at least more then 2 forms open in the task manager it will show multiple forms for the program is it possible to change this thanks. See the respones to this thread for some ideas. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=135609&SiteID=1 If you don't want your form to show up in the list of runing applications, try setting it's Text property to string.Empty. ...Show All
Visual Studio Express Editions Extract Icon
I would like to extract an Icon from a file to display it in a picturebox; is there simple code to do this I've tried searching VB, but I can't make the examples work! Thanks 'Loads Icon from any file. 'vPath can contain an index number. It must be separated by a comma Private Function GetIcon(ByVal vPath As String) As Icon Dim strfile As String Dim intIndex, intIcon, intIcon2 As Integer 'Split path in index and path   ...Show All
SQL Server SQL Server Express Security?
We are releasing an application built on SQL Server Express in the next few months. Our clients are mostly small companies with little technical knowledge, and they will be using our application on desktop computers where everyone likely logs in as the same user. As such, my thinking is that we setup SQL Server Express as in SQL Server Authentication mode. This way they could select an Administrator password upon first installation, and manage user names and passwords from within the application itself. Any thoughts Also, how would we install this scenario We haven't been able to figure out how to custo ...Show All
Windows Forms How can I change the skin color of my forms and controls w/o thrid party tools?
I know there are third party tools to change the windows forms & controls skin colors. How can I do similar to my forms and controls using visual studio (c++ or c# or vb) I am unable to change the color of menu, toolbar etc. Thanks, The menubar you can change with Interop: http://www.dotnetrix.co.uk/menus.html The toolbar takes on the backcolor of its parent so long as it's Flatstyle is set to Flat. If you don't want the toolbar to have the same backcolor as the form then simply put it in a docked panel. Some other controls may require owner drawing to change appearance. ...Show All
Visual Basic Full Text Search in Visual Basic
I am trying to create a simple full-text search application in Visual Basic (2005 Professional trial version). I have been successful in doing full-text searches within SQL Server Management Studio using SQL queries, so the database has a working catalog, index, etc. Here is a sample SQL query statement that I have used in SQL Server Management Studio: SELECT SectionText FROM Full_Documents WHERE CONTAINS (SectionText, ' "radio" '); This query returned all the rows containing the word “radio” within the SectionText column of the Full_Documents table. I have placed a textbox (SearchT ...Show All
Visual Studio Express Editions alternative to VbCrLf
Hello!! Is there an alternative to the constant vbCrLf I want to show to the user an msgbox using several rows of information. I found the vbCrLf constant that is defined inside microsoft.visualbasic namespace. Thanks in advanced Jose Eloy Mexico hi, i use this messagebox.show("some text here" & vbnewline & " the newline text here" & vbnewline & " the third line here") ...Show All
