sk3636's Q&A profile
Visual Basic Simple Bound Textbox Can't Retain Empty String
I have some simple bound textboxes on a windows form. My dataset has parent and child tables. Some of the textboxes are bound to the parent data and others to the child data. When any child bound textbox loses focus after I've cleared its text it returns to its original value. For example, if I want to edit a child bound textbox value from being "test" to "" as soon as I leave the field it returns back to "test". I can add or remove part of the text without a problem such as "test1", but once I completely clear it, it returns back to original. I want to be able to clear the textbox so that I can save an empty value if need be. I have found a workaround solution at the following web site, http://w ...Show All
Smart Device Development MySQL connector for the compact framework
Hi! I'm programming with the great visual studio 2005 c#. I have to establish a connection to a mysql database from my pocket-pc. Is there any built-in connector in the .NET Compact-Framework My search through this forum brought as a result only a commercial connector (which is not free): http://crlab.com/mysqlnet/ Which connectors do you use to establish connections to mysql-databases Are there any chances to get a connector for free thanks for your replies, yours ulric. I'm not aware of free MySQL provider for NETCF. You would have to write your own or use existing 3rd party product. ...Show All
SQL Server Custom Authentication in MSRS 2005
Hi, We are building a web application in which users do not have Windows Authentication. We implement a custom authentication and users can be created dynamically. The application also host a few MSRS 2005 reports. We have a login page where the user enters his credentials and browses through the application, once he wants to browse reports, then how do we give him access to the report server Whether we use URL method to invoke the reports or use the Report Viewer Web Control, they might need the client to provide a valid windows id to show the report. Kindly suggest ... Thanks .. Sameer ...Show All
Visual Studio Team System Get Latest Version from Source Control Explorer doesn't retrieve files
After invoking Get Latest Version on a directory from Source Control Explorer you are informed that files has been retrieved. You can see that you have latest version in current workspace. In fact there are no files on hard drive and when you open a solution wiles are retrieved again. You have to run Get Specific Version and force file retrieval. Is it normal behavior Marcin Hello, Were these files removed manually from the hard drive In that case - yes, this is normal behavior. TFS keeps track of files' versions so it won't download files again if it "thinks" that they are already on the disk (you need force flag then). ...Show All
SQL Server How to see all users' subscriptions?
In SSRS 2005 Report Manager, we have a "My Subscriptions" link at the top right of the form. However, system admins need to see the subscriptions of all users. How can they do that I hope SP2 would come with some useful sample reports to grab those data of the ReportServerDB RS has been great so far, but some minor issues really cause pain, e.g. the Select All "bug" in SP1, etc.. ...Show All
Visual Studio Tools for Office Ribbon element(button) key binding.
Hello. I created new Ribbon Tab. With buttons on it. Now i want to bind key combination to it like Ctrl+F12 For example. So when i press this key combination button will get preesed. I would appriciate any help. (Ribbon tab is created using xml file and inserting it inside word document) Thanks. It's not possible to assign KeyBindings to procedures that are not part of a VBA project. Or, to put it another way, you can't assign keyboard shortcuts to code in a DLL, whether it's a COM Add-in or a VSTO document project. What you can do is assign a KeyTip. In Office 12, when the user presses the ALT key, letters appear next to each "button" in the Ribbon. After the users presses that key, all the ...Show All
Windows Forms Updating project without changing DB
Please excuse me if this is a silly question but this is my first project with VB (VS 2005 Express Edition). The application uses SQL Server 2005 Express. Soon, I will be in a position to take a large amount of data from the end user of the project and put it into the database then deploy the application to his machine. This will be a long process as there is some data in spreadsheets and lots of data on the backs of envelopes etc! At this point he will begin to use the application and add/modify data on a regular basis. However, after a few weeks, he will return to me and say "Can you change this part There's a bug in that part etc." How can I then update the application and re-install it on his machine and mai ...Show All
Visual Basic Problem with different versions of outlook
I have implemented an application in VB .Net 2005 for sending emails. I have used OutLook API for Office 2003 for this implementation, namely MSO.DLL and MSOUTL.OLB. Now the application is needed to be completed for taking care of both OutLook 2003 and 2000. There are som problems with different versions of Outlook and putting references in .Net solution to both MSOUTL.OLB and MSOUTL9.OLB. Do you know how can I manage to make this program works with both these version of OutLook Thank in for hand for your help. Reflection is a form of late binding. The way I like to handle this scenario is to define an interface and have the dynamically loaded objects implement this interface. At design time I bind to ...Show All
SQL Server SQL Server Setup Fails
I just upgraded ACT database and it needs SQL Server. I just keep getting "SQL Server Setup Failed". I downloaded SQL from Microsoft, went to install and get the same error. It then refers to a summary txt log which I have had a look at but to be quite honest means nothing to me. I only want to be able to use ACT!! Anyone help PLEASE!! Sam, Yep, searched the lot, no reference to "value 3" whatsoever. First error is "ParseBootstrpOptionsAction" failed during execution. Any help Steve ...Show All
SQL Server <Host System.Messaging in CLR>
Hi All, i am trying to host the system.messaging.dll in SQL Server. I get the usual warnings about not being fully trusted. I am prepared for MS not supporting. But, when i execute my trigger (which writes to message queue), the trigger fails with an exception of 'That assembly does not allow partially trusted callers'. So. is there no way for me to write to MSMQ using triggers Do i have to rethink my strategy imports System.Messaging Dim msmq As MessageQueue = MessageQueue.Create( ".\TestQueue" , False ) msmq.Send( "Test" ) Thanks for the help Did we ever get an update on this I'm also trying to solve is issue. Trying to use the system.messaging with ...Show All
Visual Studio Team System Listing global groups on TFS
Hi, Is there any API to list the names of global groups on TFS eg, [SERVER]\Team Foundation Administrators, [SERVER]\Team Foundation Valid Users etc. Manasi ListApplicationGroups gives me all the groups that start with [ProjectName]. eg. [ProjectName]/Project Administrators, [ProjectName]/Contributors etc But I need groups like [SERVER]/Team Foundation administraotrs, [SERVER]/Service Accounts etc. Manasi ...Show All
Visual C++ trying to use localtime.....
Hello...I'm trying to have it display the local time of the users location.....It's weird that TickCount is in Environment:: .. but LocalTime is not. How do you get it to get the local time ! Thanks. GetLocalTime returns a void you cannot initialize a string with that and you cannot pass an unintialized pointer to GetLocalTime - well you can, but... Use this instead: SYSTEMTIME st; GetLocalTime(&st); System::String^ s = System::String::Format( "{0}.{1}.{2} {3}:{4}:{5}" ,st.wDay, st.wMonth, st.wYear, st.wHour, st.wMinute, st.wSecond); System::Console::WriteLine(s); -- SvenC ...Show All
Windows Forms Windows does not recongize that i just insatlled a new program.
I'm writing up a setup application, and when I install the exe file, Windows does not reconginze that I just installed a new program. Do I need to create a registry file If I do, does anyone know how to create one and what do I need to put in there in order for Windows to reconginze that a new program has been installed. Thanks, Brandon well yes of course, if you wrote the program yourself you have to do everything the way an installer does so Windows can register the new program you have installed - just copying files from one place to another is not an installation - its just a file copy. You will have to find out what registry keys, files etc... are used in order to notify Windows of an installation of a program. I wo ...Show All
Visual Studio A4 paper size with winforms reportviewer
Hi, Ive searced the web and found only a few dead ends, so i thought i'd ask in here, hope its the correct place! i have created a report that will use a localreport on a winforms app, the report works fine, however when i try to print it, it is always set to letter size paper, how do i change the print preview to be A4, and set the margins i have set the report size in the report, but it seems to make no difference. Regards, Russ Finally, it all works properly. Here's the corrected source. using System; using System.IO; using System.Data; using System.Text; using System.Drawing.Imaging; using System.Drawing.Printing; using System.Collections.Generic; using Microso ...Show All
Visual C# convert some old C++ into C# code
I am trying to redo a program that was originaly done with C/C++. The abilities of C# means that we can do the same thing more elequently and without as many outside commercial programs. The problem is that I do need to use one commercial program and I am trying to figure out how to call it. I have found the code that the old programmer used to execute the other program. I am trying to figure out how to translate that into C# code. I found the following code snippet on MSDN, so I know that the original programmer did it by the book, but I don't know how to do the same thing in C#. Here is the code: #include <windows.h> #include <stdio.h> void f () { STARTUPINFOA si; PROCESS_INFORMATION pi; ZeroMemory( &si, s ...Show All
