chengG's Q&A profile
Visual C# Is there a way to exclude some codes being executed when switching to design view?
In VS2005 C#, is there a way to exclude some of the codes being executed while loading the user control in design view. For example, I have a user control in which some of the members will be initialized at runtime only. When I add this user control in a form, I am getting the error that reports the construction of the object failed. You could wrap the initialization in a check to the DesignMode property ...Show All
SQL Server How can I get Transactional Republishing to work?
I'm starting a new thread to keep things clean and simple. This is a transactional republishing issue. In my simplest scenario, I'm transactionally replicating a single table from database A to database B and then from database B to database C. (And C will need to transactionally replicate to D, but ignore that for now). All databases are on the same XP server (in this simplist version of the problem). This is SQL 2005 RTM. Publication A to B ...Show All
Visual Studio Team System Test Mix
Hi, I have used Load Test of VSTS and found it really cool. I start to write some ILoadTestPlugin and wonder whether I can specifiy test mix in the code (in Initialize method of ILoadTestPlugin) instead of in the Load Test Editor view. I looked at the LoadTest class, it seemed there was no method or properties support this one. Can anyone help me Thanks Ran Mouri You can use the TestSelectedEvent ...Show All
Smart Device Development connection string to MSDE database
Hi, I'm developing smart device application in VB.NET. I couldn't make the connection with MSDE. I used the following connection string. myConnection = "server=10.0.0.8;Integrated Security=SSPI;User ID=sa;Initial Catalog=Example;Data Source=PPL\SQLSERVER;Trusted_Connection=yes;" MSDE is on the same machine where i'm developing my apps. & testing the result with emulator. (NOt using RDA or Replication).Simply using ADO.NET comm ...Show All
Windows Forms showing child form in mdi parent
Hi, To show my childform I do the following in the load event of the parent: Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load Dim f2 As New Form2 f2.MdiParent = Me f2.Show() End Sub The form is not shown. I suspect this is because I have toolstripcontainer in the parent that takes all the space. So how can I show my child forms in the content ...Show All
Windows Forms One more TIFF question
As long as i am being bothersome to everybody with TIFF questions, I was wondering if anyone has ever seen any code or docs which show the way as regards using extended tiff editing features. (If you haven't tried it, save a bitmap as a .tif file and open it with Windows Fax and Image Viewer (not sure that's the correct name of the default picture view with Windows XP, anyway, the shell program (originally by Kodak, i think) which a fresh out of ...Show All
SQL Server Fail to execute store procedure in OLD DB Source in Data Flow
Hi. I am trying to extract the data returned from a store procedure to a flat file. However, it fail to execute this package in the OLE DB Source. I select the SQL Command in the Data Access Mode, then use: USE [SecurityMaster] EXEC [dbo].[smf_ListEquity] It runs ok in the Preview, but not in the Run. Then the system returns during executing the package: Error: 0xC02092B4 at Load TickerList, OLE DB Source [510]: A rowset based on the SQL command ...Show All
.NET Development 404 Errors with ASP.NET v2.0 - dependency issues?
Did all the dependent assemblies make it into the \bin directory of the new location -steve Absent pdb files should not cause the 404. Did you check that the Web Service extensions are enabled on your system Start -> run -> inetmgr When Internet Information Services (IIS) Manager comes up, expend the (local computer) node and select the Web Service Extensions node; on the right hand side see the list of all extensions, make sure ...Show All
Visual Basic Event when pressing an specific key
I'm pretty new in VB, and I know most questions around here are much more serious than mine, but after looking a lot through VB2005's help, and search engines, I simply can't find out how to do this simple thing I'm trying to do, and need some help. What I wish to do is exactly what I described in the subject, something happening when I press a certain key in the keyboard after I input a certain code. Example: Private Sub TextBox1_KeyPress(By ...Show All
Windows Forms Raising Events / Copy - Paste
I have a main menu in my form class with Edit->Copy and Edit->Paste. I assigned the normal shortcut keys of Ctrl+C and Ctrl+V to these menu items. However, the Form that gets notified when these events fire can't really handle the events. I&nb ...Show All
Software Development for Windows Vista Serialization error and SQL persistence service
Recently, I've been tearing my hair out because of strange serialization errors being reported when I start my workflow which is hosted to use the services of the SQL persistence service. In trying to track down the issue I deleted most of my code but still got the errors - which reported references to deleted code! I tried deleting any cached DLLs, clean rebuilds etc to no avail and then seemed to stumble on the answer - which is unfotuna ...Show All
Visual Studio Defining GUIDs through project template parameters
I am attempting to create a project template in Visual Studio 2005. I have my project setup and everything seems to be working fine except for automated GUID generation. My project relies on COM interop, therefore when the project is created using my template, I need to generate new GUID values for each custom class in my project. I would like to set these up using attributes, such as... [ ClassInterface ( ClassInterfaceType .None)] [ Guid ...Show All
Visual Studio 2008 (Pre-release) Question regarding DirectX over WPF
Hi all, Is it possible to insert a directX control (written in C++) into WPF window Thanx Yes, it is, but in this release it has to be done via a child window (read: an ntuser HWND). You can see an example in the PDC 2005 materials. Go to http://commnet.microsoftpdc.com/content/downloads.aspx and look for PRS313. ...Show All
SQL Server Transaction log keeps growing
I have set the dboption 'trunc. log on chkpt.' to true; yet the transaction log keeps on growing. sp_dboption pubs_db does show 'trunc. log on chkpt.' to be set. I tried DBCC SHRINKFILE ( pubs_db_log , 100 ) and for a while, the pubs_db_log.ldf was about 100M and then it grew to 10GB. I have a process running that is inserting more than 15K rows per hour and I would like to keep the transaction log from growing. How do I control the tx log g ...Show All
Smart Device Development Missing CloseUp Event on DateTimePicker
Is there a way to emulate the functionality of the CloseUp event I really only need a value when the user is done selecting, not while they scroll through months. Certainly there is a way to tell, right rr12 Take a look at my blog post: http://blog.opennetcf.org/ayakhnin/PermaLink.aspx guid=4069b90f-f53f-4726-8790-36a9d3830aed ...Show All
