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

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

andyfraser

Member List

Blast
bobo224
shinji360
Bob Rossi
ropley
Luiso
qzam
JohnFromNwPA
Peter Larsson
David S. Anderson
Alex Dresko (MVP wannabe)
Tintivilo
Antonio Alfaro
PedroCGD
SanderG
Alexei_shk
Hollispj
IGiberson
sebastian.gantzert
mcrisf
Only Title

andyfraser's Q&A profile

  • Windows Forms remove control KeyDown

    Hi together, I am hosting a custom designer and I have several controls in design time (on my DesignSurface). Now I want the user be able to remove a control via the delete or remove key (like VS does in design mode). So I thought I can do something like this: ctrl = _designHost.CreateComponent(typeof(Button)) as Control; ctrl.KeyDown += ..... But the event is never fired. Even if I add an click event its not fired in design mode. What can I do to solve my issue. Is there a special service which can handle this Cheers, Franz I do this process using the IMessageFilter interfase. On this way, you can 'detect' the key that was pressed and do anything. public partial class HostForm : Form, IMessageFilter ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Phong is just gouraud

    I am testing lighting on a landskabe. Doing so, I wanted to use ohong shading, but aparently the phong is just gouraud. http://www.greenleaf.dk/public/phong/phong.html is a page with my landskabe with and without normals with the different shadings. It is quite obvious that phong is being rendered quite non phongish. In the example scene the light is comming directly from behind the camera. I am using managed dx with vs2005. I did not install the sdk this time, but only the managed redistributables. That has not given me any problems before though. What would cause the phong to not work Usually I do install the sdk. Currently I do not, since I was testing the dx operation on systems without the sdk. It wo ...Show All

  • SQL Server Truncation warning, how to reset data flow columns

    I keep getting a waring: [Production IDW [1]] Warning: Truncation may occur due to retrieving data from database column "Industry" with a length of 16 to data flow column "Industry" with a length of 8. When I look at the industry lookup table the column size is 50. But the data flow metatdata is saying the oclumn is 8. How can I change the data flow column When I try to edit it and click on metadata it is uneditable. The field it is matching to is 50 and the field it is coming from is 16. I am assuming this is an OLE DB Source component. Right-click on the component and select "Advanced Editor..." You can change the column metadata from there. -Jamie ...Show All

  • Visual Studio Express Editions Absulute Beginner's Video Series RSS Reader Project - ConstraintException

    When I programmed the Rss Reader I get a ConstraintException error for the NewsItemID at the Update() method when running the refreshRssFeed. Only one record is stored and when storing the second it seems that the NewsItemID is not being incremented. If I click the refresh rss again I get the exception on the next consecutive NewsItemID and another record is stored. I can continue storing this way one record at a time. I have put the Update() method in a try/catch block with a message box displaying the exeception. Further testing reveiled that it only gets the exception when the NewsItems table is initially empty when the program loads. I then used the downloaded code from the author and deleted the records in the NewsItems table and c ...Show All

  • Visual Studio Tools for Office Creating ActiveX Control

    I'm not sure if this is the right forum for this but didn't know where else to post it. If there is a better forum, please let me know. I'm creating a custom control in C# which will be used in InfoPath 2007. For some reason I am having a hard time trying to get the data binding piece of things to work correctly. Has anybody successfully created an ActiveX control and imported it into InfoPath (2003 or 2007) If so I was wondering if you could tell me what I may be missing in all of this. I am able to get InfoPath to recognize the control but every time I add the control to the control panel I am unable to bind it to anything. Thanks for any help you can give me. Code post below: using System; using System.Collections; using System.Collec ...Show All

  • Visual Basic panel.control.add

    if i do: panel.control.add(control1) panel.control.add(control2) panel.control.add(control3) ... several times then do: dim ctrl as control for x as integer = panel.control.count-1 to 0 step -1 ctrl = panel.control.item(x) next should things come out in the order they went in eg: panel 1 panel 2 panel 3 panel 1 panel 2 etc... i dont seem to be getting that... Thanks! Dan i agree im doing something goofy...is there an easy way to set a watch so i can see all the items in a particular panels controls without having to type each one out individually ex: instead of panel.controls(0).text panel.controls(1).text panel.contro ...Show All

  • Windows Forms How to programmatically "mark" a Binding to be "dirty?"

    OK, I have been fighting with this all afternoon. Is there a way to inform a binding on a textbox that the data in the textbox is "dirty" and this binding will need to be processed in the next call to EndCurrentEdit(), even if the data is not actually different. Thanks for any input, Matthew Belk, BizSpeed Matthew, This isn't specifically what you asked about, but maybe the info will help. I'm just not 100% sure exactly what you're asking, so please accept my apologies in advance if what I'm saying is something you already know: Data in a DataRow has several different versions. First, there's the original version. Then, when it's being edited, it becomes a Proposed version and onc ...Show All

  • SQL Server Cannot create linked server

    I posted this in the Data Access forum already - may have been the wrong place... I cannot create a linked to a MySql database in Enterprise Manager. Here is the relevant info: Trying to create a linked server on a SQL Server 2000 Standard Edition Service Pack 4 running on a Windows 2000 Standard Edition server. The MySQL server is running on Red Hat - not sure of the DB or OS version. However the DSN I created connects to the server correctly. I can connect using any of the MySQL tools. I am using the latest ODBC MySQL drive 3.51...Here is the Provider string I am using... DRIVER={MySQL ODBC 3.51 Driver} ;SERVER=192.168.1.99;DATABASE=bug_tracker; USER=UserID ...Show All

  • Visual C++ Depricated Functions

    Hello I have just now ported my VC 6.0 to Visual Studio 2005. I am facing with some crashes in my application. The place where i am finding this is the depricated functions,specifically now i am facing an error with strcpy. I dont know y it is crashing..can anyone please help me on how do i work with the depricated functions. Thanks & Regards, Ravi Kanth Does anyone have the list of all the deprecated functions in the format <Old function> ... < New function> If you have alink also please forward it. Thanks, Ravi ...Show All

  • .NET Development Web Service Performance Questions

    hello there i am developing a smart client application which will retrieve reporting data from web services when online. im concerned about performance issues here as some of the reports can contain lots of information so the encrypted data being output by the web services might get quite large. 1. should i be worried about performance when using web services for this task and if so is there any techniques i can consider to increase performance 2. i was considering using strongly typed datasets. i realise they are more bulky than their counterparts, but there are also advantages for me. will the performance difference be negligable over a web service or should i be wary of using strongly typed datasets thanks a lot. ...Show All

  • SQL Server Replacing data in a string

    Hi I have a table with unique data in but it has been inputted, below is an example of the data 6331245073 638 535 0797 7023593578 ID Number 650 379 4428 OCA8 9F 32 ocb92w153 vh235704 I need to strip out the all letters and spaces so it will look like this: 6331245073 6385350797 7023593578 6503794428 ect.... Thanks Rich Hi Rich, You need to create a scalar function to do this. Here is an example: CREATE FUNCTION FormatString ( @input VARCHAR ( 100 )) RETURNS VARCHAR ( 100 ) AS BEGIN    DECLARE       @character CHAR ( 1 ),         @newstring VARCHAR ( 100 ),         ...Show All

  • Visual Studio 2008 (Pre-release) Forcing refresh of a Window object

    Hi at all I want to ask, if it is possible to force a repaint on a wpf Window object With WinForms there is possible to call Refresh() on a Form object. Is there a similar method to do this on the Window object Thanks for answering. InvalidateVisual() is probably the closest equivalent. But, I'm not sure why you would need to do this. Especially on the Window . Can you describe your scenario a little more ...Show All

  • Windows Forms Makecab ddf file contains umlaut

    Hi, I wrote a project which will download a cab file from the web and extract (extract utility) and replace the files on the local machine. So before replacing the files I make a cab of the old files with makecab utility. For this i use a ddf file and makecab with the option /f and the ddf filename. The problem is that whenever the file name contains any umlaut character the makecab displays an error file cannot be found. But if i save ddf file again in ASCII format and then try making a cab it works. But i cannot do this as certain characters cannot be represented in ASCII and i cannot avoid the umlauts as I am working in germany, where umlauts are comman. Is there any solution to it. The project is in VB.Net 2005. Tha ...Show All

  • Visual C# Window message without creating a form?

    Hello, Do I need to create a form just so I can have a handle I want my application to listen to window messages but it actually has no forms. It seems a bit wasteful to create a form just to listen for window messages, cant I give my entire application a WndProc function I'd like to use the bare minimum resources to do this. The form will have nothing on it so I think the best way would just be to use CreateWindow() but I'm not sure what else I need to use this, or how to create a WndProc function for it. Is there any basic code examples for creating a window using purley the API [ StructLayout ( LayoutKind .Sequential, CharSet = CharSet .Unicode)] public struct WNDCLASSEXW { ...Show All

  • Visual Basic using/calling/importing a vb.net function to vb6

    just curious, is there anyway to use/access/call a function made in vb 2005 to vb6 there are some functions are are only available in vb.net and the old app i'm adding a function for is in vb6 so migrating immediately is not an option. i found stuff regarding this on msdn Article ID: 817248 but this was only for .net 2002 & 2003 and .net framework 1.0. if there is anyway then i'd appreciate the info dave. KB article 817248 applies to VB 2005 as well. You can find a bunch of other articles on the subject here http://msdn2.microsoft.com/en-us/vbrun/ms788241.aspx ...Show All

©2008 Software Development Network