nhl66pens's Q&A profile
Smart Device Development How TO Minimize a MFC Dialog Program When it is Start?
I want to minimize my program when it starts,I add ShowWindow(SW_MINIMIZE); in OnInitialDialog,but later the Window Received Several WM_ACTIVE message,and Show out. What can I do Thanks. Hi, Can I know further information about the scenario that you are trying to handle If its appropriate you may consider using SW_HIDE since on devices windows should be full screen and there is not much gain from minimizing the window. Thanks ...Show All
.NET Development ObjectDataSource: Dragging more than 1 property generates compile error
I have created an ObjectDataSource for my report and I can drag the properties of the object inside a list on my reportdesign. Nice.... However, whenever I drag a second property inside the list on the same report and try to compile, I get the following error: More than one data set, data region, or grouping in the report has the name ‘RZ_Agora_MarketInformation_Win32UI_Registration_MarketSegmentReport’. Data set, data region, and grouping names must be unique within a report. C:\agora\RZ.Agora.MarketInformation\Win32UI\Registration\PrintFormRecordingPerMarketSegment.rdlc RZ.Agora.MarketInformation After, if I look into the DataSetName property of the list, I can select from two instances of the same dataset There is a workaround, ...Show All
Visual Studio 2008 (Pre-release) Cache returns partial results
Assuming I have two following queries, in different places in my application; one can run before another, the order doesn't matter: from p in db.Posts select p; from p in db.Posts select new Post() { PostId=p.PostId,Title=p.Title }; Post, by definition, contains PostId, Title, Body and Image. Since the second query interprets as select PostId,Title from Posts while the first one contains all fields, and since DLinq uses cache, when running 2nd query before 1st one, post.Body and post.Image are null. I guess that occurres because the cache contains key with Identity column (seems to be the reason for the problem here ). I think this key should contain a list of fields. Or DLinq should know when to fill the instance t ...Show All
SQL Server SQL Server 2005 Collation
Can someone plz help me, how can i change the collation of an existing database Thank you in advnace Hi, Thank you for the response, I was also wondering about the following: Can SQL Server 2005 handle non-case sensitive sql statements. i.e. A table with the fields (fieldOne - fieldTwo) has some values: fieldOne fieldTwo i insert L lenght c car I inject C construct l loose So if one would to do a sql statement on that table i.e: A bit of ASP: var x = Request.QueryString("variable"); Lets say the value of x was: l "SELECT fieldTwo FROM table WHERE fieldOne = '"+x+"'" Th ...Show All
Visual Studio Catastrophic Failu Visual Studio Crashing like crazy!!! WHAT IS GOING ON!!!
I reinstalled my whole damn operating system thinking that I had broken visual studio somehow... it turns out that was a collosal waste of time... I have a fresh clean windows xp pro sp2 install, and a clean Visual Studio Professional... and whenever I add a dataset to a project, and right-click the designer and hit "View Code", I get this horrifying error: Failed to view the validation code because of the following error: Catastrophic failure (Exception from HRESULT: 0x80000FFFF (E_UNEXPECTED) and it gives me a blank document. If I click the button to Save All open documents, the whole damn program just crashes!! I've submitted the error reports, but that's not going to help me fix the problem... what is goi ...Show All
Visual Studio Team System AddIn for VSTS : show "Compare version" windows from C# code
Hi, We are currently working on a Add-In for Visual Studio Team suite and would like to show the "Compare version", "Merge tool" etc... Currently I have try with this : addIn.DTE.Application.ExecuteCommand( "File.SourceControl.Compare" , "" ); but it do not work ! I have find no information about this... Thanks Hello, If you want to mimic right click "Compare" on solution/project source controlled items, I think you should use "File.TfsCompare" instead. Regards, Eugene ...Show All
Windows Forms How do I get the color and location of a painted line using GDI+ when mouse clicked?
Hi I have painted a line using GDI+ and would like to capture the color and location of the cursor when the user mouse clicked on the line. Does anyone got any suggestion as to how to do it Thank you. Soh Normally you should store the drawing information as it is drawn as there is no way to retrieve the information after the fact. However if you really want to get the color information given an arbitrary pixel on the screen then you can create a new bitmap in memory, use the Graphics.FromImage to get a Graphics object for the bitmap, use Graphics.CopyFromScreen to copy the pixel information from the screen into the bitmap and then use Bitmap.GetPixel to get the color. There might be an easier way ...Show All
Visual Studio 2008 (Pre-release) Changing a Client's Endpoint Address on the fly
There's a sample in the SDK that demonstrates how clients can pass WS-Addressing reference parameters to a service. The client uses an EndpointAddressBuilder to assign an EndpointAddress back to the client's Endpoint.Address field. This works fine if it's done before the client sends the first message. If, however, we want to modify the Endpoint.Address in a similar way after the first message has been sent (e.g. because we want to include parameters in the second that we didn't want to include in the first message) this has no effect on the subsequently sent messages. What I did now is that I just recreated the Channel in my implementation that extends ClientBase, i.e. if I detect a change between Channel.RemoteAddress and Endpoint.Addre ...Show All
Visual Basic tabcontrol used in Visual Studio
Is there any way to have a tabcontrol that looks similar to the one used in the Visual Studio IDE The existing tabcontrol provided by .NET 2.0 doesn't look nice. I wish I could have a tabcontrol similar to the one used in the Visual Studio IDE :-). I put out a rendered version of the tabcontrol today. It's not as nice as the vs2005 tabcontrol but is an impovement. The VS2005 tabcontrol looks especially plain on Vista. At any rate, there is material http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1264835&SiteID=1 here. ...Show All
Windows Forms Pass arguments from web to windows
Hi, I have created one player in Windows application Which is run in client machine.I want to pass the arguments from web to my player.Is it possible.Please any one help me.(By using command line arguments). Regards, justin. ...Show All
Software Development for Windows Vista Application Compliance + ACT TOOLS.
Hi All, It would be great if we get answers to these questions. What are the best practices to be followed for an application to be compatible in VISTA What is the procedure to obtaining inventory reports from different machine connected in network using ACT If a previously developed application using GINA features, needs to be ported to Vista Platform and since vista doesn’t support GINA. So what’s the work around for fixing the same apart from recreating or redesigning the application Has the ACT RTM version released In order to apply application compatibility to a previous developed application. What would be the proper order of steps and tools to be used for complying the Application for Vista Platf ...Show All
Visual Studio Tools for Office VSTO Deployment Installation
Hi all, I've got a question about VSTO deployment installation. I wonder how can I choose the prerequisites list for VSTO Redistributable package and Office PIA package. As far as I know, these two packages may need along with .Net Framework. But, so far, those two Office packages are not in my prerequisties list. Thanks, Myo Hi Myo Have you worked through all the information in these two sources Misha's blog http://blogs.msdn.com/mshneer/archive/2006/01/05/deployment_articles.aspx MSDN site http://msdn2.microsoft.com/en-us/library/hesc2788.aspx ...Show All
Visual Studio Team System Removing Default Performance Counters(Controller Computer & Agent Computers)
I recently looked into the result store and saw the true beauty and ugliness of performance counters. Every sample is stored. Is there a way to not collect the default data about the controller and agent computer I am trying to keep the Results store as clean as possible. Ok I finnaly understood your responce after reading it a 100 times. To remove the counter from the control computer and agent you have to remove the counter set under the counter set folder and not manipulate the run settings! Thats what confused me. Thanks for your help Rick. ...Show All
Software Development for Windows Vista TrackingDataItem
I have created a custom tracking profile to track some of my properties and variables and observed the following behavior: * variables and properties that I'd like to track are being saved to dbo.TrackingDataItem * on string variables Data column in TrackigDataItem table is null * on properties Data column in TrackingDataItem table has data that I can see in the debugger but I can not see values that are set on the property in the code. In the example below I have a property that stores ArrayList. I run the following code to get the values ArrayList rpp = null; for ( int index = sqlTrackingWorkFlowInstance.ActivityEvents.Count; index >= 1; index--) { ActivityTrackingRecord atr = sqlTrackingWorkFlowInstance.Ac ...Show All
Game Technologies: DirectX, XNA, XACT, etc. multistream rendering problem
im trying to get multi stream rendering working in dx10, i'm just hacking around with the multistream sample ATM. (what ive got in comments is what was there origonally) /* const D3D10_INPUT_ELEMENT_DESC vertlayout_singleindex[] = { { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA, 0 }, { "NORMAL", 0, DXGI_FORMAT_R32G32B32_FLOAT, 1, 0, D3D10_INPUT_PER_VERTEX_DATA, 0 }, { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 2, 0, D3D10_INPUT_PER_VERTEX_DATA, 0 }, }; */ D3D10_INPUT_ELEMENT_DESC vertlayout_singleindex[] = { { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA, 0 }, { "COLOR", 0, DXGI_FORMAT_R32G32B32A3 ...Show All
