liujj_xujj's Q&A profile
Visual C# (not working still) :-( keypress style for alphanumeric textbox help plz
hi, i am very very new to C# and although i am used to VB 6 and a bit of C++ andJava .. i cant seem to find how to control the inputs on a text field. i need a filter for my textbox that only accepts alpha numeric input. i was thinking over the line of having a keypress event and checking at textbox_change that each char is alphanumeric. how to do this. plz can anyone give me a skeleton or the textbox_TextChanged function! I am using Framework 1.1 i think thats why i dont even have the maskedtextbox commponent to help me :-P.. plz reply asap! thanks... u can use the following code private void textBox1 ...Show All
Visual Studio Express Editions Upgrading vb6 projects
I was unable to upgrade projects from vb6. I get an error when "invoking upgrade engine". Error occurs in vbu.exe. Error message: Enexpected exception ocurred during upgrade engine operation: Error in remote procedure call. (Exception from HRESULT: 0x800706BE). Using: XP Pro Spanish Version VB 2005 Express V8.0.50727.42 VB6 projects made with VB6 Enterprise Edition (SP6) Spanish Version. Hi Cristian, It sounds to me like the VB Upgrade tool did not get installed correctly. I would suggest going to Add/Remove Programs in the control pannel and doing a repair on VB Express. ...Show All
Visual Studio Team System Publishing test results fails - not sure why...
I ran a unit test and wanted to publish the results back to the "operational store" to see what would happen and if I could do something with the data - however I got the following error: EndPublishRun: Server was unable to process request. ---> A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. The help is vague on what exactly is going on behind the scenes and I haven't found anything yet in my searches through the forums and various blogs. Any help to this error would be appreciated, and if someone coul ...Show All
SQL Server SQL 2000 --> SQL Express via 2000 DTS
I know this probably shouldn't work. I've created a DTS package using SQL 2000 Export Wizard, exporting all tables from a SQL 2000 database into a SQL 2005 Express. I'm able to pick the SQL 2000 database, and the 2005 Express database using the wizard, but when the job runs I get the error: [SQL-DMO] You must use SQL Server 2005 management tools to connect to this server. Any ideas I've installed the SQL 2005 Backward compatibility pack, but it didn't help. If you are trying to move an entire database from SQL Server 2000 to SQL Server 2005 Express, you can detach the database in SQL Server 2000 and att ...Show All
Visual Studio How do I: Add an encryption step?
I'm brand new to MSBuild so please bear with me. In our otherwise simple C# app, I'm trying to understand how best to add a step to encrypt some resources. I have a number of .txt files that are Content items within ItemGroup elements. This way they can easily be edited along with the other C# source files in Visual Studio. However, before they're linked into the application, I need them to be encrypted into our own .encr format. These .encr files are also included in the project as embedded resources. Essentially, what I'd like the .csproj file to do is two things: 1) have a step that will look for all of the project's .txt files a ...Show All
Visual Studio Team System Team Foundation Server & client
We are facing few problems while working with Team Foundation System. We are unable to connect with Team foundation server. We give the steps what we have followed : 1. System with Windows 2003 (TFS Server) On this system, we have installed the following with Microsoft Team Foundation Server Beta 3. a. VS-2005 Team Explorer b. Vs-2005 Team Foundation Server (Build) c. VS-2005 Team Foundation Server (proxy) d. Microsoft Windows sharepoint services 2.0 e. Windows Server 2003 Service pack 1 f. MS-SQL server 2005. 2. System with Windows Xp.(Client) We have installed Visual Studio 2005 (Trial Version 180 days) an ...Show All
Visual Studio Conflict between Add-in and VSIP Pkg
I have an add-in that adds a command to the menu and a Package that does the same. If the add-in is installed first, and then the package, the devenv.exe /setup for the package causes the addin command to appear twice (setup is necessary to add splash screen etc for the package). If I run "devenv.exe /ResetAddin MyAddin" before installing the package and then run "devenv /setup" for the package, again the add-in appears twice, once active once disabled. The only procedure that seems to work is running "devenv.exe /ResetSettings" before installing the Package. The "deven.exe /setup" phase for the package then restores t ...Show All
Visual Basic VB6: Application limits
While creating multiple windows forms with ActiveX Controls is there a limit on number of total controls that are created & Active at one time . If so is there a way to adjust these limits Is there a reason you need this many controls If the controls are just for displaying information, you might consider replacing them by just form.print "info" rather than creating a label and displaying it. If you need user-interaction with the information, assuming this information is layed out in some type of organized manner (i.e. rows/cols), you could use the form events (mouse down, click, etc.) to check the mous ...Show All
Visual C++ COM & .NET interop
Help. I have been able to instantiate a .NET interface from my COM object, but I need the .NET class to call back my COM object that created it. In .NET, I tried the following: namespace TransportIP { [uuid("017A8699-5130-4a5c-B07F-CF740F0845B0"),] public __gc __interface IClientTransport { void AsyncCallBack(String *pBuf); }; [uuid("7E72C64C-9220-4560-BFE6-34C10E66DE1F"),] public __gc __interface ITransportIP { void Connect(IClient ...Show All
Visual Basic Thread Usage
I am working on an application that uses the Comm port. I have to send information to a device then it willl send it back. I would like to know if the way I want to use threading is correct or not. In other words is it correct to create a thread on each event or is there another way. The following is an example: Sub OnComm 'Called when 'Data received from comm buffer Dim t as new thread(Addressof ProcessData) Dim r as new thread(Addressof SendData) t.start r.start End Sub Sub ProcessData 'Parse data and update GUI End Sub Sub SendData 'Send new data out comm port End Sub Thanks I would be weary about launchi ...Show All
SQL Server SQL Server Setup could not connect to the database service for server configuration
OS: XP-SP2 Not able to install SQL Express 2005. ------------------------------ SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client]SSL Provider: The certificate chain was issued by an authority that is not trusted. Refer to server error logs and setup logs for more information. For details on how to view setup logs, see "How to View Setup Log Files" in SQL Server Books Online. For help, click: http://go.microsoft.com/fwlink LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=29515&EvtType=li ...Show All
SQL Server Accessing the Windows ACL from Transact-SQL
Hi everybody, I have a dilemna with a project I am developing. I am deploying the project to a Windows Small Business Server 2003 network, so as part of the security I have created a number of database roles (manager, secretary, bookkeeper, facilitator) and linked a Windows Group (DOMAIN\Facilitators, DOMAIN\Secretaries, etc.) to each of these roles. I have found that this model is by far the easiest way to administer access to my application. My problem lies now in the fact that I need to assign a "referral" (a row in a table) to a facilitator. I have tried creating a staff table, with a boolean facilitator f ...Show All
SQL Server Configuration Files
Hi, I’m having some issues associated with the configuration files that I can’t understand: - Having a project with several packages using the same connections in each one (some packages use all connection and others I just have some of them), why can’t I use only one configuration file for all project. Assuming that I would have to configure all packages at least I would like to use always the same file. On the other way I would need 100’s of configuration files (one per package) to configure always the same connection, just because not all the packages use exactly the same connections. - Having a ...Show All
Software Development for Windows Vista Workflow and queues
I have inherited a project that uses Staffware (an old workflow type stand-alone application) and I want to migrate this solution, or at least part of it to start with, into WF. My first set of questions are: 1) In the Staffware scenario, the sequential workflow had steps that you could associate queues with so that items sat in a particular queue until an action caused it to move (either a user initiated action or a timer on that step expired and forced it to move along the workflow path). I know WF has a timer type equivalent, but should I have a separate workflow designer piece for each of the "steps" in the Staffware methodo ...Show All
Visual Studio 2008 (Pre-release) WPF replacement for AcceptButton and CancelButton?
Hopefully this is a simple question. What is the WPF replacement for the AcceptButton and CancelButton properties that are in Windows forms I want to set the button that will act as the default for the enter and escape keys. I'm thinking it should be somewhere in the System.Windows.Input namespace, but I haven't run into it yet. Thanks much. Bruce Bukovics Author of .NET 2.0 Interoperability Recipes http://www.apress.com/book/bookDisplay.html bID=10116 Doh! Why didn't I think to look at the button itself Thanks for the quick answer. Bruce ...Show All
