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

Software Development Network >> Martin Moe's Q&A profile

Martin Moe

Member List

Gary Pronych
Asday
JayaC
Tamir Khason
Floppy_pillow
Redmanmc
ManishaPatil
hunb
ghw123
PramodJ
Sjas
angrypilot
Dietz
Deepak Goyal
Timmy0614
Me_Alpy
Jackuline
Vishal Ghotge
Oliver 123
James Boman
Only Title

Martin Moe's Q&A profile

  • Visual C# Am i in the wrong forum with this Query, could somebody direct me to the correct one?C# convert Excel to PDF or any image format

    I have a C# application and i am trying to figure out the best way - or any way to retrive data from my excel file and convert it to a pdf file for printing. Thanks, Pam My main objective is to get the document to print wth all the current excel formatting on the client machines.. which is why i was looking for direct convert to a pdf format... but if i can even figure out how to convert to an image format like .tif, .bmp or a .jpeg i can still convert it to .pdf from there at run time... Currently i am trying to directly print it as: Microsoft.Office.Interop.Excel. ApplicationClass app = new ApplicationClass (); if (app == null ) { MessageBox .Show( "ERROR: EXCEL couldn't be started!" ); return ; //System.Windows.Forms.Applic ...Show All

  • Visual Studio Team System Using the Performance Profiler with the ASP.NET Web Application project type

    Hi, I'm currently attempting to use the performance tool in Visual Studio 2005 Team Edition IDE to run some unit tests, using MSTest, that invokes methods within an ASP.NET Web Application project type. My solution consists of three projects, domain, webui & unittest. The domain project contains a simple class that performs some basic arithmetic operations on two int values. The webui project is an ASP.NET Web Application project type using IIS. This project contains a default.aspx page that invokes the arithmetic methods from the domain class on two int values entered. The unittest project currently contains some very simple unit tests, authored in the Visual Studio 2005 Team Editio ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Two things: Shadows and Animated Meshes

    I have two different questions. I'm a C# newbie (been doing coding in various languages for quite sometime, so must of my C# issues are syntax related usually), and a 3D graphics programming newbie (though I've been doing 3D modelling etc for quite a while...up until now the apps have been doing my pictures for me) First off I made a very simple animated FBX, just using recorded keyframes and basic transformations (not going to start out trying to mess with a skinned mesh or anything!). I can load it into the content manager and view it using the basic tutorial model viewer. How would I go about cycling through the animation frames Is there an easy way to do it in GSE or is this a complicated process Also I have another little project wit ...Show All

  • Windows Forms Why does the taskbar lie???

    Ok here is the question, I have an application running in c# 2.0, the application has a main form called mainfrm, i show mainfrm from program.cs by calling Application .Run(new Mainfrm () ); So far so good, the Mainfm opens another form by using newfm.show(), the newfrm has showintaskbar set as true, so it will show. So here is the bit that windows\winforms gets wrong, when i click on newfrm in the taskbar and then click on the mainfrm window, the newfrm button is still selected in the taskbar, ie the button is still shown as depressed in the taskbar, if i then click on the newfrm button in the taskbar the newfrm form minimizes. My problem here is that the user clicks on the button to maximise/active the window, since the progr ...Show All

  • Gadgets file is .gadget but IE downloads as .zip

    I have packed my gadget files in a zip file. I then changed the name to *.gadget. The icon changed to a gadget icon and double-clicking it installs it. I then uploaded the file to my webserver and it is there are a gadget file. I then linked to it as a gadget file. When I click that link it downloads a .zip file and asks where to save it rather than downloading as a gadget file and installing. What am i doing wrong I would click OPEN and nothing would happen. I restarted and now it works. Although it adds a ".~0001" after the file and prompts with a "Not a valid gadget file." ...Show All

  • Visual Studio Team System Problems during the Deletion Project in TFS

    I tried to delete a project from Team Foundation Server (Release Candidate). I used Team Explorer--> Right click to project... but the Delete-Option was incative (could you please tell me any possible reason ). I decided to use the command deleteteamproject . I typed > deleteteamproject domain:MyServerName myProjectName and I was asked to confirm the deletion. When I typed Y (YES) the deletion process started but immediately i got an exception Note: Deleting a portfolio project may not be undone. Are you sure (Y/N) Y Unhandled Exception: System.TypeLoadException: Could not load type 'Microsoft.Vi sualStudio.TeamFoundation.Client.TeamFoundationServerFactory' from assembly 'Mic rosoft.VisualStudio.TeamFoundation.Client, ...Show All

  • Visual C# lpt port, .net

    i'm a newbie in C# developing. my intention is to write a programm that use the lpt port derictly. At this, i'm searching for an appropriate interface which is defined by the .net framework. thanks While Microsoft finally gave us serial port access in the 2.0 Framework, the lpt port still eludes us... instead you need to access native methods in order to reach it not unlike what was required to hit the serial port under 1.0 and 1.1. Take a look at this Code Project article which provides a library, code and examples for doing just that. ...Show All

  • Visual Studio Team System TF30177: Team Project Creation Failed

    Hi, I've encounter this error and can't seem to get past it. I created team projects in the past, so I'm not sure what has changed. Can anybody help Here's more info on the error: Error TF30170: The plugin Microsoft.ProjectCreationWizard.WorkItemTracking failed during task WITs from group WorkItemTracking. Explanation Plugin error text: “Could not find stored procedure 'BoxCarIdentityChanges'. ---> Could not find stored procedure 'BoxCarIdentityChanges'. ---> Could not find stored procedure 'BoxCarIdentityChanges'.” User Action Contact your Team Foundation Server administrator. Here's the log file that was generated when trying to create the team project: 2007-01-11 16: ...Show All

  • Visual Studio Express Editions Webbrowser Control with Loading Bar

    This is a relatively simple question, I suppose, but I have searched for a week across the internet and haven't found an answer nor source code that contains a webbrowser control with a loading bar, such as Firefox, IE, and other popular browsers have. Now, say I have a browser control called WebBrowser1, and a Progress Bar called ToolStripProgressBar1. How do I go about getting the progress bar to show the percent of the page loaded in the web browser control there was a topic about this the past week. implement the ProgressChanged event. This will automatically be fired when the progress of a document loading has been changed. You can then use the CurrentProgress indicator of this event to tell you how much of the document has b ...Show All

  • Windows Live Developer Forums Detecting Sent Messages

    Hi All, I am just looking for a way of detecting sent messages from the user using the Activity SDK. Is it possible , I have implemented the event to get the messages which they have recieved but now I need is a way of getting what the user is sending.  Thanks, Rob  ...Show All

  • Visual C# How to create table like structure and allow user to drag icons/images onto the cell?

    Is there a way to create table like structure(like a datagridview) on a window form and allowing the user to drag icons or images on to the cell of the form Urgent... thanks in advance... ...Show All

  • Visual Studio 2008 (Pre-release) CompositionTargetRendering vs Timeline animation

    Hi all, From a display point of view, is there a difference between operations performed by an animation timeline, and those done in a CompositionTarget.Rendering event By difference, I mean the smoothness of the animation achieved with the two approaches. In Flash, one notices a difference between animations done in onEnterFrame, vs. actions that are timer based. One can also liken this to the old practice of syncing graphics operations with the vertical retrace interrupt. So, in the WPF context, are animationclocks somehow aligned with render events I haven't noticed any differences as far as performance goes. But using the Rendering event gives you total control like you would in an onEnterFrame. The WPF storyboard animation syst ...Show All

  • Visual Studio Express Editions Delete a Selected row

    I am trying to delete a row in DataGridView with a Button from a ToolBar. I have written code to add a row with input from the user and need to find out how to delete a certain rwo that I click on and highlight. Is this possible If yes how would I go about telling the delete command which row is to be deleted Thanks. Nick DataGridView1.Rows.Remove(DataGridView1.CurrentRow) will remove the current row. To remove a specific row (e.g. row 3) you can use DataGridView1.Rows.RemoveAt(3) ...Show All

  • Visual C++ Problem with deployment (VC++ 2005)

    I have run into a strange problem with deploying applications developed using the VC++ 2005 Express Edition. After building "release" versions on my development machine, I usually copy the release binary over to a laptop and run it there (the laptop has .NET 2.0 and VC++ 2005 Redistributable packages installed, but not the development environment). Both computers are running Windows XP Professional. Now, all of a sudden, I am finding that new applications that I am developing are NOT running on the laptop after I copy the release binaries over. The error message complains about incorrect configuration... And yet, I am still able to copy my earlier applications over to the laptop and run them without any problem. As far as I ...Show All

  • Windows Forms Best Practices Disposing under inherited controls

    Dear Sirs: Two quick questions: 1) I have a MyLabel: Control, that creates a different Font to use as default, the constructor looks like: public MyLabel() { mFont= new Font(...); Font = mFont; } Question: should I override Dispose(bool) from Control and call mFont.Dispose() Or that will be taken care of by Control 2) To speed things up, I cache a LinearGradientBrush (mBrush), and create a new one when ReSizing, instead of doing so in OnPaint. Should I call if (mBrush !=null) mBrush.Dispose() before mBrush = new LinearGradientBrush(...); whenever I have to recreate the brush Thanks Daniel (a newbie at Disposing matters) "Question: should I override Dispose(bool) from Control and call mFont.Di ...Show All

©2008 Software Development Network