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

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

edsela

Member List

QuantumMischief
Randal Greene
DaveDB
iceshadow625
Chronusus
Dylan Smith
auto
Fatboy15
nithinraj
DaGlow
Trisk2
Brian Rosenfield
Joao Pinto
JCJCJC
Go4More
Smalldust
windowsxp168
vibha504
ScottyWakefield
NoEgo
Only Title

edsela's Q&A profile

  • .NET Development Delegate Keep alive

    Hi, I have a problem with using delegates with pinvoke. I have a delegate for a reporting function that is required for the lifetime of the application. The callback works for the first time and after that if the dll reports any error I get an access violation exception. This is because the delegates gets collected. Any suggestions on how to avoid this error Thanks! For all the wrapper functions the DllImportAttribute CallingConvetion is set to StdCall.The header files do not specify any calling conventions for the functions nd I am not aware of what the default is. The callback function is a member of a struct. The struct is [StructLayout(LayoutKind.Sequential)] public struct Callbac ...Show All

  • Visual Studio 2008 (Pre-release) Remove Window Border Completely

    Is there anyway to completely remove a Window object's border If I set the Window.WindowStyle = WindowStyle.None, there is still a "border" around the window which is rather annoying. Thank you, Jaco It might be a Windows XP issue. I don't have a Vista machine to check but both CanResizeWithGrip, and CanResize have the same result in XP and I see no grip. However, there is a CanMinimize so you can at least enable that Bill. Why there isn't another enum option for CanMaximize I have no idea. ...Show All

  • Visual Studio Can't debug threads anymore

    since a couple of days, I am unable to debug inside threads with Visual Studio 2005 Something simple like below, leads to the effect, that the first breakpoint inside the thread function is hit, and when I step over, the program throws an C++ exception which is not catched by managed code, disassembly of the exception location is below the code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Threading; namespace WindowsApplication60 { public partial class Form1 : Form { private Thread myThread = null ; public Form1() { InitializeComponent(); myThread = new Thread ( ne ...Show All

  • Windows Forms Emulating Form.ValidateChildren for a TabPage

    I know that a Windows Form object has a ValidateChildren() function. I'd like to create similar functionality for a TabPage, as if I could say: If myTabPage.ValidateChildren() SaveMyData() End If This would fire the Validating event for each control on the TabPage. I know I can have code like this: For Each c As Control In myTabPage.Controls ' Fire the Validating event for the control Next The issue is, how do I fire the Validating event for each control Or, is there an easier solution The Control type has a private NotifyValidating() method that runs OnValidating() which fires the Validating event. It is a private, that poses a bit of a problem. Reflection can bypass this restriction. It is ...Show All

  • Windows Forms Rescale Form

    Hello, How I can rescale one form (change the size of the form and magnify/shrink the content inside). Especially if on the form are multiple PictureBox. Thank you Best regards This is the common answer to this question, but it isn't answering the question that is asked. What's really being asked is not to re*size* the controls - it's to re*scale* them. That is, not only does the control shrink, but so does the text on it, and images, and child controls, etc. So it's like you're actually zooming out. .NET does not provide a way to do this, although it can definitely be written (it's hard, but can be done), because this is an inherently OS dependent feature. Vista does it, but Vista was built to do it. Incidentally, Media Cen ...Show All

  • SQL Server The scripts in the store procedure run slowly, but quickly when executing in the Query Analyzer

    Hi, When i call the procedure sp_jysczld_new from the Query Analyzer, it runs slowly. But when i extract the sql scripts from the procedure sp_jysczld_new, it runs quickly. Why I don't understand. store procedure sp_jysczld_new: -------------------------------------------------- SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS OFF GO CREATE  PROCEDURE sp_jysczld_new @gs_userid CHAR(16), @location char(10), @pri char (10) AS SELECT Z.ORDER_NUM,ZI.ORDER_ITEM,Z.CUSTOM_ID,ZI.PRODUCT_ID,ZI.PRODUCT_NAME, ZI.LENGTH,ZI.CDGC,ZI.HEIGHT,ZI.L_HEIGHT,ZI.U_HEIGHT,ZI.CATEGORY,ZI.COLOR_ID,ZI.SGQTYS,ZI.plannum, ZI.totalwgt,        ZI.banglong,ZI.bangzs,ZI.qgzs ,ZI.BANG_GRADE,ZI.PRI, ZI.LOCATION,Z.END_DATE, ZI.NOTE ...Show All

  • SQL Server sql server

    I need to subtract the results from two stored procedures and place them into a variable. I have tried using AS and the system barks. What are my options Are there wizards to help Thank you for your time Steve Scheberle Steve: See if you can transform the stored procedures into inline functions or table functions and using the functions for your process. ...Show All

  • Visual C# Memory Usage

    Why is it when you click on a forum with just one button that does nothing, the memory usage keeps adding up. Any program in c# so far I seen keeps adding o the memory usage. Ctrl alt del to see the mem usage of any program. I am making a game and if it keeps increasing like that it will eventually make the computer not be able to handle that much usage. Any ideas I dont think it is memory leaks in my programming because it does the same on a basic applacation with a single button on the form. There is an article about memory usage here: http://msdn.microsoft.com/msdnmag/issues/06/11/CLRInsideOut/default.aspx ...Show All

  • Visual Studio 2008 (Pre-release) VS2005 Orcas (???) release and feature complete

    Can anyone in the know answer the following questions for project planning purposes: 1. When is a feature complete version of Visual Studio for .Net 3.0 & Vista expected 2. What is the release date Thanks You'll probably find the best answer to your question in Scott's post. (hint: check the summary section) http://weblogs.asp.net/scottgu/archive/2007/02/08/my-first-look-at-orcas-presentation.aspx ...Show All

  • Windows Forms Maximum number of controls on a form

    Is there a maximum as to the number of controls that can be on a form I have a tab control on a form with seven tabs and at least 50 textboxes on each tab and the IDE seems to have trouble handling it. Thanks, cj Well, although it is discussed before, I'd like to make some summary since the thread looks out of order. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=770632&SiteID=1 I think there IS a limit on the maximum number of the controls because the system has the a limit number for GDI handlers. This value is stored in registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\Windows\GDIProcessHandleQuota DONT change this registry value greater than 16, ...Show All

  • Visual Studio 2008 (Pre-release) Hosting a WCF Service in Windows Service? Advice/tutorials needed

    Hello, I'm just getting into WCF and would like to host a WFC Service inside a Windows Service but I can't quite figure out how. I can successfully create and use each part independently but merging the two eludes me. I also haven't been able to find any quickstarts/tutorials for this type of approach, although I have seen quite a few posts in this group from people who say they have done it. So could someone provide some guideance as to how this is done Perhaps some links to tutorials or best practices Thanks! Keith Keith, This issue already was discussed in the links below: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=446268&SiteID=1 http://www.issociate.de/board/post/ ...Show All

  • Windows Live Developer Forums Windows Live Contacts Gadget beta release!

    I'm pleased to announce that the Windows Live Contacts Gadget has been released to beta! The Contacts Gadget allows end users to access their Windows Live (Hotmail + Messenger) contacts in the context of third-party web sites, and use those contacts with the web site. It's easy to add the contacts gadget to your web sites - just reference the .js files on dev.live.com, copy one channel.htm file to your web server, and write a little code to construct the contact gadget and respond to its callback events. More details can be found here: http://dev.live.com/contactgadgets I'll be posting articles and code samples over the next few days on my blog . If you have any questions, feel free to ask! -Danny Hmm. Not sure w ...Show All

  • SQL Server foreign characters are not being imported into the table correctly

    hello everyone, i have few fields that contain foreign characters with diacritic marks which are not getting imported correctly. below is the import format: - File type: ASCII - Row delimiter: carriage return and line feed {CR/LF} - Column delimiter: Tab - Text qualifier: None Please advice. Here is the errors i'm getting: - Executing (Error) Messages Error 0xc02020a1: Data Flow Task: Data conversion failed. The data conversion for column "Country_str_local_long_name" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.". (SQL Server Import and Export Wizard) Error 0xc020902a: Data Flow Task: The "output column ...Show All

  • SQL Server Cannot perform a differential backup for database

    hi seniors , I am running sql server 2005 under details Microsoft SQL Server 2005 - 9.00.3033.00 (X64) Copyright (c) 1988-2005 Microsoft Corporation Standard Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 1) When i attempt to take differentail backup i receieved following message "Cannot perform a differential backup for database "abc", because a current database backup does not exist. Perform a full database backup by reissuing BACKUP DATABASE, omitting the WITH DIFFERENTIAL option. [SQLSTATE 42000] (Error 3035) BACKUP DATABASE is terminating abnormally. [SQLSTATE 42000] (Error 3013)." when i search this msg on net than i find that it is microsoft bug 863 so i found hotfixes about t ...Show All

  • Visual Studio Express Editions table layout panel help

    hi y,all I have a table layout panel 8x8=64 squares how do I initialize the panel so I know the x y position of each square... how do I move from square 1to square 7 for example.... if I want to insert a pic in a certain square I need to know the position..... you know what I mean...... please give me a code example.......thank you cheyenne , The following code example demonstrates how to override the OnCellPaint method to create a custom appearance for a cell. For an example that uses the TableLayoutPanel control to create layouts that respond well to resizing: Public Class DemoTableLayoutPanel Inherits TableLayoutPanel Protected Overrides Sub OnCellPaint( _ ByVal e As System. ...Show All

©2008 Software Development Network