Software Development Network Logo
  • Visual C#
  • Windows Vista
  • IE Development
  • .NET Development
  • SharePoint Products
  • VS Team System
  • Visual Basic
  • Windows Forms
  • SQL Server
  • Game Technologies
  • Visual FoxPro
  • Audio and Video
  • Visual Studio
  • Visual C++
  • Smart Devicet

Software Development Network >> Chee Kiang's Q&A profile

Chee Kiang

Member List

Matt Bastin
zoujing
Jamie Douglas
fredmxm354
chamsoft
Musa_Tariq_Raza
Can-Ann
DanglingChap
Geokri
Tryin2Bgood
J. Hammer
Leon Mayne
Neweb
gwar3k1
Trausti
R0nda
Steven Syfuhs
Jessica Alba
rnfinley
Cika
Only Title

Chee Kiang's Q&A profile

  • Windows Forms debugging information log

    Hi, I want to perform extensive logging i n my application. Such as, I want to log variable values when a function start executing and end executing. I want to log the executing functions, their names and if possible time stamp. Also, I want to log exceptions. I can do it manually, but is there any .net based class that does it all for you Any samples Thanks I think the Eventlog is specificly designed for your purpose. Personaly, I think the trace class has no difference in writing some messages to a stream. Only you need to do is to register a listener which you want to write the log into. Check out this link for a reference of Trace class http://msdn2.microsoft.com/en-us/library/system.diagnosti ...Show All

  • Windows Forms Referencing New Row

    Hi all, I am having difficulty referencing a new row created like this: Me .BindingContext(dtaSet.Load).AddNew() I have controls bound to a dataset that works just fine. The problem I am having is that I need to insert data into one of the rows like this: dtaSet.Load( Me .BindingContext(dtaSet.Load).Position ).lc_CustID = dtaSet.Customer(cboCustomer.SelectedIndex).c_ID When I try run this code I get an exception saying that there is no row at position 0 I understand it's because me calling the AddNew creates the row but it doesn't actually exist in the dataset yet. All I need to know is how would I reference the newly created row so I can insert data into it. Any help would be most appreciated. Regards Eric ...Show All

  • Visual Studio 2008 (Pre-release) Why does basicHttpBinding have SOAP12 and WS-Addressing in my wsdl?

    Hello, I just changed the config on WCF Technology samples-> Basic -> Service -> Hosting -> SelfHost The original config file had wshttpbinding but I changed it to basicHttpbinding file and checked out the wsdl and I got the following. < xml version="1.0" encoding="utf-8" > - < wsdl:definitions name =" CalculatorService " targetNamespace =" http://tempuri.org/ " xmlns:wsdl =" http://schemas.xmlsoap.org/wsdl/ " xmlns:soap =" http://schemas.xmlsoap.org/wsdl/soap/ " xmlns:wsu =" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd " xmlns:soapenc =" http://schemas.xml ...Show All

  • SQL Server UPDATE The records in table 1 that I just imported into Table 2

    Hello there, I need to move data from one table to another. Is there a way to set a flag (say isProcessed) in table 1 upon the successful import of data to table 2 I know I could use a temp table, but I was hoping for some sort of built in command/table @TransactionScope.Table or something like that. I know that triggers have UPDATED and DELETED tables or some such, but I would like to stay away from triggers as well. Any hints Hi, what about putting the two statement in one transaction BEGIN TRANSACTION INSERT INTO Table2 (...) UPDATE Table 1 SET processed = 1 (...) <proper Exception handling has to be included> COMMIT TRANSACTION --Or Rollback HTH, Jens K. Suessmeyer. --- http://ww ...Show All

  • Software Development for Windows Vista StreamingWrite12 Problem in Vista

    Has anyone ever try burning data by using WRITE12 command under Vista If enabling UseStreamingWrite12 under Vista ( Ver. 5483 in my case ) and burning data, the CPU would abnormally goes quite high ( 60% ~ 80%). Using TaskInfo to check CPU usage, it shows that "Interrupt time placeholder" consumes over 50%~60% CPU. If using WRITE10 command, the CPU usage would normally below 10%. Any suggestion to handle this CPU usage issue Dear Henry, Thanks for your reply. I have tried uninstalling the network card driver, but the issue still existed. From the documentation of IMAPIv2, there is a function called IDiscRecorder2Ex :: raw_SendCommandSendDataToDevice(). In fact, I ...Show All

  • Visual Studio Margins are recalculated on calling the Page Setup Dialog

    Hi, Aware of the A4 Rounding-Bug in Report Viewer I have designed my Report with a Page Size of 11,69in page width and 8,27in page height which is A4 Landscape. Also I use page margins of left: 10mm, right: 10mm, top: 25mm, bottom: 10mm After calling the Report and switching to Page Layout everything is like it is designed. But if I call the Page Setup Dialog the page margins are set to: left: 3,9mm, right: 3,9mm, top: 9,8mm, bottom: 3,9mm if the dialog is confirmed with OK, these new and wrong margins will be used, and the Report will be redrawn. Another call of the Page Setup Dialog again changes the margins to 1,5 and 3,9 mm I also tried setting the Margins in cm and inch, but with no success. For me ...Show All

  • Visual Studio Team System Field-name used in error message

    When the Label of a field in the FORM section is different from the name of the field and a rule is not fullfilled at commit-time, the error shows the name of the field and not the name of the label. However the user can not find a field with that name because on the forms only the Label-name is showed. E.g.: if the "Found In" field required and the label for the field on the form has been set to "Build Version" then the error shown when the field is not set becomes: "TF20012: Field "Found In" cannot be empty". There is no field with a such a name on the form. However there is a workaround for this. You always can change the field name and match it with your labe ...Show All

  • Visual Studio Express Editions Automatically enter Text from one Text box to another as you type.

    I would like to setup a Text Box that pulls the Textbox.text from 2 separte text boxes and then displays them in this textbox. For Example... TextBox1.Text = "Jimmy" TextBox2.Text = "Taylor" TextBox3.Text = "Jimmy Taylor" But the kicker is I want it to add the "J" in TextBox3 as I type it in TextBox1 ect. I tried a number of places but I am not sure how to describe this and I am not coming up with very good examples. Thanks in advance for any help. Yes, add a new class. You might take the name I used FormEventController. Add a member of that class to your form which creates the dynamic form like so: Private m_fec As FormEventController When you create your dynamic ...Show All

  • Software Development for Windows Vista TC2 - Our application can open files created by other users but will deny saving them

    Step 10 says: Attempt to open the file created by other user: The file cannot be opened and the logged on user must be prompted indicating so. Is it an acceptable behavior for TC2, if our application does allow to open files created by other users, but will deny any attempts to save changes for such a file That means that user won't be able to edit other users' files, although this will be forbidden not on file opening but on file saving operation. Or should we still need to change the behavior of our product not to allow to even open files that belong to other users Yes. It did answer the question. The current behavior of our application is correct and passes the test case 2 since we do not allow to ...Show All

  • SQL Server Remote SSIS vs Domain\User: Access is Denied (0x80070005)

    What OS permissions do I need to give a domain user to effectively connect to a remote instance of Integration Services I keep getting the following message: Cannot connect to SQLDEV01     Failed to retreive data for this request.        Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) (Microsoft.SqlServer.ManagedDTS) I have already performed the Windows 2003 steps outlined in the "Eliminating the Access is Denied" error located at http://msdn2.microsoft.com/en-us/library/aa337083.aspx I have no problem if the user is a local Administrator (go figure). The MSDN page lacks another steps needed on W2K3 (not sure about XP) - ad ...Show All

  • SQL Server Missing fields in MSmerge_history table under SQL Server 2005

    Hi, I have a query that uses the following fields from MSmerge_history: MSmerge_history . start_time , MSmerge_history . runstatus and MSmerge_history . duration Below is the query that I am using: SELECT MSmerge_agents . subscriber_name AS SubscriberName , MSmerge_history . start_time AS SyncTime , MSmerge_history . runstatus AS SyncStatusID , MSmerge_history . comments AS Comments , MSmerge_history . duration AS Duration FROM distribution . dbo . MSmerge_agents MSmerge_agents INNER JOIN distribution . dbo . MSmerge_history MSmerge_history ON MSmerge_agents . id = MSmerge_history . agent_id WHERE MSmerge_history . runstatus IN ( 2 , 6 ) AND publisher_db = DB_NAM ...Show All

  • Visual Studio Tools for Office Focus fails to return to Word document editor canvas after showing modal dialog from within VSTO Word template solution

    Hi, I'm hoping someone can help me with some unusal behavior I'm experience with my VSTO solution in Microsoft Word. I'm using VSTO 2005 with Office 2003 SP2 on Windows XP SP2. The problem I have is that after showing any modal form from within my VSTO Word Document Template solution, the focus fails to return to the Word document editor (the Word window itself still has focus, but in order to resume editing I must click once anywhere on the Word window -- typing also doesn't work unless the Word window is clicked). Here is the full sample code to reproduce the problem: namespace WordTemplate1 { public partial class ThisDocument { void ThisDocument_BeforeDoubleClick(object sender, Microsoft.Office.Tools.Word.ClickEventArgs e) ...Show All

  • Visual Studio Express Editions Abstracting values

    How do you abstract a value (data) in the cell (nt row) in the selected datagrid row The following code. Will load a number of rows into a datatable and set this as the datasource on the datagridview control. Then when I click the button it will determine that there is at least one row selected and then display the first and second columns from this selected row. The selectedrows is simply a collection which you can iterate over and the rows and cells can be used to refer to items by ordinal value. This is a real simple example but there is nothing special about the selectrows collection. http://msdn2.microsoft.com/en-us/library/4wszzzc7.aspx http://msdn2.microsoft.com/en-us/library/system. ...Show All

  • Visual Studio Team System Why build gets all team projects ?

    I am running default build with few small modifications. I noticed that in the build folder the Sources directory contains code from all existing team Projects. Judging by Build Log the Coreget target is resoinsible for this insanity. Did I do something wrong here or I need to include some specific code in my build I've heard that overriding CoreGet is not the best idea... My guess is that you have mapped the "root" dir that contains the source code for all of your projects, so the Get task is sync-ing everything under that root dir. If that is the case, you can cloak the (sub)directories you don't want to sync. Here is a post that might help. http://blogs.msdn.com/manishagarwal/archive/2005/ ...Show All

  • Visual Studio Express Editions pages error

    my page1 is not recognised by my page2 by tis i mean tat the dropdownlist in page1 cant be detected in page2 here's the scenario i have a DropDownList1 in page 1 and i have TextBox1 in page 2 So i want the TextBox1.Text to display DropDownList1.SelectedValue so i put this TextBox1.Text = DropDownList1.SelectedValue but there's an error sayin DropDownList is not declared can anyone tell me how to solve this problem By Page do you mean form Are the controls on different forms If they then you have to fully qualify the reference. Form1.TextBox1.Text = Form2.DropDownList1.SelectedText You dont need to fully qualify the name if the control is on the form that contains the cod ...Show All

©2008 Software Development Network