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

Software Development Network >> Wing Lee's Q&A profile

Wing Lee

Member List

TigerGirl
Joe0532
careyr
sanaku
Swapna.B.
Eduardo Alvim
Navin C
Kartit
DattaK
Wout
Tomas35595
suchi_ade
Mark from NH
Denis Cilliers
SAD1
Bilberry71
KannanPV
soWillingToLearn
mitasid
ssfftt
Only Title

Wing Lee's Q&A profile

  • SQL Server Number Format

    When setting the format property for a textbox containing a number the first parameter relates to a positive number, the second negative and the third to zero. eg #,###; (#,###); 0 Is there a way of also formatting Null values in the same way without writing custom code Sorry Mark, I can't seem to find anything that will replace NULL with a 0 just by changing using the format code. I think you're best bet is using the ISNULL or an expression, but either way, you'd have to change each field. Jarret ...Show All

  • .NET Development Running Server side script from Javascript

    Hello, is it possible to run server side script in Javascript For example : <script runat="server> Private Sub MyServerSideProcedure() .......... End Sub </script> <script language="javascript"> function CheckKey() { if (event.keyCode==13) { // Is it possible to call procedure = MyServerSideProcedure() } } </script> many2 thanks, I will show you here how to start with Ajax(Asynchronous Javascript and XML): * Download the latest Ajax.NET Professional files from www.schwarz-interactive.de * Add a reference to the AjaxPro.2.dll (for the .NET 1.1 Framework use AjaxPro.dll) * Add following lines t ...Show All

  • .NET Development Sending Message to a known IP

    I am asking how to send message to a known IP. Use a Socket class object on the transmitting side, a TCPListner on the receiving side and establish the connection. Serialize the string and image on the transmitting side and de-serialize it at the receiving side. I'll move your thread to a more appropriate forum... ...Show All

  • Visual Studio 2008 (Pre-release) Gnarly design problem - how to identify all controls in an application (typically before they are ever loaded/displayed)

    So theys wants me to design and implement and application wide validation system for a rather complex set of interdependent properties. Obviously this will be easier in WPF than in Win32, but still rather complicated. The why is too much to get into here, but basically I need to be able to predetermine all of the data bound UI controls in an applicaiton. Even those that have not yet been displayed. Do I have the ability (at run time - app load) to extract all the UI pages and parse them to figure out what controls exist in the app I also need to identify the containing UI element (as perceived by the user). For what its worth, all the controls that I am interested in will be mapped to ObjectDataProviders that I implement. Howe ...Show All

  • Visual Studio 2008 (Pre-release) Button click event in March CTP

    How do I add a button click event to a WPF button with the March CTP Unless I'm missing something, you've got to do it in code. Either you can attach the event handler method in the XAML code such as <Button Click="MyClickHandler" x:Name="m_Button" /> and then define the method MyClickHandler in your C# or VB code behind file. Or you could attach you event handler in code. So in C#, you would do something similar to this in your constructor or loaded event handler: m_Button.Click += new RoutedEventHandler(MyClickHandler); Typeing m_Button.Click +=[tab][tab] will auto insert the stubbed out method for you. I miss being able to insert button click event by double clicking on the ...Show All

  • Windows Forms print panel

    How can I print a panel in windows form which include many other controls regards Keep in mind the DrawToBitmap function has some caveats. Caveats that become an issue with container controls like Panels. See DrawToBitmap z-Order issue . ...Show All

  • Visual Basic How do I use a dynamically registered font?

    In VB2005, I am registering an application-specific font when the app starts up, and de-registering it on exit. I'm using this code to register and de-register the font: ' Register the font Dim FntRC As Long = AddFontResource(fontFileName) SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0) ' De-register the font RemoveFontResource(fontFileName) SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0) This all works fine.  After registering the font, if I start up Word, the font is available, and after de-registering the font, it's no longer available. The problem I have is that I don't know how to use the font once it's installed. I've tried this trivial example, but it doesn't work: Dim aFont As Font = New Fon ...Show All

  • Visual Studio Team System Include / Exclude target to drop

    Hello, We have loads of solutions being build as part of our TFS builds, and each solution contains the main project (class library) and one or more test projects, containing either unit tests or test harness controls. I obviously want all the projects in a solution to be build so the unit tests can run, but ALL the compiled projects are copied to the drop folder, rather than just the main class libraries. Is there a way to specify that you want to build all projects in a solution but only copy one of them to the drop location Hi Leon Mayne: Built binaries and log files copied to the drop directory might not be secure. You can extend the build type with a custom MSBuild task that securely copi ...Show All

  • Smart Device Development Bitmap.Save() in Windows CE5.0

    Hey, I am working on a project using the Symbol MC3000 mobile computing device Running CE5.0 with .NET CF 2.0 SP1). This particular device has an imager which we are using to capture a picture. After the picture is captured, we are creating a bitmap object (System.Drawing.Bitmap) to store the image while we create a Graphics object (with the bitmap as its image). We use the graphics object to post a date/time stamp to the image (drawString()). After that is completed, we are using the Bitmap.Save() method to specify a filename and image format. However, it is crashing on the save with a Not Supported Exception. Here is the code: Dim captureBitmap As Bitmap captureBitmap = New Bitmap(imageStream) 'imageS ...Show All

  • SQL Server VS changing Parameter Type bug?

    Has anybody encountered a problem with VS BIDS changing the parameter data type when a report has been copied. When a report is copied to the same or a different project to make changes it seems to revert to a string data type. I thought this was only happening from datetime formats, but appears to also affect float. Is this a known bug or by design. Quite frustrating when you make a minor change and it doesn't process numbers correctly in the where clause. Has made me look a bit silly to senior management :-) ...Show All

  • Visual Studio Team System Publishing to TFS from Project 2003 resets leveling

    I am using the MSF for Agile Software Development template, and am working with the "Development Project Plan.mpp" file to keep the work items in synch. In order to set task start and end times, I like to set task priorities, and then use the "Level Resources" feature with leveling order "Priority,Standard". I am doing Manual leveling, not automatic. The problem is that when I do that, and then click on the Publish button to push the changes back to Team Foundation Server, the task start times will get changed. This is particularly a problem if you have task durations that are less than one day. Why does the act of publishing work item changes to TFS change any of the attributes Shouldn't it just be a one-way ...Show All

  • Visual C++ Running Visual Studio in a ASP.net app

    Hello, I have an ASP.NET application in which I get some code from the user, and then call the Visual Studio on the server to compile it and do some analysis on it. Everything wokrs fine on WindowsXP, but on Windows Server 2003, the devenv.exe process starts, but does nothing and seems to be stuck. I suspect it may be because the devenv.exe runs with "NETWORK SERVICE" access under Win2003. But this is just a guess! Does anyone has any idea what could be the cause of this problem and how can I get around it thank you. Hello Re: Running Visual Studio in a ASP.net app Such questions are outside the scope of this forum - for the scope of the VC General forum pleas ...Show All

  • SQL Server Reporting Services in SQL 2000

    I would like to learn/more, practice creating and using reports but I don't know if I can do that on my home laptop with version 2000. I know, I know... upgrade to 2005. Can't do that due to technical difficulties on my other pc. Can I do this with my current setup thx Kat Hi, Do you have the SQL Server 2000 is installed on your computer As I remember, Reporting Services needs at least a Standart Edition for SQL2K If you have SQL Server, then you need the IIS also installed on your pc. If you want to create reports, you need also the VS.Net 2003 installed on your pc. I can all run them on my laptop which is an XP SP2. Your machine does not need to be a server :) Eralper http://www.kodyaz.com ...Show All

  • Visual Studio Nesting Elements

    I was wondering if someone could help me get past this road block.  I have been working in the Minimal Language template.  What I would like to do is drag an ExampleElement (element1) onto the drawing surface and then be able drag a second ExampleElement (element2) onto element1, so that element2 knows that element1 is its parent on the dd side of the model, as well as having element2 confined to the bounds of element1 graphically.  The end goal of the project that I am working on is to be able to model business processes that have increasingly fine detail at each level of sub-process.  So element1 would be a general process containing element2 (which in turn could contain a finer level of detail). <An example pictur ...Show All

  • Visual Studio Tools for Office OUTLOOK ADD-In can't loaded on computers without VS 2005

    Hi, We designed innovative Outlook 2003 Add-in for SPAM filtering which recognises and blocks similar images in email attachments. We made on VisualBasic SHARED Addin because it is more stable rather OUTLOOK Addin from our experience. We installed all possible updates but still have a problem: At the present time we can run the Add-In from VS2005 in debug mode, we can install and run Add-in without VS2005 BUT ONLY ON COMPUTERS WITH VS2005. (Outlook 2003 SP2) ON CLIENTS COMPUTERS WE ALWAYS GET "Not loaded, A runtime error occured during the loading COM Add-In" ALL INFORMATION FROM THIS PHORUM DID NOT SOLVE THE PROBLEM! Please help us A.S.A.P Thanks in advance. There is a tool that analyses the environment ...Show All

©2008 Software Development Network