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

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

Tadwick

Member List

Juan64
Dave Gurr
Jassim Rahma
Sam Jost
Mike Krysl
Donaghy
DevDevil
COBOLBeginner
HSBF Lewe
DmitryMS
zdrae
J Jakubik
Vítor
AlfonsAberg
devdev33
intrepid
tenchyz
Michaelo1
Fredrik Melin
NotTaken
Only Title

Tadwick's Q&A profile

  • Visual Studio 2008 (Pre-release) Unlimited LifeTime of WCF Services

    My client stops working if I leave it unattended for sometimes. I do not want this to happen. What is the way I can do I create a static field, and then create the field once and the use use for as many as I want. Here is the code: if (iCustomerInvoice == null ) { iCustomerInvoice = new ChannelFactory <Company.Common.Interfaces. ICustomerInvoiceSystem >( Binding, GetEndingAddress( "ICustomerInvoiceSystem" )).CreateChannel(); SetToken(iCustomerInvoice);//to set the token of the login for the customer! Is there a better way } I use iCustomerInvoice for the lifeTime. But this iCustomerInvoice stops working after a while. I am using PerSession. What binding are you using Here is a sampl ...Show All

  • Smart Device Development Windows Mobile 5.0 appln can run on deevice with wm 2003 Os?

    Hi, Is it possible to build the appln on WM 5.0 for pocket pc and then making it on the devices having Windows Mobile 2003 Help needed. as stated, it depends what you are wanting to access, it actually does depend on the .NET CF, since you will be using its features, unless you are doing P/Invoke. if features are unique to WM5.0 then of course it will not work on WM2003 since it is "unique" to WM5 ...Show All

  • Smart Device Development "Number"Box

    Hi, I'm trying to make a textbox that only allows people to enter numbers - when you press a number it immediately shows the actual number, not the letter associated with it. Can anyone give a code snippet or some ideas on how to do that. Edit box is available as a component within the existent MFC support that came with WM5.0 SDK. For more info, check: http://msdn2.microsoft.com/en-us/library/f7yhsd2b(VS.80).aspx ...Show All

  • SQL Server I need the following details About CDI and MS SQL Server 2005 A.Services

    Hi I need the following details About CDI and MS SQL Server 2005 A.Services Why CDI is Require What are the benefits of CDI Challenges faced to achieve CDI Process for CDI What is CDI architecture Current tools available and how MS SQL Server 2005 A.Services having added advantage on others What is feature of CDI How does adopting CDI benefit Insurance Industry This all are my quires on CDI So that I can tell my client and suggest for MS SQL Server 2005 A.Services tool for CDI PS – If you have any white paper on this Pl give us the details so we can know more about this. Thanks & Regards Rajesh Ladda what is CDI you refer to Is it http://www.cdilearn.com/ Edward. ...Show All

  • Visual Studio Team System The Correct VSEnterpriseHelper.axd HttpHandler

    Which class properly handles a VSEnterpriseHelper.axd request Regards, Sammy It's an internal class that is implemented in one of our DLLs. Microsoft.VisualStudio.Enterprise.ASPNetHelper.dll, in a class called AspNetHelperHandler. However, I have to ask -- What is it that your looking for via this class it's not a publically implemented or resuable class. Are you seeing some sort of problem wiht the AXD ...Show All

  • Visual Studio Team System Looking for a good online book to convince my manager

    Is there somebody how can give me a PDF version of the following book: 'Working with Microsoft Visual Studio 200 Team System' written by Richard Hundhausen. Part of our company is already using Microsoft Team Foundation. We want to introduce this in other departments as well. Once I stumbled on a PDF version of the book mentioned above. I printed the document but forgot to download it. I want to make this document (or a similar book) acceccible via our intranet so others can have a look at it. According to some information I found I should be able to get this document for free via my MSDN license but I cannot find it anywhere. Thanks, Arjan Sam Guckenheimer's Software Engineering with Visua ...Show All

  • Windows Forms Want to change the font and color of context menu and confirmation dialog box

    Want to change the font and  color of context menu and confirmation dialog box. How can I do that Please help me   Hi,bhavu  You said "confirmation dialog box",do you mean MessageBox If so, you cannot change this behavior of MessageBox. One solution is to derive your own MessageForm class from Form to display your message with font you want. Then call its ShowDialog method to show the form. Regards Ye ...Show All

  • Visual Basic Combo Box

    I'm trying to make text boxes fill with my database data. I have a combo box which has the users in it. However, I need to know how to make it so when you click on one of the users in the combo box, it will display the data in the textboxes. My code for the combo box is below: con.ConnectionString = "Data Source=.\SQLExpress;AttachDbFilename=C:\mydb.mdf;Integrated Security=True; Connect Timeout=30; User Instance=True" con.Open() Dim dr As SqlDataReader Dim cmd As New SqlCommand( "select * from users" , con) dr = cmd.ExecuteReader Do While dr.Read cboxusers.Items.Add(dr.Item( "FirstName" ).ToString() & " " & dr.Item( "LastName" ).ToS ...Show All

  • Windows Forms Hosting a Form within a Native app

    Hi, I'm busy trying to integrate a managed Form modeless dialog in an unmanaged native app. I'd like the dialog to maintain top-most behaviour, while allowing the user to access the main app underneath (thus the need for it being modeless.) I've looked around for a way to set my main application window as the parent for the hosted Form, but it doesn't seem obvious to me. Control.FromHandle(IntPtr) returns a null when I pass the main apps window handle. I don't really see how I can bind the handle to a NativeWindow and then use that as the parent for my Form. I just feel like I'm missing something reasonably obvious. Any suggestions I just tried using SetParent in win32 to assign the App Windows handle as the parent to t ...Show All

  • SQL Server How does sql server determine order of cascade deletes to many tables

    If have the following scenario Table A Table B fk to Table A Table C fk to Table A fk to Table B - nullable Table A cascades to table b and Table A cascades to Table C. Table B then restricts to Table C to avoid circular reference. However, the way our data is configured, the restriction from B to C will never matter when deleting from A if Table C is always cascaded to first and then B. I have done a few tests and this appears to work. I haven't been able to find any info on this, so is this order something I can always rely on Yes. There is no way to define the delete cascade happens on C before on B. By implementing delete trigger on A, you have full control as to dele ...Show All

  • Visual Studio Tools for Office Visual Studio 2005 tools for office development

    I need to develop an application which will manipulate data in an excel file.I thought of doing it with the Visual Studio 2005 tools for office development.I'm having Visual Studio 2005 professional edition.I cannot find any specified tools for office development in that.I understand that it is available with team suite,,Is it possible to dowload and intergate these tools Visual Studio 2005 professional edition Or else will I have adopt the old approach of making add-ins in C#,VC++ and iclude from the excel sheet Please help.. You can get the Tools either as part of the Team Suite, or as a "standalone" application that will integrate into your current installation of Visual Studio. Ther ...Show All

  • Visual C++ Problem with calling Directory's GetCurrentDirectory

    On my WinForms app, the following line fails to compile. Does anyone know why FYI: The WinForms app's "character set" is set to "Not set" in the project settings. System::String^ path = System::IO::Directory::GetCurrentDirectory(); The error message is: error C2039: 'GetCurrentDirectoryA' : is not a member of 'System::IO::Directory' c:\winnt\microsoft.net\framework\v2.0.50727\mscorlib.dll : see declaration of 'System::IO::Directory' .\Main.cpp(144) : error C2660: 'GetCurrentDirectoryA' : function does not take 0 arguments Hi, Could you add a form which is devoted for get current directory, then you can use: "System::String^ path = System::IO::Directory::GetC ...Show All

  • .NET Development Error in unzipping the file zip by the help of J#

    In my C# desktop application I am using following code to zip the file. public static void ZipTheFile(string sourcePath,string destinationPath) { try { java.io.FileOutputStream fos = new java.io.FileOutputStream(destinationPath); java.util.zip.ZipOutputStream zos = new java.util.zip.ZipOutputStream(fos); java.io.FileInputStream fis = new java.io.FileInputStream(sourcePath); // It's our entry in zip java.util.zip.ZipEntry ze = new java.util.zip.ZipEntry(sourcePath); zos.putNextEntry(ze); sbyte[] buffer = new sbyte[1024]; int len; while ((len = fis.read(buffer)) >= 0) { zos.write(buffer, 0, len); } ...Show All

  • .NET Development Extracting public exposed methods from a dll

    How can i extract the exposed method signatures from a dll assembly Can anyone help me out.... You can use reflection to examine an assembly. For example: //this is a class from the dll assembly MyClass test = new MyClass(); //get all public, non static methods System.Reflection.MethodInfo[] methods = test.GetType().GetMethods(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public); //display them in the debug window foreach (System.Reflection.MethodInfo method in methods) { System.Diagnostics.Debug.WriteLine(method.Name); } For a complete example, check out http://msdn2.microsoft.com/en-us/library/4d848zkb.aspx ...Show All

  • Windows Forms Remove rows in datagridview and save the dataset xml file

    Hi, I made an even handler for removed rows in the datagridview. The datagridview gets its data from an xml file. When a row is removed in the datagridview, the row should be removed in the dataset as well. This is my event handler in constructor: this.grdTest.RowsRemoved += new DataGridViewRowsRemovedEventHandler(grdTest_RowsRemoved); This is the code in that event handler: void grdTest_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e) { DataSet ds = new DataSet(); ds.ReadXml("Test.xml"); foreach (DataRow dr in ds.Tables[0].Rows) { string remove = dr["Row"].ToString(); DataRow[] temprows = ds.Tables[0].Select("Row = " + remove); if (temprows[0].RowStat ...Show All

©2008 Software Development Network