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

Software Development Network >> Eric Jensen's Q&A profile

Eric Jensen

Member List

Mark Shvarts
cjard
Carlos Silva
Andy E
chakravarthy_b
James Mayer
WII
Phil Brammer
oysts
wgwolf
OasisGames
Insider96774
nextpaco
olgaF
korenwolf
Wajdi Georges
Pat_1999
Scionwest
VBE_programmer
Mafti
Only Title

Eric Jensen's Q&A profile

  • Visual C# how to use Tag object property

    I would like to use Tag property to see which button has been pressed. I set Tag = 1, 2, 3, 4 ... 9 after that I get button’s object on OnClick(). then in a switch() but I get a cast error. private void pictureBox1_MouseClick( object sender, MouseEventArgs e ) { object dlg; switch ((int)(((PictureBox)(sender)).Tag) ) { case 1: .......... I dont know how to get integer tag number defined at design time. thanks in advance for your help Edward instead of your switch statement use the following code. it will converts object to integer. switch ( Convert.ToInt32 ( ((PictureBox)(sender)).Tag ) ) ...Show All

  • Visual C++ few questions about C++

    hi, i'm beginner in C++ and i have a few questions about it, i hope if anyone have sometime to answer me, A) about platforms : as far as i know you can write programs in C++ to run under many platforms if i have the proper compiler for this platform 1) does that make any difference in the code itself or i just need a different compilers, for example i know windows depends on events , so if i write the same program for linux , does linux depend on something else , because that will change the code completly 2) also what about the libraries , in windows its MFC does linux or Mac have something else B) about CLI : i guess there is no difference between C++ and c# here , even i guess C# is easier in this area, is that true ...Show All

  • SQL Server Value and Date filter in Excel 2007

    Hi, I am developing reports in Excel 2007 connecting to Analysis services cube. I have the following scenario Report has one Date attribute and a metric. When i apply Date filter option and value filter in Excel 2007 only one is applied to the data. Ex: If i apply date filter on Date attribute date between 1/1/2007 and 1/2/2007, data is filtered out properly but when i apply value filter i.e. metric > 100 ..... Date filter will be lost. Is there a way i can apply both filters Thanks Kiran Hello. I have tried a value filter on Internet Sales Amount together with a report filter on the Date Calendar hierarchy in the Adventure Works cube. It works on my laptop. I h ...Show All

  • Visual Studio error MSB4018: The "GenerateResource" task failed unexpectedly

    I have a Smart Device application that is generating the following errror when I attempt to build. I would appreciate any feedback in how to debug this error, or what might be a typical cause of this problem. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: The "GenerateResource" task failed unexpectedly. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e) C:\WINDO ...Show All

  • Visual Basic Converting VB6 DLL to VBNET

    I have converted a VB6 DDL, used in many Excel and Access applications, and can't use it after conversion. I have compiled using "Register for COM Interop" option and referenced the .TLB file within Access VBA. Access ends when I try to run it. I found that using object browser I can see all the Classes in the DLL. However, I can't see any of the methods of the Classes in the DLL. Can someone help me with it Thanks Thanks for your reply John. They where all marked as Public but I found more related information and had to create Interfaces to make the internal methods visible as a COM module. Working now. ...Show All

  • Visual Studio What are the limitations on evaluating expressions in 2003?

    Hi everyone, Here's what I'm trying to do: I have a lot of static/global data in a given project that I'd like to access from a type-inspection addin DLL (used through autoexp.dat). There are plenty of examples of how to add your own inspection routines, but none of them cover how to augment that output with some other data from the program. For example: imagine a string table that is accessed by index. I'd like to intercept the index type and spit out the associated string from the table. I'm pretty sure there isn't a direct way to do this from the addin DLL since I don't have an address for the global table to query. There's the VSHelper code on CodeProject that uses a VS addin and EnvDTE to query a known global memory array ...Show All

  • Visual Studio Express Editions Multiple check boxes in a listview

    How can I have multiple check boxes in a listview entry I need a listview like the one used when right clicking a folder in Windows Explorer > Security tab. Possibly something like an icon in the frst column, text in the second and check boxes in the next 3 columns. Thanks for any help. Iain Have you tried accomplishing this with a DataGridView If not, add one to the form, right click it and select "add column". You should then be able to add bound/unbound columns with images, checkboxes etc. Let me know if it works for you... ...Show All

  • SQL Server SQL Server Express Edition silently at command prompt

    I want to install the SQL Server Express Edition silently at command prompt (but want the dialog boxes, I mean with /qb option), locally, with no network options. I want to install it with following options i) In the Feature Selection, I need a) Data file (Database Services) b) Shared tools (Database Services) c) Connectivity Components (Client Components) d) Management Studio Express (Client Components) ii) Instance name as “Default Instance” iii) Service Account as “Use Built-in service account a Local System” iv) Authentication Mode as “Mix mode” with sa password as ‘sysadm’ v) Collate Settings as “Latin1_General_CS_AI How c ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Can I get the vertex data after rendered

    Can I get the vertex data after rendered, i.e. I want to transform a scene to diplay with a special way not the perspective projection, is that possible Ideally, you shouldn't need to read vertex data back from the GPU. Since your goal is for display purposes, then just do your custom calculations in the shaders. If you really think you need to read transformed vertices from D3D, then look at the ProcessVertices() method of Device/IDirect3DDevice9, but you won't get different calculations when using this method. It's only that it does the calculations on the CPU instead of the GPU, so your CPU code can read the values... ...Show All

  • Windows Forms Create icon?

    Hi I have a picture (.png) that I want to convert to an icon. This icon should support 16x16, 32x32, 48x48 px. The icon is for my form... It should be possible to have a more detailed icon when viewing thumbnails in explorer (I think it is 32x32 and 48x48 then ) How do I create this icon in .NET Is there a tool built in Kind Regards Hi No, I don't have Photoshop. I've search for free software, but I can't find a good one that converts my image to 16, 32, 48, 64 px. :| ...Show All

  • Windows Forms Sample Code: DataGridView progress bar column

    I have a column that has integer data in it, I want to display it as a progress bar in the column so the user can quickly identify lagging processes.   I just started with 2005 and it looks great but does anyone know a quick way to do this I would also like to change the color of the progress bar based on the cells value. I found in the data sources toolbox where I can change the column to progress bar but that does not pass through to the grid.   Thanks for ANY help with this Thanks! I really appreciate it. The code I posted above compiles and is pretty much a direct conversion of the C# code, but I get that error, so I must have done something wrong or am missing something req ...Show All

  • Visual Basic Desktop

    I am writing an application where the main windows need to perform like a desktop in that it contains icons for users to double click to launch the app/function. The problem that I am having is that when the user clicks on this desktop window any other open windows are hidden. How can I keep this desktop window in the background I do not want to have to set the attributes of all other windows to "Top". Hi, This seems like a strangely worded question to me. Anyway if i understand you correctly then i would suggest you use the SendKeys function to automatically SEND ALT & TAB a set number of times.   This will only work if you have a set number of windows open though. So once your user has clicked ...Show All

  • .NET Development Cannot connect to SQL Server due to error

    I've installed, with default settings, VS 2005 and Server 2005 Express and cannot get VS2005 to connect after dragging a dataadapter onto a form. There are no existing connections so I try to create one via the little wizard. After navigating to my database file and then hitting Test Connection, I get this error: Unable to open the physical file "..path...mdf". Operating system error 32: "32(The process cannot access the file because it is being used by another process." I shutdown Server 2005 and used Task Manager to terminate it, too but that didn't change anything. Any ideas Thanks. ...Show All

  • Visual C# VS2003: Fatal error CS0003: Out of memory

    Hello, We have a quite large solution, ~60 projects, VS 2003 (with or without the service pack 1 - the problem is the same). The build process runs overnight, and uses command line to rebuild the solution. Recently the build started to fail compiling some of the projects with the "Out of memory" error. As of today, this is a reproducible bug - I have a snapshot of our code, and the command line compiler (devenv.com /rebuild) fails to rebuild it. However, there is a workaround - it fails only the first time on a clean solution (no *.pdb, *.dll, or *.obj files). If I run it the second time, when most of projects have been built already, then the rebuild process succeeds. The computer has enough memory, 1G. According to the ta ...Show All

  • Visual Studio 2008 (Pre-release) SmartTag

    Hi all! Any idea how to implement something like SmartTag into your WPF application Thanks, Jan fwiw, the effect of rendering to a DrawingContext is to generate a retained graphic, despite the superficial resemblance to rendering directly to a device. You'll notice that the OnRender call doesn't get called on a redraw that doesn't otherwise invalidate the current rendering. ...Show All

©2008 Software Development Network