yhhuang MSFT's Q&A profile
Windows Forms Dynamic control docking
Hi, can anyone tell me if VS 2005 Beta 2 contains a control that will allow me to dock a user control / form I'm interested in getting the sliding docking feature found in VS 2003 / 2005; the one where you can pin a panel if required (ala Toolbox, Server Explorer etc). Thanks for your help Graham hi Mike, Is the Dynamic Docking Control sample included somewhere if so could you please let us know the ...Show All
Visual Basic How to create a normal windows help file system with VS.
I am teaching myself VB programming. I have two books, "Beginning VB.Net 2nd Edition" from Wrox and "Programming Visual Basic.Net version 2003" from Microsoft. The Microsoft book touchs very breifly on a class to help with help files but as a beginner programmer I found it a little over my head. I am using Microsoft Developement Environment 2002 Ver. 7.0.9955 with the framework 1.0 Ver.1.0.3705. Can I create help files wit ...Show All
Visual Basic Using sender as a case in Select Case Statement
When my form loads it adds some handles (using AddHandler ) to a sub ( showStatus ). What this sub does is checks which control activated the sub (using sender.Equals ) and displays text in the status label ( status ) accordingly. For this I use an If...Then statement for each possibility. There are many possibilities and my code get cluttered. Is there a way to do the same thing with a Select...Case statement. I tried: Select Case sende ...Show All
.NET Development Embedded pdf's not displaying
Hi, I am migrating from .NET 1.1 to 2.0 and have found my embedded pdf's will not display in a v2.0 web page. All I get is a blank page - when I try to view source, I get 'The XML Source is unavailable for viewing'. Why doesn't the code work in v2.0 Thanks, VB Code from the .aspx page is :- <% @ Page Language ="VB" %> < script runat ="server"> Private Sub Page_Load( ByVal sender As System. Object , ...Show All
Game Technologies: DirectX, XNA, XACT, etc. do you have to use createwindow to create the main directx window? or does the directx api have its own way?
i am starting to look at directx , do i have to use createwindow to make the window or does directx api come with its own way to create a window ,, Yep, You have to create a window and then pass it's handle to the method that will create the device. In c++ it will look something like this pDirect3d->CreateDevice(...Window->hWnd...) In Managed DirectX you pass the handle to the constructor of the device. Device device = new Devic ...Show All
Visual Studio Express Editions Database search
Hi there, I am new to VB Express. I have a project that requires finding 2 fields in a mdb database. The search key is a variant rather than a text box. In the project I modify input from a text box. The resulted variant is the search key for retrieving 2 fields in the variant record. The database is structured as follows: Location Identifier Field1 Field2 Alocation ABC 123 456 Blocation DEF 789 ...Show All
Visual Basic [vb.net 2005] sending a bit from a pc to another in a LAN
Hi guys! I know that it seems a silly question, but I must do just what the title says. I have a client pc that, on a user's request, sends a START signal or STOP signal (well, a 0 or a 1) to a remote server pc that is waiting for that signal to start or to stop a process. Server and client are on the same LAN, both identified with two different private static IP addresses. Of course I need that only THAT client can send signals ...Show All
Software Development for Windows Vista Workflow Services semantic error!!!
I'm trying to develop a HelpDesk example using the HostCommunication project from the SDK sample and now I'm getting the error: Workflow Services semantic error: The workflow 'HelpDeskWorkflow' has no public writable property named 'helpDeskMessage'. My fist activity receive an string with the Help Desk Message. It's a callExternalMethodActivity. Any one know what I have to do tkx in advance Paulo Aboim Pinto Odivelas - Portugal ...Show All
.NET Development Increasing the runtime heap?
Hi I've got an issue with OutOfMemory exceptions occuring in an application. I know the gen 0 heap size is based on the L2 cache of the CPU running the system, but even when I try to run my process on a system that has a megabyte of it, it gets the exception not even halfway in. Normally, I'd just take it for granted that I was wasting too much memory too quickly, but the problem is - I need all of the memory I'm trying to allocate, and I nee ...Show All
.NET Development Generic list gets converted into an ArrayList when sent through web services
Hello, i have a customer object like this: public class Customer { public Customer() { } private string customername; public string CustomerName { get { return customername; } set { customername = value ; } } } And a generic Customer collection that can contain customer objects like this: public class CustomerList : List < Customer > { public CustomerList() { } } I populate a CustomerList wi ...Show All
Visual C# Mutex.Dispose() - Does it release the mutex?
Does anyone know if disposing a System.Threading.Mutex object will call ReleaseMutex() for the object automatically. I'm assuming not, but I can't find anything explicit in the documentation. Does anyone know Hmz, indeed the WaitHandle.Dispose method doesn't do the same as the ReleaseMutex method, the ReleaseMutexNative is an external method: Dispose protected virtual void Dispose( bool explicitDisposing ...Show All
Visual C++ Interop with Struct
If I have following class in C++. How should I declare the unmanaged code in C# typedef void * MQISDPCH; /* Connection Handle */ /* Information required for MQIsdp server connection */ typedef struct struct_SVRS { long portNumber; char ipAddress[MQISDP_INET_ADDR_LENGTH]; } MQISDP_SVR; /* Connect parameters - fixed length portion*/ typedef struct struct_CP { long version; long strucLength; /* Fixed length plus variable ...Show All
Visual Studio 2008 (Pre-release) Pixel width "Thickness" for shapes
Is it possible to draw shapes with a single pixel width I am working on an engineering program in WPF and need to scale drawings. The current thickness of 1 is more than one pixel (presumably anti-aliased) and is very "fuzzy" - that's an engineering term! The same drawing drawn with GDI looks much crisper - another engineering term. Ideally there would be a special thickness, say 0, which would always draw at one pixel width no m ...Show All
.NET Development Visual Studio 2003 Mixed Mode Debugging Crash
I have a project that is made up of a mixture of C++ COM dlls and C# COM dlls. The main executable is a Win32 app. If I turn on Mixed mode debugging to allow me to debug the C# dll's Visual Studio crashes 100% of the time as it loads the C# dll's. I noticed that the project uses reference to the .Net framework 1.1, but just before Visual Studio crashes it is loading .Net framework 2.x components. Any idea how to fix this I hav ...Show All
.NET Development Web Services .net framework 2
I have just ported an ASP.NET 1.1 application to framework version 2 and i have a problem. My solution has a Web project and a class library project. The class library project has a web reference to a web service. The Web project makes a call to the web service. I used to hold the url for the web service in the web.config and because the web reference was set to dynamic, this all used to work fine. Now it looks a though the ...Show All
