Software Development Network Logo
  • Visual FoxPro
  • VS Team System
  • Smart Device
  • VS Express Editions
  • Visual C#
  • Windows Forms
  • Visual Basic
  • Visual Studio
  • Windows Vista
  • Visual C++
  • Architecture
  • Microsoft ISV
  • Windows Live
  • Game Technologies
  • Visual J#

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

Vincent_Yu

Member List

Gr1nch
coloso
sam8sam
RAGolko123
jojolonomo
szkeller
Voast Dev
Matteo Chiesi
Israel Alpert
Epsilone3
itskarthik1983
Sandhya
explorer
Popoi
Gary Depue
MurrayGordon
OICU812
Jim R
Mike.PD
Beniton
Only Title

Vincent_Yu's Q&A profile

  • Visual Studio 2008 (Pre-release) VisualTreeHelper

    I'm trying to get a location for button control using VisualTreeHelper .GetContentBounds function; here is my code void OnClick1( object sender, RoutedEventArgs e) { Rect mybtn = VisualTreeHelper .GetContentBounds(btn1); MessageBox .Show( mybtn.Left.ToString() ); } I get MessageBox with "Infinity" Why It's hard to tell without knowing what's inside the button. More importantly, however, GetContentBounds isn't a good method for figuring out the location of a control. First of all the coordinate system of the returned rectangle is relative to the control itself, not the parent of th ...Show All

  • Windows Forms Dreaming away.

    Hi. Here is my wish list.  I have not had the chance to check out the 1.1 beta, so it is very possible that some of these issues have already been addressed.  Also, please don't take any of this personally.   I think .Net in general and the winforms/controls pieces are great. Keep up the great work!  (The last couple wishes are ...Show All

  • .NET Development New request is not allowed to start because it should come with valid transaction descriptor.

    I have a C# windows service that uses MSMQ, DTC Transactions, SQL server 2005 and Notification services. I am doing the following in the service: OnStart Create the queue set the Peek Complete event call Begin Peek PeekComplete WaitHandle[] waitHandle = new WaitHandle[] { new AutoResetEvent(false) }; ThreadPool.QueueUserWorkItem(ProcessMessage, waitHandle[0]) Call End Peek WaitHandle.WaiteAll(waitHandle) queue.BeginPeek ProcessMessage(object stateInfo) AutoResetEvent are = (AutoResetEvent)stateInfo; Create DTC Transaction try Message msg = callResultQueue.Receive(MessageQueueTransactionType.Automatic); ...Show All

  • Visual Studio configured attribute T3 - no property on action

    Hi, In the guidance package template there is a sample recipe 'generaterepeatingclass' where a T3 action is used like this: ...   <Action Name="GenerateClass" Type="Microsoft.Practices.RecipeFramework.Library.Actions.T3Action, Microsoft.Practices.RecipeFramework.Library"                 Template="T3\Repeating.cs.t3"                 InputValue="Configured Static Value">           <!-- InputValue shows a configured attribute in T3 th ...Show All

  • .NET Development Implementing Optimistic Concurrency Control using Datasets

    I have designed a data access layer in which all the updates happen using the data adapter.update(dataset) method. The problem I'm facing is that by default the 'Last In Wins' concurrency is being done. I mean the last update is potentially overwriting all the other updates done. The requirement is to implement an optimistic concurrency approach meaning that if two users A and B have datasets of table X and if User A updates the table X with his/her dataset before User B does, then in that case, when User B tries to update the table X, an error should be raised or no rows no should be updated since the actual data in the table X ...Show All

  • Visual Studio Express Editions HELP - Win32 wont let me run my c++ :(

    i have recently been bought a book on c++ programming (learn c++ in 24 hours) and have been trying to make it work on serveral compilers no with no success. The compiler that came with the book is BorlandC++BuilderX and that seemed to work fine until i tryed to run the .exe. The Win32 (DOS) window flashed briefly and then closed again. i read up on this on several forums and decided to try Microsoft Visual C++ Express 2005, as this was meant for windows, and a couple of people seemed to think that my pc being an XP had something to do with it not working. I created a new project in Visual C++ and just used the basic 'Hello World' pro ...Show All

  • Windows Forms Capturing Region from a point (mouse move)

    Hi, I was trying to create a sudoku solver. I have done it VB6 (80%, upto here, works as helper :)). Now, I am trying to build it in .NET 2005 (xpress edition). I my VB6 version i used array of 81 picture boxes to form the big grid. In .net version i used rectangle, graphics and region classes to draw the big grid. I used 81 elements array for regions. Now I am stuck here. Now, I want to draw a thick line (different color) over the small cell when ever the mouse moves over it. I can do with the rest of the code if i get the region where the mouse is. I am really stuck and not getting any clue how to do it. Public Class Grid Priv ...Show All

  • Windows Forms FileLoadException when running app with Impersonate from network folder.

    If I take the example c# code from the MSDN site: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemSecurityPrincipalWindowsIdentityClassImpersonateTopic.asp and compile it into a console app, using vs 2005, I can run the app and it works great. Then I drag the app.exe from the bin/debug folder to another folder on my hard drive, and double click the .exe. Still works great. Then I drag this app.exe to a folder on the network and double click the .exe. Now I get a FileLoadException. What do i need to do to avoid this exception Thanks, Mike Figured it ...Show All

  • .NET Development ? .Net2: ChannelServices.RegisterChannel is obsolete - So what SHOULD I use ?

    I have this line of code in a .Net 2 program:             System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel( new TcpChannel( INCOMING_PORT ) ); This gives a warning: 'System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(System.Runtime.Remoting.Channels.IChannel)' is obsolete: 'Use System.Runtime.Remoting.ChannelServices.RegisterChannel(IChannel chnl, bool ensureSecurity) instead.' The thing is, as far as I can see, System.Runtime.Remoting.ChannelServices.RegisterChannel(IChannel chnl, bool ensureSecurity) doesn't exist! What should I do ...Show All

  • Visual Basic Executing Visual Basic code from a string

    How do I execute visual basic code from a string Here is kind of a sample of what I am doing... Function _Function(ByVal As )    'This is where it is supposed to execute a function     .Execute() End Function So can someone please help me Doesn't anybody know There has to be a way to do it, last time I checked, Visual Basic .NET 2003 could do almost anything. I say almost remember. There has to be a way, because I saw a control on http://windowsforms.net that could allow you to execute VB code from a string. Please tell me an answer. ...Show All

  • SQL Server Implicit conversions using UDTs

    I've written a CLR UDT that basically wraps a COM FILETIME.  While using and testing this UDT, I've come across some unusual behavior that I can't seem to track down.  My question is this: When I make the T-SQL statements DECLARE @ft dbo.MyFileTime SET @ft = 0x0123456789ABCDEF What's happening within the SET statement   My first surprise was that it succeeded.  Then I thought, "The hex value, I understand, is implicitly a BINARY or a VARBINARY.  Underneath, with those attributes, MyFileTime is also implicitly a Binary or a Varbinary.  Maybe it's simply performing a direct assignment " MyFileTime is prefaced by ...Show All

  • Visual C++ RC2147 : SUBLANGUAGE ID not a number error in VS 2005 Pro

    I have found a serious problem with the Visual Studio 2005 Professional resource editor. I am based in the UK (this is crucial), and when I add a new resource to an MFC project, it is assigned the English (United Kingdom) language by default. Unfortunately, the following line is added to the .rc file, which will not compile: LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_NEUTRAL The resource compiler will produce the following: error RC2147 : SUBLANGUAGE ID not a number It *should* be using SUBLANG_ENGLISH_UK instead. If I add a new resource and then attempt to change the language to English (US), then it fails and the error persists. This means ...Show All

  • .NET Development partial data sent?

    1 man 4 days 15 hours / day   I have this problem and think I have made no progress after 4 days.   I am having SEVERE serialization problems from Server to Client. Client seems to be the problem. I thought it could be my smartphone mobile device but no, even If I do this on the PC the result is almost the same.   When my Server serializes over a network stream, Server seems to send the data fully, Client 99% of the time seems to not recieve it in its fullest, therefore when de-serializing I will get an exception. Code for listening to incoming communication:   while ( this .theC ...Show All

  • SQL Server Updating report from stored procedure

    Hi, I have a report server project which gets its information from a storesd prodedure. Occasionally that stored procedure changes, some columns may be added or removed but as I see it now that only way to have my report reflect those changes is to start a whole new report server project. is there a way to have my current project re-bind to the updated (changed) stored procedure or better yet just bind to it so it detects those changes on its own thanks! Yes - open the report in report designer, go to the data tab, Click the refresh button (little green ...Show All

  • Visual Studio nested project failing

    I am trying to implement a nested project based on the example in the SDK's. The project is being created underneath my project in the solution but the project file is being placed in the wrong directory and the name is being concatenated. The error I receive is "The project file can only be saved into the project location". Here is the snippet from my project file: < ItemGroup > < SubProject Include = " NestedMicroFocus\ClassLibrary1.cblproj " > < TypeGuid > {535C04D7-A2A5-47c7-83E0-B340A995CD1F} </ TypeGuid > < Template > C:\XGEN\Templates\dotnet templates\ClassLibrary\cobolcl ...Show All

©2008 Software Development Network