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

Software Development Network >> Peter Peng's Q&A profile

Peter Peng

Member List

protovision
Ricardo Francisco
programmer01
D--
Seif Ibrahim
dustinto
Peter Freeman
Peter Feigl
rayms
Jassim Rahma
boran_blok_edan
Personal Information Withheld
GeorgeMohr
Khenat.Ram
a_takavci
stang4lyfe
Peter Wellington
Ignatius V Ignatius
Yelnik
RWF
Only Title

Peter Peng's Q&A profile

  • Windows Forms Controls move differently when scroll bars appear

    I have some controls I am creating at runtime within a panel....when i click my buttons the controls is created in this format equally spaced between them control1 control2 control3 when the scroll bars become visible and I scroll down the the most recent control that was created.....and try to create another one....the controls is spaced waaaaaaayyy further than its set to do......... I know this because if I just add controls without moving the scroll bar at all they line up nicely and no extra spacing is added but if i move the scroll bar the controls spacing goes crazy........Is there a property that keeps my controls the same with or without the scrolling of the scroll bars..... MyControl.Top = ( this ._MyList.Count ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Spacewar Starter Kit - Fullscreen

    In the Spacewar Starter Kit, how do I get the Fullscreen working on the first run Thanks all Ronan I`ve placed the code: graphics.IsFullScreen = true; in many places, but still can't make Fullscreen work. In the SpacewarGame.cs there is these tow codes, private bool justWentFullScreen; and private void ToggleFullScreen() that I think should be the ones responsible for the Fullscren, but, still, I got no idea how and where I`m suposed to make the changes. Plz help Ronan ...Show All

  • Visual C++ Network Programming

    Hi guys, I have to work in Visual studio 6.0 . I am new to Visual C++ programming. I am working on a project that requires communication between PC and Microcontroller. I have to built a TCP/IP stack in microcontroller. I think my Microcontroller would be a server. I don't know what i have to do on PC side. Do i need to implement TCP/IP protocol on PC side as well OR I should work with STREAM SOCKETS OR DATAGRAM SOCKETS. What kinds of library packages should I use to achieve this. Winsock (windows socket 2), CSocket or other I found much information on the net but I don't know which method is gd for me. Bye Note that most people here tend to be more interested in helping to explain or help troubleshoot s ...Show All

  • Visual Studio 2008 (Pre-release) How to add forms in dockpanel(Framework 3.0)

    Hi there, I wanna add forms in a dockpanel, with the sense to have dockable windows, like, as we have toolbax, properties window, output window in VS2005. These are hidable, closeable, moveable, etc. How can this be made with forms in a dockpanel using framework version 3.0 -Good day- You can't add forms to the dockpanel, instead you need to recreate all the functionality of the forms. For example: inherit you dockable window from the HeaderContentControl, add Thumb, override OnMouseDown\Up, OnMouseMove of the header to change the locations, add close, hide buttons etc... ...Show All

  • SQL Server Transaction

    how can with in transaction execute statment1 and statment2 then rollback transaction but statment2 not rollback You are asking for something like autonomous transactions which is supported by Oracle. This is not possible to do in SQL Server currently without establishing different connection to the server via loopback mechanism. So in your case, you would execute statement2 in a different loopback connection using extended SPs or CLR SPs (in SQL Server 2005). Note that the transaction semantics depends on what you are doing in the statements and your current logic both server-side & loopback mechanism. Alternatively, from SQL Server 2000 onwards you can use a table variable to hold some state information during the transa ...Show All

  • SQL Server Maximum number of tables - 4^15 too big?

    Hello people, I might sound a little bit crazy, but is there any possibility that you can incorporate 1,073,741,824 tables into a SQL Database I mean, is it possible at all There might be a question of where anyone would want so many tables, but i'm a bioinformatics guy and I'm trying to deal with genomic sequences and was coming up with a new algorithm, where the only limit is the number of tables I can put into a Database. So, can you please advise if its possible to put in so many tables into a SQL database Or is the Bekerley DB better SQL Server DB forum ( http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=93&SiteID=1 ) might be better for such questions. According to http://msdn2.m ...Show All

  • Visual Studio Express Editions problem with property

    Can somebody tell me, why my compiler deosn't want to eat this: class Foo { public : float x,y; property float time { float get(){ return x*y;}; } }; There are two other solutions, too: With the comment /clr:oldSyntax I can do like that: __value class Foo { public : float x,y; __property float get_time(){ return x*y;}; }; Because I don't want to use both /clr and /clr:oldSyntax, I'll make it the classic way with __declspec: class Foo { public : float x,y; __declspec ( property (get=get_time)) float time; float get_time(){ return x*y;}; }; ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Cannot run Release build, crash...

    Hey Guys, When i do a full build of release or debug noether of them run. However when run with visual studio express the game runs fine... Any idea how to fix this issue If it runs fine with visual studio express, then how else are you building a release / debug that is causing this problem ...Show All

  • Visual C# Edit a string?

    I would like to edit a string but I am having a little bit of trouble doing it. For example: string Mystring = "test\r\n"; I would like the string just to read "test". how can i cut the last 4 chars off Wes Payne wrote: Then Brendan Grant's suggestion is probably the best one. That way, trailing (and leading) whitespace characters, which can lead to unsightly boxes, will always get removed no matter how long the string you want to keep is. Hopefully, that's the worst you have to deal with. If there are other, special characters creeping in and leaving unsightly boxes, then sterner measures would be required. No I am only gathering the data from a stream and then posting it in a listbox control. So th ...Show All

  • .NET Development Callback Function for unmanged code in Callback to VB.NET 2005

    Hi there I am trying to call API function for a DLL that was written in C, this function takes pointer to callback function as parameter, here goes the declaration <DllImport( "FAPI" , EntryPoint:= "_FAPIEnrollmentEx@24" , CharSet:=CharSet.Ansi, SetLastError:= True , ExactSpelling:= True )> _ Public Shared Function FAPIEnrollmentEx( ByRef deviceHandle As FAPIHandle, ByVal mode As Integer , ByRef archiveHandle As FAPIHandle, ByRef userData As FAPIUserData, ByVal timeOut As Integer , ByVal universalCallback As FAPIUniversalCallback) As Integer FAPIUniversalCallback is a delegate and it's declared as following <UnmanagedFunctionPointer(CallingConvention.Cdecl)&g ...Show All

  • Windows Forms GenerateBootstrapper - real world case

    Hi; I tried to use GenerateBootstrapper for KB908002 which is an existing MS created package for the bootstrapper. I failed. So I started a service request with Microsoft on Dec 12. 4 techs and 40 days later, we finally have a solution. I will postulate that if it took that much time and had to be escalated that high in the MS support system - for an existing MS created package - that the documentation & tools for GenerateBootstrapper are totally inadequate. As to anyone trying to use it - don't . Your only prayer is to enter a service request with Microsoft and wait. thanks - dave ps - KB908002 will be updated shortly with a correct package. ...Show All

  • SQL Server Changing default directory for stored procedures

    I want to change the default directory for my stored procedures. It is extremely inconvenient for me that they are placed in \documents and settings\... I cannot find a place in the Tools where I can change it. Thanks. hi, stored procedures are not "saved" to file in your \doc & settings\ folder... stored procedures are saved in the database they have been created in.. only "queries" are saved by SQL Server Management Studio (Express as well) in that folder, and I quiet sure you can not modify that folder.. regards ...Show All

  • Windows Forms Inconsistency in System.Drawing.Color?

    I had a subtle bug in my code that boiled down to the fact I thought Color.Green has 255 as its green component value. It turns out that it has 128. Isnt that counter-intuitive Red is (255,0,0), blue is (0,0,255) but green is (0,128,0) For a real green it turns out that Color.Lime is the correct color to use. Can anyone explain why this is the case thanks, Jens-Christian Strange that .Net chooses to define this color different than most other programming/graphics platforms. I think their attempt at green is ugly :-) It would have been nice to be able to instantiate a real green color other than than Color.Lime or the bit hard to read (0,255,0). Anyway thanks for the answer. ...Show All

  • SQL Server Can't uninstall or reinstall SQL Server 2005 Dev

    Long story short: Installed SQL Server 2005 Developers Edition along with Visual Studio 2005. Everything worked as it should. Then there was a problem installing .NET Framework 2.0 Security Update. Fixed that by uninstall and reinstall of .NET Framework 2.0. Now SQL Server does not work. So I figured uninstall/reinstall. Only problem is that it WILL NOT uninstall. I have tried to uninstall manually per KB article (9009967). That doesn't work either. The error info that I'm geting is: LinkID: 20476 Product Name: Microsoft SQL Server Product Version: 9.00.2047.00 Message source: setup.rll Message ID: 50000 EvtType: stateengine\resourcemodule.cpp@ScheduleActionAction@sqls::ResourceModule::LoadStringW@0x716 I ...Show All

  • Visual Studio 2008 (Pre-release) How to drag a control from Winform and Drop it onto the WPF Control

    I have hosted a WPF Canvas into Winform. Now I am trying to drag a control from winform and drop it onto WPF Canvas. But when I dropped it onto the Canvas it doesn't fire drop event. Let me know if further clarification is required. Best Regards, ...Show All

©2008 Software Development Network