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

Software Development Network >> Christian Hayter's Q&A profile

Christian Hayter

Member List

MikeTomkies
nhaas
Mark A. Richman
CSharpDeveloper
madhurieerupula
kawing0510
GMS0012
AlexBB
Nick Port
Ed Mundorf
Stormin Norman
Jackobolo
arturm
Llorean
Learning VB
rayou
Darkside
Tom25
hazz
dmbrubac
Only Title

Christian Hayter's Q&A profile

  • Windows Forms Proper way to invalidate using a Region

    Hello, I have a user control that uses a graphic path to draw itself. The control just draws a line with two points. The user can grab on of the points and move it around to change its location. While the user is moving the point, the control is supposed to re-draw itself so the endpoint of the line will be attached to the mouse. This works fine when I do an Invalidate() on the control, but it flickers, so I want to only invalidate a specific part of the control. I'm doing a Invalidate(new Region(_InvalidatePath)); Where _InvalidatePath is is the the combination of the path I just drew and the new path that I want to draw. I get left over garbage on the screen and I don't get a line between the two points. I'm certain I'm ...Show All

  • .NET Development WebClient And WebRequest

    Hi,   I'm using WebClient for simple HTTP operations. "The WebClient class uses the WebRequest class to provide access to resources" - that's what said in MSDN help. While debugging a code that uses WebClient, I noticed that one of the non-public members of the instance is something like 'm_webrequest' of HttpWebRequest type.   Does anyone have an idea how to get the data stored in this member Actually, I need to get the exact request uri sent to the server. Is it possible with WebClient     Thank you Hi, You can use, WebClient's QueryString, BaseAddress properties and more like ResponseHeaders, Headers, Credentials etc. Please go through ...Show All

  • Visual C++ Linking between two projects

    //Project one: test (Class Library) //header file: test.h #include <iostream> namespace test { template < typename _uintX, class dum = dummy> class CTest { public : typedef _uintX uint_type; CTest(); CTest(uint_type value); uint_type testfunction(uint_type value); }; class dummy { public : dummy(); }; } //cpp file: test.cpp #include "test.h" template < typename _uintX, class dum> test::CTest<_uintX, dum>::CTest() { std::cout << "Constructor Called" << std::endl; } //Project two: testApp (win32 console application) //testApp.cpp #include "../test/test.h" us ...Show All

  • Visual Studio 2008 (Pre-release) HierarchicalDataTemplate and multiple ItemSources

    Hi I have a class structure conceptually similar to the following that I'd like to be able to display in a treeView using an ObjectDataProvider and HierarchicalDataTemplates public class MyContainer { private ObservableCollectionWithPropertyChanged<Person> m_Contributors = new ObservableCollectionWithPropertyChanged<Person>(); public ObservableCollectionWithPropertyChanged<Person> Contributors { get { return m_Contributors; } set { m_Contributors = value; } } private ObservableCollectionWithPropertyChanged<KeyQuestion> m_KeyQuestions = new ObservableCollectionWithPropertyChanged<KeyQuestion>(); public ObservableCollectionWithPropertyChanged<KeyQuestion> KeyQuestio ...Show All

  • Windows Forms msi under windows 2003 server

    Hi, I tried to install the new Windows defender beta 2 on my server computer, but got this error message. the windows installer service could not be accessed. this can occur if your running windows in safe mode, or if windows installer service is not correctly installed. contact your support personal for assistance. Can you guys help me with this one. And I updated my msi to the current version. This group is for the development of windows forms applications you will need to go to the windows defender site and follow their support links for help. You may find some general help here on the topic, but contacting the correct support people will give you a better answer. For a quick suggest ...Show All

  • .NET Development DataReader Loop and Dataset Question

    I am looking for the best way to do this very common need of getting data from one table to another. Both tables are in sql server 2000, different databases. I am opening a SQLDataReader (for performance), then need to load them into a Dataset. From the Dataset there are SQLCommandBuilder and SqlDataAdapters available to give correct INSERT/UPDATE syntax for the destination table (on a seperate instance of SQL Server 2000) I got the data in the reader, opened the needed objects to pull the data over. I dont want to loop through every row of the DataReader because the schemas are the same (between source and destination table). How can I load the DataReader into the DataSet that is connected with the SQLDataAdapter without ...Show All

  • SQL Server User Prompts

    Hi guys I have been asked to develop a query which when run will prompt the user to enter the number of months before runnin the query. I know we can do this in MS Acess . can we do the similar sort of thing in SQL as well My query is SELECT DHBMappingTable . [DHB Name] , Agency . DHB_service , PurchaseUnitMappingTable . PU , PurchaseUnitMappingTable . PU_name , SUM ( [NMDS Data for IDF Report] . [Number of caseweighted discharges] ) AS Expr1 , AVG ( wies2 . [0607_cwd_WIES11] ) AS Expr2 , AdmissionMappingTable . Admission , wies2 . Admission_type FROM DomicileCodes In the above query, I need to multiply "0607_cwd_WIES11" with the no. of months Lets say if the user is bein ...Show All

  • SQL Server Unable to use SQL Express wizards to export, import

    I am using SQL Server v8.0 Enterprise Manager and I have been trying to export a database and a table. But no matter how many times I try I keep getting error messages. It just wont let me make a backup of anything. Ideally I would like to make a backup of a table from within a database. Then restore it but use a different file name so I can have a sandbox with which to test something out. When using the Export wizard the destination server is local using Windows authentication. Here is the error I typically see: Error Source: Microsoft OLE DB Provider for SQL Server Error Description: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. Context: Error during initialization of the provider. I only have one bo ...Show All

  • SQL Server Strange package startup/execution slowdown

    We seem to be having a rather strange issue. We just finished migrating from 2000 to 2005. I've been working on converting packages from DTS to SSIS. Everything has been going well in testing, but a problem has shown up going into production. The first package I deployed ran significantly slower on the production server, going from about 7 seconds to 90 seconds. The production server is much more powerful, so this was rather confusing. The major difference is that the server is running 64 bit. After searching around, I haven't found much that is helpful. To test things out, I created a blank package that does absolutely nothing. All it contains is a single connection manager (OLE DB). Executing this package takes 45 seconds. ...Show All

  • Visual Basic LEFT string function

    This is how you would use the LEFT function in VB6 ... str1=LEFT("This is a typical string",4) Can you still use the LEFT string function in Visual Basic 2005 I can't seem to get it to work. Hi, John, (My apologies for not seeing this post earlier -- for some reason, it's showing up in the middle of the topic in my browser, even though it's actually the most recent post.) Just to be clear -- this isn't a bug, it is totally by design. The behavior is not unique to VB2005, as both VB2003 and VB2002 do this as well, and it is not a VB issue either, as any other scoped language would exhibit this behavior. This is simply following the law of scoping -- if you're coding up a method in ...Show All

  • Windows Forms Exchanging panels

    Hi I want to exchange panels on a form - i.e. add/remove to a form. Is it possible to create/design these panels with the designer Thanks ...Show All

  • SharePoint Products and Technologies remove culums

    Hi we have created lots of columns in a custom group. We now want to get rid of those. Is there a way to remove them al @ once. Where do the columns 'live' in sharepoint. tnx The columns live in the SQL Server database but it is not recommended that you mess with the database in any way. With that said, there is no way to remove multiple columns at one time from a list. ...Show All

  • Windows Forms Problem in visual inheritance

    I'll try to keep this simple. Scenario1: I have a BaseForm and created a Label Control naming "Label1" in it. I have one InheritedForm (inherited from the BaseForm) and also created a Label Control (other than the BaseForm) in it. I can't give the same name "Label1" to this control on inherited Form. Scenario2: I have a BaseUC UserControl and created a Label Control naming "Label1" in it. I have one InheritedUC UserControl (inherited from the BaseUC UserControl) also created a Label Control in it. But in this case I can give the same name "Label1" to this control. Why So The modifier of the Control must be "Private" or "Friend". Any reason why this was done or Is it a known bug with the visual inheritance For visual inherita ...Show All

  • Smart Device Development Can't find pinvoke dll PLEASE HELP

    I have a compact pc application written in C# running on window mobile 5.0 witch compact framework 2.0. It works ok but sometimes , Depends on the order that i call to the unmanageg function it crashes with the error "Can't find pinvoke dll ..." I found a work arround by changing the order of calls to the functions. But when I try to debug the application it always crash with the error above. Can any one help me with this. This is critically important for me because changing the order of calling to the ubmangaed functiond helped me but when I sent the installation of my software to  a customert with newer version of the window mobile 5.0 ( ver 5.1.195) The customer can not run the software because of the pinvoke erro ...Show All

  • Visual C# Delete Access Denied!!

    I'm using the codes below trying to delete files and I got an error that say I'm trying to delete a file that still being used by another process. Please help me how to check which files are being use and skip over that and delete everything else. Here is my code so far, thanks in advance. foreach (DirectoryInfo Dinfo in dirInfo.GetDirectories( "*" )) { foreach (FileInfo file in Dinfo.GetFiles( "*.*" )) { try { file.Delete(); } catch (FileNotFoundException e) { Console .Write(e.FileName.ToString()); } } } Thanks Jason i ...Show All

©2008 Software Development Network