f_red's Q&A profile
Windows Forms BindingSource problem when AddNew() get Called and when a control lose the focus
Hi everybody, I somehow developed a generic form, that allows to speed the development of forms, because the form have the insert, update, delete, retrieve, etc, all ready implemented. I inherited the winforms controls to work whit this form, so I can extract the info and create the statements to be executed in the DataBase. I Have a control inherited form the TextBox, I added a new property that works like a keyValue for the text showed in the Text property, it's like I have a Table in the dataBase, and one column in the table, is a key to other table, so, I bring the table to memory, in a DataTable, but I can't show the key to the user, the user must see the text related to the key, so I added the property to my inherited control ...Show All
Software Development for Windows Vista Windows Workflow Foundation
Hi I'm very new to WWF.... I'm trying to create a sample workflow..... Following is the set up I'm using 1. Dotnet Framework 3.0 2. VS 2005 professional 3. VS 2005 extensions for windows workflow foundation Beta 2.2 Now I created a project using Sequential Workflow Template.... now I'm trying to add a While Activity on my workflow.cs designer...problem I'm facing is that I dont have this activity on my tool box.........I tried adding it from choose items but I could not find this activity...even though I can see - System.Workflow.Activities in GAC.... I read that we get thesecontrols after installing WWF.....and I tried installing the Beta 2.2 but I can not see windows workflow foundation in Add Remove programs.....please help. Thanks Manu ...Show All
Windows Forms application not running on computers without vb .net installed
hi there i have this major problem: my app just won't run on another system, if it hasn't vb installed. iut gives me that 'send/don't send error report to microsoft' error. i mention that it uses an external .ocx control, whick appears in the output directory of clickonce. pls help :) ...Show All
Visual Studio Packaging Visual SourceSafe
Has anyone packaged Visual Sourcesafe 2005 I am having hard time creating this package. This software does come with a .msi file but whenever I run the msi, it tells me to run the exe file to install. So I thought I can just create the msi using a snapshot method but it's giving me lot's of errors. Can anyone with experience point me to the right direction with this package I also looked at the admininstall.html file but It doesn't help me much. The file tells me to create .mst but how can I deploy the .mst without creating or having the .msi Thanks in advance. ...Show All
.NET Development C# + Access Database Problem
Here's my issue. I have a program in C# that creates and track help desk PC tickets.It saves and loads data from an Access database that I created. Everything works great, but I have recently decided that I need to add some more things like the ability to input the date that the customer was called on the form as well. So what I am trying to do is create another couple of colums in the already exsiting database using Access, then create textboxes on the form and have them link to the new colums in the database. The best I have got so far is to create a new database, but I don't want to have to retool the entire form all over again if I can help it. So, my question is, simply put, is there any way to update a Access database already in use ...Show All
.NET Development Binary stream '0' does not contain a valid BinaryHeader Exception
Hi, I'm having trouble using the BinaryFormatter class. When I call Deserialize (see below for code sample), I get this exception: System.Runtime.Serialization.SerializationException: Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization. Public Overrides Sub WriteXml( ByVal writer As System.Xml.XmlWriter) writer.WriteStartElement(XmlConstants.NamespaceQualifier, XmlConstants.ObjectElementName, XmlConstants.XmlNamespace) If m_Formatter Is Nothing Then & ...Show All
SQL Server string literal problem
hi! din't work. I need some thing in C# that can execute like this: This works in SQl Query perfectly. xp_cmdshell 'dtexec /f \"D:\\SSISProject\\Integration Services Project1\\ArchiveMainMultiTables.dtsx\"/Set \package.Variables[User::connectst].Properties[Value];\""Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Provider=SQLNCLI.1;Integrated Security=SSPI;"\"' How do we interp ret in c# currently i have some thing like this which is not correct i need to fix this to work in C# string conn = @"""Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Provider=SQLNCLI.1;Integrated Security=SSPI;"""""; path = @"""D:\SSISProject\Int ...Show All
Visual C++ Read access violation when buffer bigger than 2048
Hello, I'm an old mainframe assembler programmer and I'm trying to teach myself C++. I've bungled through writing a program to copy a file (just to get familiar with I/O. The program works fine when variable BuffSiz is 2048 or smaller. If it's bigger, I can't even start debugging. The error is: Unhandled exception at 0x004012af in Compression.exe: 0xC0000005: Access violation reading location 0x00371000. I am using VS2005 on XP SP2 with the latest SDK. This is a Win32 Console App. This is my first program so please ignore (and advise of) the many shortcomings. Also - how do I get the code to post here as it is formatted. Also - I see a couple of light bulbs. They should be replaced with brackets containing the value of "i ...Show All
Software Development for Windows Vista Momento SideShow
The Windows SideShow driver (BETA) for the i-mate Digital Photo Frame (Momento) was launched today. Owners of Momento frames can now receive glance SideShow content over their wireless network from their Windows Vista PC. http://www.momentolive.com Hurrah! Thanks, I had tried the driver from the website, but it is that one which is unrecognised by the hardware installation wizard. Also, Windows Update has never offered a driver. I've written to i-Mate, - I'll let you know what they suggest, I can see a few people in other forums are having a similar issue. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Content Pipeline Interfaces
Hi, we stand in front of a real big problem, becaus we lose really a lot of time waiting for the new content pipeline. Because we develope a commercial project time means money. I can understand if you cant release the content pipeline before the holidays, but we also must continue our development. Is it possible to release a next beta, with full documentation of the Content-Pipeline-Interface, so that we can continue our development I want to know, how i can Load Sound-Files, Models, Textures and all the other stuff with the content pipeline. I have seen, that the complete loader is available. Perhaps you can support us with some example XNB-Files, which we can load. Bummer! I think XNA becomes really goo ...Show All
Visual Studio 2008 (Pre-release) More control over callback DispatchRuntime in Duplex contracts
Hi, I have two services that communicate through the exchange of one-way messages. There's not really a "client" or a "server", because either one of the services can start a conversation with the other one, so I will use "serviceA" and "serviceB" from here on. I used the WCF duplex binding in order for the two services to communicate with each other. I have written a custom ServiceHostBase that does some extra stuff for the project I'm working on and I would like to use the same ServiceHost implementation on both sides (i.e. "serviceA" and "serviceB") because the extra stuff is beneficial to both services. What I would like to do now is start my custom ServiceHost on the "se ...Show All
Visual Studio Super slow installation for VS2005 SP1 beta
Well, it’s not something new, there are people at Microsoft that work hard to make our life easier, like the Microsoft Windows Vista installer for example, an entire OS in 20 min; and there are some less experienced developers (my assumption only) who are given for some reason the task of creating the VS2005 SP1 installer. Whoever wrote that thing, he, she or they, can say whatever they want, but to take 2 hours to get the SP1 beta installed is just damn stupid, here are 2 hours by a million people in the world, a total of 2 million hours lost, thanks to a group of developers at Microsoft, maybe they could have spend 100 more hours to learn math, or to profile the installer, and could have saved the world a million hours ...Show All
SQL Server How to drop database table if it exits in sql mobile version?
Hi, I am using VB.net and Visual Studio 2005 to compile a program for a Pocket PC with MicrosoftR Windows Mobile 2003 Second Edition. I am using sql mobile also. What I want to complete is like one of the following two queries. But when I tried them in the sql mobile, errors happened. So how can I complete the same function in sql Mobile Thanks. USE DBa if exists ( select * from dbo . sysobjects where id = object_id ( N'[dbo].[Table_a]' ) and OBJECTPROPERTY ( id , N'IsUserTable' ) = 1 ) drop Table Table _a or USE DBa IF OBJECT_ID ( 'dbo.Table_a ) IS NOT NULL DROP TABLE dbo . Table_a You should issue a query to check if table exists and if it does issue ...Show All
SQL Server Change date format
HI, I have noticed that SQL SERVER 2005 uses American date format but i want to change it to UK/European time format i.e. dd-mm-yyyy can any on tell me how to do it in sql server settings. And is it possible that I can change it only the during the course of my STORED PROCEDURE. I know it is quite and any one will answer that soon hoping quick reply regards, Anas I haven't used 2005 yet but assuming it has the same 'problem', make sure the language is set to 'british english' instead of 'english' ...Show All
Visual Basic How to install an assembly in GAC
Hi, All dot net experts, The assembly is CrystalDecisions.CrystalReports.Engine version 10.2.3600.0. When I run my OneTouch deployment of my vs2005 win app converted from vs2003, I got this error saying "Unable to install or run the app. The app requires that assembly Crystalxxx be installed in the GAC first." I googled the topic and found this KB article. But it talked about creating a strong name for the dll you created. Does that also apply to third party Dlls Prior to this point, I have been developing and deploying CR reports in vs2003 without running into this kind of hassle. http: / / support. microsoft. com/ default. aspx/ kb/ 315682 Does the prereq staff install in the bootstrapper ...Show All
