Bryan_Ta's Q&A profile
Visual Studio Express Editions Drawing graphics on a TabPage
How do I draw graphics on a TabPage of a TabControl I would just like to see some code to simply draw a line, for example, & I can probably figure the rest out from there. Thanks... Hey thanks, that gets me started. I have a few more questions, if you don't mind: Do I always have to draw my graphics on the paint event ... can I do it on the TabPage.Enter event instead How do I reset the TabPage ie. clear all graphics that are drawn on it Thanks... ...Show All
SQL Server Quorum & MSDTC Cluster Questions
We are trying to setup a Windows Server 2003 Cluster with 2 systems and a DAV. We intend to install SQL 2005 on this Cluster. We purchased a DAV with 3 physical disk arrays as follows. 73GB RAID 1 (our plan is to use this to store sql transaction logs) 146GB RAID 1 (sql backups, temp database & other temp files) 420GB RAID 10 (sql databases) Now as we are setting all this up we find out we need a shared physical drive on the DAV to store the Quorom. It is my understanding we cannot partition the physical drives and use one of the partitions to store the Quorum because when you create the resource for the Quorum the resource is the phsyical disk not the partition. So my question is, is it in our best interest to buy a seperate ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Component Designer Problems
I am having a little problem with the designer at the moment. I have a component, lets say it is called ComponentA, and this component has a public property of type List<InternalComponent>. (InternalComponent being a simple class that contains some public properties and a public Texture2d property. This list appears in the designer surface and you can edit the list, however whenever I okay the items I have added to the list they do not get persisited in the InitilizeComponent of the Game. If I manually add elements to the list in code, I get an obscure error on the designer surface that says the type InternalComponent could not be cast to InternalComponent Are there any special things that I should be doing Kind Regards, ...Show All
Visual Studio Express Editions Name of user control
Why does this return an empty string when used in the same user control class Private CaptionString As String = Me.Name Later in the same class, CaptionString returns an empty string. In VB6 I used the Extender object to retrieve the name of the control, but the code above doesn't work. It will only return an empty string when I really want e.g. Button1, Button2 etc. Add this code: Private Sub button_Load( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles Me .Load CaptionString = Me .Name End Sub ...Show All
Smart Device Development VS2003 and CE.Net Emulator Problem
I have been happily created and deploying applications to Windows CE.Net devices using VB.Net with no problems for some time now. The shipped emulator has worked fine and i've never had any problems... that is, until now. For some reason my CE emulator (v4.1) has just stopped working. I can connect to it and use it no problem but I cannot debug my applications. I get the following message in the output window when VB.Net has finished compiling and installing the application. ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped Deploy: 1 succeeded, 0 failed, 0 skipped Launching Application Error while trying to run project: Unable to start debugging. Unable to start program 'C:\Documents a ...Show All
Windows Forms Client Server Chat application using Winforms
Hi, Does anyone here have code that would produce a very simple chat application Thanks I agree there are lots of examples on the codeproject site, you will also find examples on www.planet-source-code.com and almost all of the .net code download sites. What you will have to do though is DL Several of them and find the bits that work for you. ...Show All
Software Development for Windows Vista Rule Conditions against custom activities and XAML activation - how should I achieve this?
If I have a simple custom activity and I generate a XAML only workflow with a rule condition that references the activity then how can I use XAML activation to execute the workflow Here's the workflow <SequentialWorkflowActivity x:Name="xyz" xmlns:ns0="clr-namespace:ABC.Workflow.Common.ActivityLibrary;Assembly=ABC.Workflow.Common.ActivityLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/workflow "> <ns0:ConsoleWritelineActivity Message="test" x:Name="consoleWritelineActivity1" /> <IfElseActivity x:Name="ifElseActivity1"> <IfElseBranchActivity x:Name="if ...Show All
SQL Server sqlmangr.exe program error (Please help)
Whenever I run the sqlmangr.exe after the system reboot, the sqlmanagr.exe generated program error. "sqlmangr.exe has generated errors and will be closed by Windows. You need to restart the program." I am using MSDE 2000. The OS is Windows 2000. One thing I noticed is that sqlmangr.exe will not crash if I disconnect the system from the NETWORK. (By unplugging the network cable.) YOUR HELP IS APPRECIATED. Hello all. I'm just curious to find out if any one has tried these work arounds and the results they got. I too am encountering the "sqlmangr.exe" error and have confirmed that there are NO running SQL 2005 instances on my network. Like the original problem noted, I'm running MSDE 2000 and am e ...Show All
Visual Basic Redimming a global array?
Hello, I've dimmed a global array as below in module1: Module Module1 Public note(10, 10) As String End Module - and would like to resize it - still globally - on a form. I've tried: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ReDim note(15,15) End Sub But it doesn't actually resize it. Any ideas Thanks :) Maybe you use Preserve option Then when you use Preserve, you can resize only the last dimension of the array. That is: Dim note(10,10) as String ReDim Preserve note(10,15) ...Show All
Visual Basic AVICap class question in VB 2005 Express
I have gotten code to capture webcam video and stills using the AVICap class. There are several constants defined at the start of the program, such as: Const WM_CAP_START = &H400S Const WS_CHILD = &H40000000 Const WS_VISIBLE = &H10000000 Const WM_CAP_DRIVER_CONNECT = WM_CAP_START + 10 Const WM_CAP_DRIVER_DISCONNECT = WM_CAP_START + 11 Const WM_CAP_EDIT_COPY = WM_CAP_START + 30 Const WM_CAP_SEQUENCE = WM_CAP_START + 62 Const WM_CAP_FILE_SAVEAS = WM_CAP_START + 23 Const WM_CAP_SET_SCALE = WM_CAP_START + 53 Const WM_CAP_SET_PREVIEWRATE = WM_CAP_START + 52 Const WM_CAP_SET_PREVIEW = WM_CAP_START + 50 I want to add some commands (such as WM_CAP_DLG_VIDEOSOURCE to ...Show All
Windows Live Developer Forums Verifing e-mail address in messenger live
I asked a friend to download and install the public release of messenger live 8.0 and her address shows as not verified. She uses the same ISP as I except as on the other coast. How can/does an e-mail address get verified ...Show All
Visual Studio 2008 (Pre-release) Multithreaded
i have 2 threads in client and i call simultaneously from 2 threads to service. i define the service as ConcurrencyMode .Multiple [ ServiceBehavior (InstanceContextMode = InstanceContextMode .PerSession, ConcurrencyMode = ConcurrencyMode .Multiple)] i call from thread 1 and thread 2 (from client ) to service simultaneously. untill the thread 1 finish to work thread 2 is stacked and only after thread 1 return,thread 2 start to work. this function like reentrant despite i define the service ConcurrencyMode .Multiple btw i use in feb version . Proxy auto-open preserves the order of sends. To do this, it mu ...Show All
Visual Studio Tools for Office ISmartdocument debug problem in VS.NET 2005
I have an issue with the VS.NET 2005 installation while using Office 2003 ISmartdocument implementation. Any help would be very much appreciated. Thanks More info : http://vishnuprasadh.blogspot.com/2006/07/issue-with-vsnet-while-using.html Rgs Vishnu Hi I understand you are having trouble debugging your Office application. Office 2003 will load the VS 2003 CLR (1.1) if VSTO 2003 is installed. You are trying to debug it with the VS 2005 debugger CLR (2.0). This is causing the exception. Thanks Paul Stubbs ...Show All
SQL Server SS2K5 Encryption - Use in HA and Test/UAT
I am in need of some answers on SS2K5 Encryption and possible issues when used in a clustered(replicated) configuration as well as having the encryption work on a Test/UAT configuration. Here is the scenerio: ServerA - is the Primary/Active server in a NeverFail cluster. NeverFail is a replication method like MS Clustering is except NF replicates the server to EXACT mirrors of each other. ServerA has lets say 2 client DBs (actually we have 10-20 but for simplicity we will say 2.) ServerB is the Secondary/Passive node. First question is ... what issues may I run into if I encrypt the 2 clients needed data in the DBs and we then have a failover. I figure we should not see an issue if NeverFail is replicating everything includi ...Show All
Visual Studio Team System How to debug FxCop custom rules in VS2005
How to debug FxCop custom rules in VS2005 i found the resolution at some place the step as following: Debugging custom fxcop rules - with out using stand alone fxcop 1.35 - devenv.exe with the /debugexe switch - FxCopCmd.exe with the right arguments - create an .fxcop project (test project on which you want to run your rules on) fxcoptest.fxcop file - < xml version="1.0" encoding="utf-8" > <FxCopProject Version="8" Name="Sample Library Code Analysis Project"> <ProjectOptions> <SharedProject>False</SharedProject> ...Show All
