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

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

TA_R_EK

Member List

pfear
Hooper
Justin Voshell
DevboyX
Johan Sörlin
codetale
Rahul Singla
SpunkyMan
Ajeesh
Superobotz
Praveen.Yarlagadda
Trevor E Hilder
Steve - B3
Antonio_Taganini
lezi
Business Intelligence Analyst
CharlieRussell
papadi
Wesley Wong
iomihai
Only Title

TA_R_EK's Q&A profile

  • Visual C# how to write text to desktop wallpaper

    Hi, Does anybody know how to write some text to the desktop background. Currently, I can write some text to the current wallpaper image file and then use SystemParametersInfo to display the new image...but that doesn't seem to be a good way to do so because the text format will be changed according to the setting of the screen resolution and the position property (center, stretch, tile). Is there any way to output the text directly to the desktop without touching the background image Thanks. Hi, It is true, reading the first post again he wants to write text on an image file (my fault ). Thanks for the links, I will have a look. Cheers ...Show All

  • Visual C# How to detect Method Modifiers using Reflection namespace

    I have been unable in a "Derived Class" to differentiate methods using modifiers "new virtual" vs "override". What combination of "MethodInfo.IsVirtual | .IsHideBySig | .IsFinal" should be used when testing in a "Derived-Class" where the method "Name" and "Signature" are equal to the "Base-Class" method "Name" and "Signature" ie: <methods >.GetBaseDefinition().Name == <methods >.Name I have not submitted code to reduce clutter. Any suggestions on a test combination would be greatly appreciated. Regards, John :-) > You can of course look if there's a "virtual" method with t ...Show All

  • SQL Server Got BIDS working, was there another way?

    i re-installed the SQLEXPR_TOOLKIT.EXE several times(4) trying to get the BIDS part to work. Each time i had the issue of it looking for the devenev.exe as others have mentioned. I gave up on a 5th install and went for the unsupported option of running vs_setup , after the toolkit.exe dumped all the install files to its temporary directory i went in there and ran it sperately... but essentially i did it the same way as this method... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=368549&SiteID=1 while this did work, it seems to be the unsupported way. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=665067&SiteID=1 Im not opposed to going back and doing it right, but was there ever a conclusion as to why the BIDS prog ...Show All

  • SQL Server Localizing Labels

    Hi, I am working on localizing SSRS reports and wanted to store the text for the labels in the database for different languages. The Language id would be passed by the user as a parameter. Based on this Language ID, the required data for the labels would be fetched and stored in a dataset in the custom code. This dataset would then be searched for relevant LabelIDs and the label caption in the particular language would be returned. The dataset would be a shared variable so it would get initialized the first time. For initializing the dataset I would need the datasource information, which would either be stored in the Shared Data source or embedded in the Report. Can I refer to the shared data source being used by the current report in ...Show All

  • Visual C++ Running a very simple Win32 app... / VS2005pro & MFC: Same thing?

    Hi! I have installed VC++ 2005 Express and the Platform SDK according to the instructions on MSDN: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx Compiling and running the following program on the dev computer works like a charm: http://www.winprog.org/tutorial/simple_window.html I then changed to release-mode, turned off debugging in the project properties and copied the .exe to another computer without VC++ 2005 Express on. I pretty much expected problems, so I wasn't very surprised when I got the error message saying that there was something wrong with the program configuration, like the one here: http://forums.microsoft.com/msdn/showpost.aspx postid=23371&siteid=1 I have since then combed this forum and ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Video/Animation Playback

    Hi, I'm currently writing a library (for XNA/DirectX) for animation/soundless video playback, and I have a few design questions for the pros out there if you don't mind answering them : I'm having my animation class inherit from game component, and update the frame depending on game time in the overriden Update method, and render it in the overidden Draw method, but even when I preload my textures to render, playback is choppy. Not sure exactly why, but I notice this only when I have significant number of frames (I noticed it with 100 frames, but *not* with 10/15). This problem may be linked and solved by the 2nd point, so please read on. When I preload all the textures for the frames in the animation (and the no. of frames ...Show All

  • Visual C# Sending UTF-8 data to Printer Driver

    Hi, My printer supports UTF8 data and I need to convert a string which contains UTF-8 data to IntPtr. Below is the original code. public static bool SendStringToPrinter(string szPrinterName, string docname, string szString) { IntPtr pBytes; Int32 dwCount; // How many characters are in the string dwCount = szString.Length; // Assume that the printer is expecting ANSI text, and then convert // the string to ANSI text. pBytes = Marshal.StringToCoTaskMemAnsi(szString); // Send the converted ANSI string to the printer. SendBytesToPrinter(szPrinterName, docname, pBytes, dwCount); Marshal.FreeCoTaskMem(pBytes); return true; } As you can see, it is ...Show All

  • Visual Studio Team System How not to retreive all files in a team project

    We have 10 or so solutions in our team project, and I've gone through the wizard to create a build process for each of these solutions. When we run the build it retrieves all the code for the entire team project, since each solution can stand on it's own I don't want this to happen as it takes a long time to do this. How can I prevent the build process from retrieving ALL the code and only get the code that is in a specific folder and below Thanks Wayne Wayne, You can eliminate project files from being retrieved from version control by using the "Type" attribute within the WorkspaceMapping.xml file in TFS. In the same folder of your TFSBuild.proj file (the file that defines your build) y ...Show All

  • .NET Development Reducing memory usage with XslCompiledTransform

    I've currently been using and XslCompiledTransform in my software to apply an XSL stylesheet to a user-provided XML file and then bulkloading the resulting file into a SQL table. This worked great until an XML file larger than 100 MB is thrown into the mix. The RAM usage jumps off the charts and for most users, my program exits will an OutOfMemory Exception. I've looked for ways to get around this and cannot seem to find any solutions. What can I do differently or what other alternatives do I have other than physically parsing through the XML file line by line (or node by node) and performing the operations the XSL file does myself... which is my LAST option considering I am sometimes dealing with 2GB and 3GB XML files. Oh.. and here's ...Show All

  • .NET Development Strange temporary error after applying .Net SP1 [Length cannot be less than zero, Parameter name: Length]

    Hi all, A couple of days ago, my hosting provider upgraded the .Net framework to .Net 1.1 SP1. Since then I am experincing strange errors: some of the aspx pages suddenly an exception on the initial pageload (se stacktrace below). The error is temporary and can be resolved by restarting IIS. Any ideas as to the cause of this error Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.ArgumentOutOfRangeException: Length cannot be less than zero. Paramet ...Show All

  • Visual Studio 2008 (Pre-release) Service Configuration Editor and custom bindings

    Is it possible to have the Service Configuration Editor correctly represent an XmlDictionaryReaderQuotasElement property on a custom message encoder in a custom binding I'd like to have Reader Quotas display in the editor with all its properties read/write, as usually seen on a standard binding or message encoding; instead I get a read-only property that displays only the type of the element. I'm using the GZipMessageEncoding binding element from the SDK with a few changes. The config as shown below works when the configuration is applied to the binding element, but it would be nice to have the editor show the Reader Quotas property correctly. <customBinding> <binding name="compressedBinding"> <gzipMess ...Show All

  • SQL Server Transaction Log does not truncate and shrink using a SQL Server 2005 Maintenance Plan

    We are using SQL Server 2005 (SP1). I have created a maintenance plan that backs up up the datebase every night. The problem is that the transaction log is continuing to grow. I have been told that a full backup will automatically truncate and shrink the transaction log. However, this is not happening. How can I truncate and shrink the transaction log after a full backup as part of our maintenance plan. Thank you. I experience the same thing as davidg12. We also do a full backup every night (including of the transaction logs!!) - using the Full recovery model. However, no truncation is being done. Please post the solution if you find one...! ...Show All

  • Windows Forms Resizing and rescalling Forms

    Hello, I have in my project a form with several buttons and ~20 PictureBoxes loaded with some images. How I can resize and rescale the whole form (by pulling right bottom corner of the form), so I can get all components, images, fonts... everything inside resized and scalled proportionally. For example if I make the form twice smaller I want to make all images to schrink twice, fonts to become twice smaller, buttons.. everything to be scalled down proportionally. I'll be very thankfull if you can bring me some sample code. Thank you Best regards Hello, You're kidding I guess... Anchors are used to keep the distance constant to the selected borders. When you SCALE the form you should CHANGE this distance proporti ...Show All

  • Visual Studio 2008 (Pre-release) How to turn off anti aliasing for small text?

    Anti aliasing small text tends to make the letters look blurry and indistinct. I cannot find a way to disable the anti-aliasing of text in WPF and as a result label or button text looks really bad. Ideally I'd like to disable anti aliasing globally for font sizes below a certain size. How can I accomplish this -Ryan rfuller987@hotmail.com I personnally love ClearType. But not the one that WPF uses... On my PC, it seems that WPF does its own ClearType rendering because text rendered by WPF is *not* the same as text rendered by Windows XP with ClearType. Here's a screen shot showing what I mean: http://pages.videotron.com/pbourque/ClearTypeXPvsWPF.png To my eyes, Windows XP's ClearType text is smoo ...Show All

  • Visual Studio 2008 (Pre-release) Supporting Readonly Properties

    I have a problem with these... In fact, we often use readonly properties referencing other domain objects. It works well with DLinq when it comes to retrive data from the db and for insertions. On deletion, however, DLinq seems to try to dettach an entity from its related entities (even if on the left side of a n:1 relation) thus requiring a Set assessor which we lack : Bug. Ok, so searching the forum I read a workaround that proposed to map a protected field and expose it a public readonly property as are design requires it. But DLinq doesn't seem to want to map any of field to other entities... It's kind of a hard sacrifice for us to accept to add setters implementations because it's not the in the properties signature, and mainly : the ...Show All

©2008 Software Development Network