Skantechtech's Q&A profile
Windows Forms Getting COM error for Webbrowser control
I m opening form asynchronously. in my form i m having 8 tabstrips. i m loading controls on each tab strip when tab is getting activated. one of tab is having htmleditorcontrol (downloaded from windowsforms.net site). Now the proble is when i am clicking on tab contain control htmleditorcontrol i m getting error. ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment. private void InitializeComponent() { this .editorWebBrowser = new AxSHDocVw. AxWebBrowser (); error getting on above line. in my main method i hv put attribute [ STAT ...Show All
Software Development for Windows Vista Pageflow Engine
I have looked at some of the available samples for using WWF in a ASP.NET application. I am looking for a page flow application sample where an aspx page will pass data to the workflow and based on the rules, workflow will pass back the next page to render. I am using beta 2.2 version. In one of the post, I saw that MS is working on an page flow engine. Is this true and can we look forward to this Thanks Anandan. The only sample I have seen can be found on Jon's blog . I believe it was written with Beta 2. If it does need to be upgraded there is an document here that should help with that. ...Show All
Visual Studio Team System Testing not working with MS Anti Spyware?
Hi all, I was wondering if anybody was having trouble running tests with MS's Anti Spyware Beta installed I get a window alerting me that a script wants to run. I hit allow, but by then the script has already errored out. When I turn it off, my tests run fine... Thanks, J I've found that just disabling the script blocking application agent checkpoint in AntiSpyware is enough to allow tests to run. ...Show All
Visual C# eventcode all 0, Hook Edit change
I want to use Hook to monitor C++ Edit change. I use a C# form containing a Edit(textbox) and button to test at first. When I change text in Edit and press button to setText value, I want to monitor the change event. SetWindowsHookEx( WH_CALLWNDPROC, new HookProc(this.CoreHookProc), IntPtr.Zero, (int) AppDomain.GetCurrentThreadId()); //SetWindowsHookEx not return 0 protected int CoreHookProc(int code, IntPtr wParam, IntPtr lParam) { Console.Write("coreHookPro="); Console.WriteLine(code); // code is 0 always } Why the code always return 0 I change hooktype to WH_GETMESSAGE,WH_CALLWNDPROCRET, but ...Show All
Visual Studio Team System Extending Project Portal
Hi, Is it possible to get a handle to the project portal programatically, so that I can add a link or some text to the project portal home page through code. Thanks and Regards, Sameer. You have to use the WSS Object Model http://msdn.microsoft.com/library/en-us/spptsdk/html/SPPTWSSSection_SV01072211.asp frame=true ...Show All
Visual Studio Team System Errors re-installing beta 3 refresh
We installed Beta 3 refresh a few weeks ago, and all was working fine. However, we experienced some corruption outside of Team Foundation Server that caused us to have to reinstall Beta 3 Refresh - the reasons behind the need to reinstall are a bit shady at the moment - sorry! During the reinstall procedure, we keep receiving the following error: Error 32000: The CommandLine "F:\<path name>\createds.exe" /setup /install "http:\\FUCHSIA-SERVER\ReportServer\ReportService.asmx" TfsReportds "DATA SOURCE=FUCHSIA-SERVER initial catalog = TfsWarehouse" "<domain name>\tfsreports <long guid> ...Show All
Windows Forms Image in a header?
Does anyone know how to go about getting an image to appear in a column header of the DataGrid I have them in the data rows of the grid by overriding the Paint method of DataGridTextBoxColumn but have drawn a blank trying to get them into the headers. Any ideas or suggestions ImpGooner, have you found the solution for this problem & ...Show All
.NET Development .NET 1.1 & SQLEXPRESS
I am trying to access a SQLEXPRESS database which is hosted on the same machine as the web application. When I try from within my web application to connect to the database I get SQL Server Access Denied. I am running Windows Server 2003, which I can't patch to Service pack 1, becuase it can't be done remotely our server is in a datacenter. I have the .net framework version V1.1.4322 installed and working OK. I have SQLEXPRESS CTP April installed, and all protocols are setup correctly, since I can access this database remotely no problems! I can even access it remotely via an application I wrote in VB.Net 1.0 using running on a W ...Show All
SQL Server Frustrated with Service Broker Example
I want to use a Service Broker Queue as a processing queue. I found several examples on the WEB and have tried to make them work but they do not. Below is the example I used and I ASSUME I should get a Hello World in the Message field at the end but its empty. Any ideas as to why I have tried select * from ReceiverQueue and select * from SenderQueue before I do a RECIEVE and both QUEUE's are empty Scooter ----------------------------------CODE-------------------------------------------- USE AdventureWorks GO CREATE MESSAGE TYPE HelloMessage VALIDATION = NONE GO CREATE CONTRACT HelloContract ( HelloMessage SENT ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Passing two normals for a vertex to the vertex shader
I am having absolutely no luck with constructing my own vertex format and use it to store two normals for use in my shader. There are a number of flags which I can set to indicate various items such as position, normal, texture etc, but there is only one normal. How do I define that I want to use both normal and normal1 and for that matter normal5 I need to have a vertex which has a position and two normals. I tried storing one normal in a color for a PositionNormalColored vertex type, but for some reason it fails. I store my normal as color by setting solor to ColorFormat(normal.x / 0.5 + 0.5, .... in order to keep the normals valu ...Show All
Visual Studio Express Editions Upgrading vb6 projects
I was unable to upgrade projects from vb6. I get an error when "invoking upgrade engine". Error occurs in vbu.exe. Error message: Enexpected exception ocurred during upgrade engine operation: Error in remote procedure call. (Exception from HRESULT: 0x800706BE). Using: XP Pro Spanish Version VB 2005 Express V8.0.50727.42 VB6 projects made with VB6 Enterprise Edition (SP6) Spanish Version. Hi Cristian, It sounds to me like the VB Upgrade tool did not get installed correctly. I would suggest going to Add/Remove Programs in the control pannel and doing a repair on VB Express. ...Show All
Software Development for Windows Vista About new WWF beta 1.2
I just started playing with WWF 1.2, which I downloaded following a link provided on www.theserverside.net to msdn. After watching PDC 2005 Video "Developing Event Driven State Machine Workflows" by Pravin Indurkar using WWF Beta 1 and playing that version on MSDN virtual lab, I got an impression that WWF beta 1.2 State Machine Workflow designer behave dramatically different from that of WWF beta 1. For example, I cannot move state shape around freely and if I set TargetState of a SetState Shape to another state shape, I will not get a connecting line pointing to that state shape as WWF Beta 1 would. Is this an installation proble ...Show All
Smart Device Development WCE 5.0 Test Kit -- Application Verifier Tools Can't Work
Start Application Verifier from WCE 5.0 Test kit, this tools can't work, the error message is " Unable to enable shim engine on device!", env: vs 2005 beta2, DMA Transpot, Device Emulator manager , WM 5.0 for pocket pc SDK, Emulator is pocket pc phone emualtor, I can execute the drivers test suit,but all the Tools of CETK are work uncorrect, Is it any updtae or patch can resovle this problem Dear All For the above problem, try connecting to AppVerifier from CETK module. It successfully connects. Thanks. Regards Sreekanth Muralidharan ...Show All
.NET Development HttpWebRequest & CookieContainer broken design & implementation
I've spend several months working with HttpWebRequest & CookieContainer, and simply had a miserable time making it work. My question is whether there's a better approach/workaround to it, and if not hopefully these bugs will be fixed by next 'patch'. Issue #1. HttpWebRequest does not setCookies for redirects until the end of redirect. Suppose you have a scenario where you log in, gets a 302 redirect with a SetCookie header. Now, the new redirected page verifies that the cookie is set before sending the correct response. Using HttpWebRequest & CookieContainer, the second redirect request does not have the cookie that response ...Show All
Visual Studio 2008 (Pre-release) Label's Target doesn't work properly for ListBox
Put the following XAML code into XAMLPad: <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <StackPanel Orientation="Vertical"> <Label Content="_ListBox:" Target="{Binding ElementName=lb}" HorizontalAlignment="Center"/> <ListBox Name="lb" Width="200" Height="80"> <ListBoxItem>Line 1</ListBoxItem> <ListBoxItem>Line 2</ListBoxItem> <ListBoxItem>Line 3</ListBoxItem> <ListBoxItem>Line 4</List ...Show All
