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

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

Focus

Member List

Muralee22
ghostface039
Sam_res03
Marcel Heeremans
traci779
tpiazza
Jacquipre
Allan Giles
JAXN
wgwolf
wheatforreal
darknessangel
werwin
Niels Flensted-Jensen
csLearner
Captain Baz
Jack.Ma
bernb
TataJanette
Mario Saccoia
Only Title

Focus's Q&A profile

  • Visual Studio Express Editions Prevent Unbound DataGridView From Adding New Rows -- and more

    I've been in VB6 for a LONG time and can do most anything I want with it but I'm just getting started in VB 2005 Express. I want to rewrite my gradebook program using an unbound grid control (thinking maybe DataGridView). When I edit a cell in the last row of my grid, the grid wants to add another row on the bottom. How can I stop this ============================================= Another option I have is to use a 3rd party control like FlexCell. Adding extra components in VB6 was easy but how do I get a new control (beyond the ones included in VB2005) like FlexCell in my VB2005 project I figured out that I have to add a reference in the Project Properties tab, but my FlexCell does not appear in the toolbox. I was able to copy a flexgrid ...Show All

  • Visual Studio Express Editions Having difficulties with a timer and an if-then statement

    Hi, been spending a lot of time on timers and they finally make some sense now. In my program there's this button. When it's clicked a shell command is executed and right after that the program needs to wait until some folder is created (by an external process). It enabled the timer and the timer2_tick sub is executed... But the other process keeps running as well. I need to figure out how to pause everything except the timer that checks every 5 secs if a folder exists until the folder actually exists... Many thanks! Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick ICounterCount = ICounterCount + 1 MessageBox.Show(ICounterCount) If System.IO.Directory.Exists(HomeDirec ...Show All

  • Visual C# Writing a 16-bit grayscale image

    I have a byte array containing pixel values for a 16bpp grayscale image. I need a solution for converting said array to a bitmap image. So far I've come up with this: internal static Image imageFromArray(byte[] array) { const int WIDTH = 1472; int height = (array.Length) / WIDTH / 2; Bitmap bitmap = new Bitmap(1472, height, PixelFormat.Format16bppGrayScale); for (int x = 0; x < height; x++) for (int y = 0; y < WIDTH; y++) bitmap.SetPixel(x, y, (Color)array[(y * 1472 + x) * 2]); Image image = bitmap; return image; } But there is an error because I can't cast the byte as a color. So my question is, how do I actually translate my pixel data from the byte[] to the bitmap Is there a better way to do t ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. OnStarting() method

    I'm going through this XNA video tutorial and I get to this part where I do: protected override- and intellisense comes up and OnStarting() method is supposed to be in the list but it isn't. I'm not sure how old this tutorial is, but was that method taken out in Beta2, and renamed, or what ...Show All

  • Software Development for Windows Vista How to use the Vista Hands OnLad

    Dear all. I do download and install the HandsOnLab. http://download.microsoft.com/download/9/e/2/9e2bb139-b8b4-40ba-99e8-2582d8c18640/WindowsVista_HandsOnLab.EXE the problems is : The Word doc references the sln file --- but where is it there are two msi files: VistaAppCompatDemo.Bad.x86.msi and VistaAppCompatDemo.x86.msi. The "bad" msi installs the LuaDemo.exe, but no source code. The other msi installs a service called LuaDemo. how to use this hands on labs need a readme please !!! Hello Polo Lee, I do see that the sln file is not being installed to the desktop (and as far as I can tell its not being installed period). I have emailed the MSDN support alias regarding this issue and I will update t ...Show All

  • SQL Server Prolonged execution for table UPDATE statement - not sure it finishes

    I am cleaning up a large database table that has Date keys instead of real DateTimes. To do this, I am running the following query... UPDATE MQIC.DBO.OBSERVATION_F SET MQIC.DBO.OBSERVATION_F.OBS_DATE = MQIC.DBO.DATE_D.ACTUAL_DATE FROM MQIC.DBO.OBSERVATION_F INNER JOIN MQIC.DBO.DATE_D ON MQIC.DBO.OBSERVATION_F.DATE_KEY = MQIC.DBO.DATE_D.DATE_KEY where Actual_Date is what is being stored, and the Date_Key is to be dropped. The particulars are this - Date_D table - 92,000 rows - 40 MB Observation_F - 20,000,000 rows - 3.2 GB This is being run on a remotedly hosted rack server with an AMD processor, 1 GB RAM, 60 GB harddisk space, 20 GB used. SQL-Server 2005 Express - SP1 If I do the same query as a SELECT statement... UPDATE MQI ...Show All

  • Visual Studio Permissions table renders without style

    When specifying a <permission /> in doc, the set of required permissions renders in the end documentation in a table, but it doesn't have the same styling as other tables (like the exceptions table), making it inconsistent and sort of hard to read. This happens in the September 2006 CTP refresh. Looks like some styles are missing in Prototype transforms. We will investigate and will provide a fix. Anand... ...Show All

  • Visual Studio 2008 (Pre-release) MasterPages in WPF

    The question I have has already been asked ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=140559&SiteID=1 ) but the answer wasn't explanatory enough to me. So, does the WPF have a concept of MasterPages similar to one in .NET 2.0 Here is what I am trying to do: - XAML browser application - left column with a navigation menu - top banner/header with a logo and another menu - and of course the content ----------------------------------- | HEADER | ----------------------------------- | | | | M | | | E | CONTENT | | N | | | U | | | | | ----------------------------------- I can see two ways how to achieve that (not sure whether they are the right wa ...Show All

  • Software Development for Windows Vista worked but now black screen on load screen ( RC1 Build 5600 )

    Here are the facts worked for a couple days, no major problems, worked pretty nicely compared to beta 2 installed these two programs on my last time working on it before it crashed - 3ds Max 7 - ITunes update have plenty of room for Vista, and its on its own hard drive when i booted recently the screen is just blank, but the build info in the bottom right hand corner is there, and is correct. I noticed a slight swaying in the color of the blank screen, but very little, making me think there is something wrong with the load screen. the blank screen isnt the login screen but the little animation before the login screen, where the windows symbol does a glow thing. Things i have tried already rebooted in ...Show All

  • Software Development for Windows Vista Custom Xoml

    I have custom Activities that i had created, one of them is an image picker, that uses an image resource manager, which stores all selected images as binaries How do i go about persisting the manager along with the activity: ImagePicker into a xoml file Thanks One possible approach is to store only image names in the manager and store the actual images in a seperate resource file. At runtime, you manager will look up the image based on a the name. XOML is not designed to store large chunks of binary data. Shelly Guo ...Show All

  • Visual Studio Express Editions Drag Objects

    I want to drag a button on a windows form, it has to move with the mouse. But i don't know how to do this. I searched Document Explorer but it's hard to find what i want. Please help... Bogas Corp Thanks! This works great! Exactly as I wanted! ...Show All

  • SQL Server Problem in creating Asymmetric keys

    I am a novice to the SQL server. I am trying to create Asymmetric key using the query CREATE ASYMMETRIC KEY PacificSales19 AUTHORIZATION dbo FROM FILE = ' C:\temp\temp1.snk' ENCRYPTION BY PASSWORD = 'ABC123!@#$' ; GO But I alwys get the follwing error The certificate, asymmetric key, or private key file does not exist or has invalid format. Can anyone please guide me as to how to go ablout creating the ASYMMETRIC KEY FROM FILE. Thanks and regards The statement you are trying is correct - this is how you can create an asymmetric key from a file. You should check that the specified path is correct and that the file is not corrupted. How did you generate that file Thanks ...Show All

  • .NET Development How can I synchronize two MS Access tables?

    Hello, I have 2 MS Access databases, In each database I have a table called catlog. What I want to do is to check the catlog table in database (B) and pass over each row to see if it (the row) exists on table (A). If the row doesn't exist, I insert it as a new row, if it does exist I update the existing row. I want to do that at the runtime of a C# program. Your help would be greatly appreciated. Hello, I tried many many different ways to substitute the path of the database with variable, but can't make it work. Can anyone help The code without substitution and works, AccessCommand.CommandText = "INSERT INTO [Catlog] SELECT * FROM [MS Access;DATABASE=C:\Test Files\db1 XP.mdb;].[Catlog]" ...Show All

  • Visual C++ Compiler Error C2666

    First of all im really new at this. Been stuck on this for a couple days. Here's the error: c:\downloads\sources hb client382\client\cximage\ximatran.cpp(185) : error C2666: 'div' : 2 overloads have similar conversions c:\program files\microsoft visual studio 8\vc\include\stdlib.h(508): could be 'ldiv_t div(long,long)' c:\program files\microsoft visual studio 8\vc\include\stdlib.h(482): or 'div_t div(int,int)' while trying to match the argument list '(long, int)' c:\downloads\sources hb client382\client\cximage\ximatran.cpp(303) : error C2666: 'div' : 2 overloads have similar conversions c:\program files\microsoft visual studio 8\vc\include\stdlib.h(508): could be 'ldiv_t div(long,long)' c:\program files\microsoft v ...Show All

  • Visual FoxPro form help

    hi! i am new in vfp now i am creating new proj and icreate form with theree grid i would like to auto increment id field (tab not to stop on this field) also when i click add buton it will refresh only parent form field ( not grid field) thanks lavesh If I understand you correctly you want the ID Field to automatically calculate the next available number, and you do not want anyone to override this number If you are using version 9.0 of VFP you can use the database container with an auto increment field type. This will automatically calculate the next number when you APPEND the database. If you are not on 9.0 then you must code this when you save a record. To stop anyone from clicking o ...Show All

©2008 Software Development Network