Software Development Network Logo
  • Smart Device
  • Windows Live
  • Visual C#
  • Windows Vista
  • SQL Server
  • Visual Studio
  • Windows Forms
  • VS Team System
  • Visual Basic
  • Microsoft ISV
  • VS Express Editions
  • Visual FoxPro
  • Architecture
  • .NET Development
  • Visual J#

Software Development Network >> jy_lam's Q&A profile

jy_lam

Member List

ultra03
Marco Lammers
Tianlei
Suman_g
cufunha
Robert Liu
Hpolanco
Willie Ong
Bertrand JURADO
ALepage
*itguy*
Amitkumar
Jonathan Caves
Ozy_Ind
Greg Czechowicz
Fahad349
lowjoel
asics64
The Undead
DavidThomas
Only Title

jy_lam's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Dramatic memory leak in DrawText

    I've been banging my head against the wall for the last few days trying to track down the source of a rather big memory leak in my Direct3D-application. Turns out the culprit seems to be the DrawText function. Let me explain exactly what happens: I'm using a variable width truetype font (Times New Roman) created through D3DXCreateFont. I'm using this in various parts of my application, but the part where the problems are easiest to notice is in my custom UI textboxes. I use a function called InsertText to add new characters to the printed string, and everything I initialize is cleaned up properly afterwards. The problems only truly beg ...Show All

  • Visual C# Sockets

    Hi there. Sorry for posting this in the wrong forum, I apologise but hope someone can guide me in the right direction. I have googled for this endlessly however the examples are poor or they are ok but cannot seem to understand them or simply there is not enough in depth explaination. I want to be able to create a simple application that sends/recieves data. I will have a Server app which listens to a connection and acts to whatever it needs to do (read data from that conneciton and so on) Q is, how do I create a socket listener which will keep running until the client says "close connection" or until the application is terminated I have ma ...Show All

  • Smart Device Development Services.exe or another method

    Hi there So basically Id like to hear your idears on the best way to crack down my problem. My problem is that I need to create a service that will run allways on a Windows CE device. This program will run at a set interval given in some external data source either via file or registry. This service will then have to do some checks as to connectivity to a remote file share and stuff like that and if all checks succeede it will launch a CF2.0 executable which will then do more stuff on the fileshare e.g. look for pending auto installations and report back to the server how installation went and propubly also ...Show All

  • Smart Device Development Reading in from text file

    I am trying to read a text file and put the data into a db. can anyone tell me how to read in from a text file. or point me in the right direction. OpenNetf.org has TextDataAdapter which can do that. Sources are available. Or please take a look at System.IO classes, e.g. FileStream and TextReader. Samples are available in MSDN. ...Show All

  • Windows Forms ToolStripComboBox Theming

    I am playing around with making my own ToolStripRenderer in the beta1 and so far it's going quite well. I noticed that when rendering with the built-in Professional style, any ToolStripComboBoxes in my ToolStrips would get a nice blue gradient. If I use a custom colortable with the professional renderer the combobox will still render with the blue gradient  ...Show All

  • Visual Studio 2008 (Pre-release) AuthorizationDomain class gone in FebCTP

    Hi, The AuthorizationDomain class appears to have been removed in the FebCTP. The release notes that I saw mentioned that it moved to another assembly/namespace however it does not appear to reside in the new location. There are some indications that it has been replaced. Does anyone know what the story is on this Thanks, Pat Hi Pat, The AuthorizationDomain class has been removed. The behaviour it provided is now split between System.ServiceModel.Description.ServiceAuthorizationBehavior and System.ServiceModel.ServiceAuthorizationManager. You can specify additional authorization polici ...Show All

  • Visual Studio Team System Initialize reference type static fields inline

    It says "Initialize all static fields in Jnj.ThirdDimension.Controls.ControlPainter when those fields are declared and remove the explicit static constructor." but the static constructor contains only logic that can't be moved to initializers: public static class ControlPainter { static ControlPainter() { SetPrintType(typeof(TextBox), PrintType.ExternalPaint); SetPrintType(typeof(NumericUpDown), PrintType.ExternalPaint); } static bool useOnPaint = false; ... } Andrew, That's a bad fix in the example you've given. As the MyStaticInitializer method will only get called if ...Show All

  • SQL Server SqlDeveloper/SqlExpress Conflict.

    Hi, Background: I'm on a Pentium 2.4 with 1024 mb Memory and 160 Gb harddrive, running XPPro with SP2. I started a project in VS2005Beta2 with Sql2005Beta. When the RTM versions came along I ungraded to VS2005Pro, and tried to upgrade the SqlDeveloper. This ran amuck, but I could still access my database, so after three attempts I gave up temporarily. When it looked as if I was actually going to finish my project, I decided to sort out my Sql. Still had the same problems, but found the Cleanup Utility, which did a great job of cleaning up the residual stuff in the registry. I downloaded SqlDeveloper, and ended up with file reference ...Show All

  • Windows Forms Hos to add an rtf license agreement file to my setup package

    I tried adding an rtf file to my setup package, I created the license.rtf file, I added a License agreement dialog to my setup project, then I put the license.rtf under Application folder and from my License agreement dialog box I mapped this file, but when I do the install, the box is empty no rtf file is shown,  any ideas Thanks Salvador ...Show All

  • Visual C# C# 2005 Online or Offline

    Hey all  Does anyone know where I might be able to find a tutorial on how I can have my program be able to tell whether or not it is online or offline Thanks MacKenzie This is codesnippet with C# 2005; bool isAvailable = System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable(); ...Show All

  • Microsoft ISV Community Center Forums Removing Hyperlinks

    Hi I have inherited an excel database with various links somewhere that i cant find. Everytime I open the file it will ask me for the file.Obviously its linked somewhere within the spreadsheet. When I get into the spreadsheet I tried to search for the links but could not find it. Question. Is there a way to show up all the hyperlinks and remove it from the file Thanks Try looking at the list of range names in the sheet. You may have a range name that refers to another sheet which is not being used. ...Show All

  • Visual Basic loss of ctrl-v,c others

    I created a new project in visual basic express.  added two text boxes and ran the app.  copy, cut, paste, select all were all functional via ctrl-c, ctrl-a, etc. i then added a menu bar and now the copy, copy, etc do not work via ctrl-c etc...nothing works from the edit menu either.  Is this a bug   Is anyone else having an issue with this I had been working on a project and didn't have use of those shortcut keys and i was curious as to why, if it was something I had to add, or otherwise.  I can't figure out the connection between the menu bar and the control-key functionality. Anyone have any ideas ...Show All

  • .NET Development How to return sqlconnection object in web service??

    Hi, I'm new to web service and facing a problem in developing a web service. My idea is to have a web method called getConn() <WebMethod()> _ Public Function GetConn() As SqlConnection Try conn.ConnectionString() = "Server=(local);UID=sa;pwd=123456;database=csds" Catch ex As Exception End Try Return conn End Function But when i try to run the service i get the following error : Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface. Can anyone help me, is the sqlconnection objection cannot return as a web function ...Show All

  • SQL Server Package config errors - VS_NEEDSNEWMETADATA

    Hi everyone, I am having issues with using package configurations when just chaging the ServerName and InitialCatalog vars of a Connection Manager.  I have DelayValidation = True on the Data Flow Task that is erroring out, but I am still recieving a VS_NEEDSNEWMETADATA error before the package is executed.  The 2 boxes have identical tables I'm trying to access, although 1 is 2005 and the other is 2000.  Any thoughts   I thought that package configs were supposed to be quick and painless Thanks, Adrian We worked around this by setting the source to a SQL command rather than a Table/View ...Show All

  • Visual C# Disable default close button on Windows Form

    Hi, Is it possible to disable the default close button if I set the FormBorderStyle to FixedSingle. I know it can be done setting FormBorderStyle to None. Thanks. Buru. Try this!! this .ControlBox = false; Cheers, ...Show All

©2008 Software Development Network