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

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

Bjerner

Member List

Rahul Saxena
Bartosz
Claire Salvail
logtorahul
Dirk Haest
Peter McEvoy
Jeremy Jarrell
AndyL
mAh3u
Robert Gregory Garfinkle
rabi
jods
Igor24
RMon
Lollo79
Mark Bigelow
Spenceee
Tom_Liu
Vladimir Pilich
ClydeFrog
Only Title

Bjerner's Q&A profile

  • Visual C# Simple resource question

    I am semi new to Visual C and have a question about adding resources or items. I have a program that I created that needs to read from a file. This file only contains a small amount of data. My question is, if I add an item such as a text file, is this file compiled in to the the program code or is the file external to the program Is there a better way to do what I am trying to do. My simple project just stores a number and reads the file when the machine boots to repopulate the field with the number in the file. Thanks for your help in advance, Steve Well if all you need is a simple number that's compiled with the program, why don't you just create a static variable   Because once you compile it i ...Show All

  • Visual Studio Team System Add date field for attachments in control type 'AttachmentsControl' in VSTS for WorkItem type

    Hi, I think It would be good idea to add date field for attachments in control type 'AttachmentsControl' in  VSTS for WorkItem type. Thanks,   Hi, sorry to dig this up again, but is there an update on this If not, is there any way to add a datetime field to the attachments control by making a new custom control or extending the current one ...Show All

  • Visual Studio Tools for Office This action is not valid outside of a block-level XML

    Hi I created a solution for authors to publish content on a website I created based on Word 2003 templates and VSTO 2005. You might download it here: http://www.codeplex.com/THBAuthoring Now I try to have it running on Word 2007 and get the following error when a user click on the save button or when I do in code document.Save: This action is not valid outside of a block-level XML Looking at the stack trace I have seen that it happens in Microsoft.Office.Interop.Word.DocumentClass.Save(), saying object reference not set to an instance of an object. I would appreciate any help. Thanks Yeah I have side by side because it was the only way to continue to develop and test. But I have also another pc with only Office 2 ...Show All

  • .NET Development Thread.Abort()

    I know a lot has been said about this method and I am of the firm belief that calling this method or designing my applications around this method (for clean up work) is just plain old evil. Anyway, I was wondering what would happen if the method were to be called from the worker thread itself, and the not the parent thread So something on the lines of: try { Thread doWork = new Thread(new ThreadStart(ProcessData)); doWork.IsBacground = true; doWork.Start( ); } catch (Exception) { } protected void ProcessData( ) { try { // Do Work } catch {Exception e } finally { try { Thread.CurrentThread.Abort( ) } catch (Exception) { // Do Nothing } } } My intuition tells me that this model is evil, but my mind tells me that there is nothing wrong with t ...Show All

  • Visual C# ExtractAssociatedIcon not working well for some extensions (ex: .XML)

    Hi, I am using the Icon.ExtractAssociatedIcon to retreive the icon associated with some file extensions. While the code works generally fine, it does not return the expected Icon for some extensions, say .XML for example. I have also tried the Interop route (using the WIN32 API SHGetFileInfo, etc...), and it does the same thing, which I find quite logical. I suppose this is an issue with Windows more than .NET. Has any one fixed this Thanks Congratulations. I believe you have found a bug in Windows itself. I can only replicate your problem if I'm running a console application. Windows apps work just fine. Furthermore it appears to only be a problem when the icon associated with the file type is the file itself. On ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA GSE for tools, editors

    There is a question in the FAQ that addresses non-gaming applications using XNA GSE, stating that it's possible on Windows. Can anyone expand on this -- in particular will it be possible to easily create windows applications that use the Windows Forms components as well as the XNA framework I'm thinking along the lines of editors and other tools that need both a robust GUI as well as a 3d/2d framework. ...Show All

  • Visual Studio 2008 (Pre-release) How to draw connector line between 2 shapes

    I have a WPF c# windows app and am creating custom rectangle shapes that I can drag around a canvas. My custom rectangle is actually a custom class (myShape) that inherits from Canvas. So far I can drag myShapes around the canvas and resize it by selecting the sides or corners and dragging them in or out. Now I need to connect them with lines. My first step is to just learn how to drag the end of a line and drop it on the side of myShape. When that happens I envision creating a custom port object that is responsible for holding information such as location and keeping the end of the line in that port when myShape gets dragged to a new location. Ultimately I want to create custom connector objects where I can add specia ...Show All

  • Visual C# Passing object as value

    Hi you all, rearding the following code: <code> ArrayList parties = new ArrayList (); ArrayList arrayAux = new ArrayList (); arrayAux.Add(( Point )outterPoints[outterIndex]); arrayAux.Add(( Point )innerPoints[( int )pointsInDistance[0]]); arrayAux.Add(( Point )innerPoints[( int )pointsInDistance[1]]); arrayAux.Add(( Point )getPartyCenter(arrayAux)); parties.Add(arrayAux); arrayAux.Clear(); </code> If I print the values in the parties ArrayList I wont get any values, but If I instead do the folowing: <code> ... parties.Add(arrayAux.Clone()); arrayAux.Clear(); </code> I will get the values I am expecting. Are the array being p ...Show All

  • Visual Studio Tools for Office VSTO SE - Create Spreadsheet on Server Without Excel

    I understand that with VSTO SE and VS 2005 you can create and manipulate spreadsheets on computers/servers that do not have Excel installed. I have done a lot of programming Excel with COM but am new to VSTO. I have searched various examples online but have not found just one simple example of creating a spreadsheet pro grammatically on a server that does not have Excel. The resultant application would be a console app that would run without a GUI to process and create/update spreadsheets. Could someone please list as briefly as possible (VB preferred, C# okay) how to create a new spreadsheet, update a couple cells, and then close the spreadsheet from the command line with no GUI. Thanks. Hi, You've ...Show All

  • Gadgets I don't want browser window

    I want to develop a gadget that will show definition of any word using "define:word" in Google. But I don't want result will open in browser window. I want that it will show the result in a box just below the search box. How can i do this Use an IFrame to display the page, have a look at this thread . ...Show All

  • .NET Development CREATING DATABASE PROBLEMS

    hi! i am new and heres what i try to do: I want to do an internal database where user create accounts, log in and view the information of the account! if some knows what i mean please HELP! Leo I don't know what you mean :). Ok, seriously, I do know what you mean in general, but you need to provide more information. I'm not sure what "internal" means in your description. In general terms you're talking about either a 2-tier client-server application on a SQL Server (or other relational) database, or a 3-tier web application on IIS + SQL Server (or other relational) database. If you can provide more context on what your application will do, perhaps we can help. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. debug error

    The device does not support creating a texture of the given format with the given ResourceUsage i got that when i tried to build the going beyond tut 1 i get this error .. so i made a new .x model with a texture still got the same error, then i made a model with no texture and it works fine here is a copy of the exception detail btw im sorry for the poor english ive been up too long System.ArgumentException was unhandled Message="The device does not support creating a texture of the given format with the given ResourceUsage.\r\nParameter name: format" Source="Microsoft.Xna.Framework" ParamName="format" StackTrace: at Microsoft.Xna.Framework.Graphics.Texture2D.CreateTexture(GraphicsDevice graphicsDevice, ...Show All

  • Visual Basic Array of Buttons

    I want to create rows and columns of buttons in my code using an array. If anyone know how to do this please respond. Or use the .Name property (presumably it's named something like CancelButton ), then you can change the text for the time that you need to use a different language... ...Show All

  • Visual C# System.AccessViolationException: Attempted to read or write protected memory

    I am using .NET 2.0 VS2005. I am writing a network application to allow users from other PC to talk to my application (running at my PC) to print through my printer driver. I got this runtime exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at PrintGateway.PrintEngine.OpenPrinter(String szPrinter, IntPtr& hPrinter, IntPtr pd) at PrintGateway.PrintEngine.SendBytesToPrinter(Int32 flag, String szPrinterName, String docname, IntPtr pBytes, Int32 dwCount) in E:\PrintGateway\PrintEngine.cs:line 70 at PrintGateway.PrintEngine.SendStringToPrinter(String szPrinterName, String docname, String szString) in E:\PrintGat ...Show All

  • .NET Development CLRProfiler crashes aspnet_wp

    I'm trying to use the CLRProfiler to profile an ASP.Net application. Somehow, it's gotten into a state where it crashes aspnet_wp. Running the same app without profiling works fine. The event log entries when it crashes are: Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 1000 Date: 12/7/2006 Time: 12:46:25 PM User: N/A Computer: AFORS1 Description: Faulting application aspnet_wp.exe, version 2.0.50727.210, stamp 45063b16, faulting module profilerobj.dll, version 0.0.0.0, stamp 436a3905, debug 0, fault address 0x00006860. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp . Data:.. [clipped] Followed by: Event Type: Error Event Source: A ...Show All

©2008 Software Development Network