Hitchhiker's Q&A profile
Windows Forms Smartclient and DB connection weirdness ?
I have a smartclient app on my site that when I run at work works fine. But at home it comes back with NOTHING for all the DB queires. This just happen lately. Other the Windows updates nothing has changed on my home PC. Sense the Work PC still works when running it, I am assuming the exe on the website is fine and working good. What could stop the SQL cmd in the app on my home PC from not returning anything. It does not error out.. Heres a snipet of the Query code; [see below] This is where its going nuts, strAnswer = "True" , In the QUERY area the CMD always comes back as NOTHING. When run at my Home PC. I even tried turning off the Fi ...Show All
Visual Studio Tools for Office InfoPathNamespace screwed...
From the Infopath documentation: ....The InfoPathNamespace attribute (which is implemented by the InfoPathNamespaceAttribute type) is applied to a class to identify the XML DOM selection namespaces used within the class. The namespaces referenced in the InfoPathNamespace are maintained by the InfoPath project system.... However, I managed to get rid of all the information (except the My namespace) And InfoPath doesn't put it back either. Can anyone give me some hints about how to resolve this issue Tnx Rene Rene, From your post, it looks like you are using the Infopath Beta with VSTA. A ...Show All
SQL Server Network access to Sql Server 2005 Express
I have an application written in VB Express and uses SQL Server 2005 Express that runs on my local machine (name JERRY). I published it onto a CD and installed it on another computer (JKNETWORK) on my home network. I've already modified SQL Server Configuration Manager to enable TCP/IP and Shared Memory . I have also added sqlservr.exe to the exceptions in the Microsoft firewall exceptions list. The application opens with a login form that asks for username and password and uses the following connection string: modUserName = txtUserName.Text modPassWord = txtPassWord.Text Dim ConnectionStringMaster As Stri ...Show All
Visual C++ XP style buttons with PSDK
I recently ported an older Win32 PSDK program to VS 2005. How can I get it to use the cool XP style buttons I have my display "Appearance" set to "Windows XP Style". Further, when in the VS2005 Resource Editor, my buttons seem to be XP Style. Yet when I run the program, the same buttons are just as "flat" as they have always been. There is probably a compiler option that I am unaware of. Can someone please point me in the right direction on this Thanks in advance! You need an XP manifest file. In VC++ 2005, take Project Properties - Manifest Tool - Input and Output ...Show All
Visual Studio Team System Build Failed In December CTP
I moved a project from a server with TFS beta3 refresh installed to another with December CTP. When I build it, a referenced file can not be found. structure of my solution is like: Solution |_______Project MapiLib (C++ dll) |_______Project My.Blog (vb.net library) |_______Project CommunityAddin (C# library) MapiLib and My.Blog projects are refered by CommunityAddin. When I build it locally and in a server with beta3 refresh, it is all right. It could not find the MapiLib's output during team build on server with December CTP. ...Show All
Visual Basic reading text from a document and displaying it
I have TextBox1 (to enter what you want to search), TextBox2 (to display the results), and Button1 (when you press it, it does the whole process thing). I was given this to go by: ================================================================== Theres a couple of steps in a possible approach here. One is to be able to read the contents of a file. If your using VB Express / 2005 this is possible using dim sContents as string = My.Computer.Filesystem.ReadAllText("c:\foo.txt") the next is to be able to find a match on your textbox entry you can use the instr meth ...Show All
Visual C++ Visual C++ windows Application Executable file Crash
I have a problem, i created a windows application in visual C++ with which i made an executable file and when i open the executable it crashes. Does anyone know how to solve this problem Lilly Brian Kramer wrote: As Set Project Properties->C/C++->General->Debug Information Format->Program Database for Edit and Continue (/Zi) Just a small correction: Use /Zi as Brian wrote, but the setting is not "Program Database for Edit and Continue". This would be /ZI. Use /Zi (Program Database). This is sufficient for getting the smallest executable with the program database. ...Show All
Visual C# Using C++ Interop in C#...... Help....
Using 2005 Express of C++ and C# I want to use the STL and STD in VC++ in C# by Interop. I develop a uncompleted commercial app in C++ because I want the flexablity of C# on developing custom components, but I want to use the power of C++ to pass variable to and from C++. Does anyone know of an example using C++ as the interop in C# I am new to interop and if I had an example that would speed up the learning curve. Thanks for you help!... C# interoperability allows to call API exported from Dll. It is called PInvoke and works exactly like VB6 API calls. You can read more aboutPInvoke here: http ...Show All
.NET Development Cannot find member name System.Data.SqlClient.SqlError
[reposted from newsgroups] Hello, We've got a WinForm application that uses remoting to connect to our servers. Fairly recently, we've started seeing the above error instead of the SqlException we should be getting. I've found one thread through google that seems to be about this problem, but the post that supposedly solves it is no longer available and the KB article for hotfix 887549 doesn't mention this particular error. The problem appears to be that Windows Server 2003 SP1 installs a newer version of System.data.dll than XP has. XP: 7/15/2004 - 1.1.4322.2032 Server: 3/24/2005 - 1.1.4322.2300 Any suggestions ...Show All
Windows Forms How to syncronize DataBindings?
I have two forms. One is a overview form with a datagrid and the second one a modify form wich a textbox for each column to modify a record. I want to syncronize the to forms, so if you change in the overview form to the 2nd row, then the modify form should show exatly that record. I tried to use Bindingcontext[dataset.table].Position to  ...Show All
Windows Forms DataGridViewComboBoxCell set text
does anyone know... ...how to programmatically select an item in a DataGridViewComboBoxCell, or how to obtain a handle to the hosted editing control A small example would be nice. Thx! ...Show All
Visual Studio Team System Process Templates
The only process template I can access in the Beta 2 is the MSF Agile, am I missing something or is this all that is currenlty available in Beta 2 I was primarly interested in the XP process template, or I guess I can design my own if I need to. Cheers Tim Seaward I've made a first attempt at a XP Methodology Template which can be downloaded from http://workspaces.gotdotnet.com/bsdagile your feedback would be appreciated. Will ...Show All
Visual Studio Team System Can't instrument project targets for ASP.NET performance session?
I create a new ASP.NET performance session and point it at my web application directory (i.e. not using IIS). Now, I can sucessfully get performance data for the web site itself, but I cannot seem to get performance data for any other project assemblies I've configured for instrumentation. At first I noticed that it was instrumenting the project assemblies in their respective project \bin directory as opposed to my web site's \bin directory. Then I tried using target binaries and selected my assemblies directly from the web site's \bin dir, but that didn't help either (and also doesn't seem like the right thing to do). So... any clues ...Show All
Visual Studio Team System TF26000 problem when creating a new global/project group
I got an error message when i query a work items. (TF26000). My TFS is installed in single server and using workgroups. Let me show what i have done in Team explorer. create a global group named "Developer". assign an user "jobria" to that group (The account is local account). then i grant full right to that group in server and project. However, when i login the account "jobria" and query the work items, i show me the error message. But, i find that if i assign the user "jobria" to default project/server group. It's work well. This problem is just happened for creating new group. Can anyone tell me what's the probl ...Show All
SQL Server SQL Mobile Server Tools install on SQL 2000 SP4
I am trying to install SQL Mobile Server Tools (beta 1) on my SQL Server 2000 SP4 server. I have already installed the SP4 Replication Components upgrade and my existing SQL-CE databases replicate ok, however when trying to run the SQL Mobile Server Tools (beta 1) install it fails the System Configuration Check with the following error: "You must first install the Replication Components for SQL Server SP 3a or higher or the SQL Server 2005 Client Connectivity Components" Can anyone assist Stuart Eastland Hi Stuart, I could reproduce your scenario on SQL Server 2000 SP4. Someone will investiga ...Show All
