Chrislm's Q&A profile
.NET Development Unable to write file with StreamWriter after replacing explorer as shell.
Hi, everyone. We have an application that we are using to replace explorer.exe as a user's shell. The application runs in a manufacturing environment, is the only thing that we want to run on the machine. We are trying to write to plain-old text files from the application using the StreamWriter for logging purposes. If we set explorer.exe as the shell and then start the application from within explorer it writes the logs with no problem. Now, if we replace explorer with our applicationa s the shell, then no logs are written. Even if we then start explorer.exe after our application has started, still no logging. The code behaves like everything was written OK, but no file is created or appended. I even tried a third-party loggin p ...Show All
Visual Studio 2008 (Pre-release) Videostream
Hi all. Been looking around with the aim of writing an app that can both preview and stream webcam video, but appear to have fallen at the first hurdle. All the information I can find seems to be older, using either native calls or DirectShow to perform this, but I've been told that the framework now supports using a WebCam. Anyone got any information on how to use a webcam preview, and maybe how to go about streaming it over a network Thanks! to create a stream, you should use Windows MediaEncoder. you'll be able to choose the web cam as a source and a url as a target. plus it has an SDK, so you could automate part of it if necessary. ...Show All
Microsoft ISV Community Center Forums Using parts of a cell value as a variable?
I am working in Excel macros. I want to find a cell with a specific value and use that cell's location to save the row of data it is on. For example find a cell with the number "3" in it. Lets say it is in cell "d6" then copy the cells in that row that have data. as in "b6 through h6" then next time I find the number "5" in cell "d10" then copy the cells in that row that have data. as in "b10 through h10" What I am trying to do is : Find a part no# in a worksheet. Say in column d Then copy the data on that row for that part no# . Then insert it to another sheet. Then start over with a different part no#. Hope that helps the understanding. ...Show All
Visual Studio Team System Files not deployed during Team Build Test
In my testrunconfig, I deploy a special file to the test output directory, which works fine for manual unit tests. However, in the tests that follow the Team Build, that file is not deployed. I read about a smiliar problem concerning the deployment of a whole directory here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=493055&SiteID=1 In my case the problem occurs with a single file and I also have SP1 installed. Thanks in advance for any help, Michael Hi, My assumption is that your Team Build project file doesn't refer to the test run config file which specifies your test dependencies. There is a similar thread on our forums that covered this in the course of investigating that I think yo ...Show All
Visual Studio 2008 (Pre-release) Skinning a ScrollViewer (How do I create a custom ControlTemplate)
I'm creating a custom control templates for all of the controls in an app I'm developing to give a custom look and feel. However, I'm stumped on the ScrollViewer. When I have a ListBox or some other control that uses a ScrollViewer and both scrollbars are visible, I can't figure out how to change the color or behavior of the gray box in the bottom right corner where neither of the scrollbars extend into. Anyone have any ideas ScrollViewer's style is defined by code in PresentationFramework.dll instead of in the PresentationFramework.*theme*.dll assemblies. You may want to ask about this feature on the EID discussion list to see if it will be supported in future versions. http://www.microsoft.com/communiti ...Show All
Windows Live Developer Forums VE and metric unit system
Is there any way to display VE in metric unit system Ok the control now supports this properly so the new method is map = new VEMap('MapDiv'); map.LoadMap(new VELatLong(-27, 152), 5 ,'r' ,false); map.SetScaleBarDistanceUnit(VEDistanceUnit.Kilometers); The trick being you have to do it after the LoadMap() or else you get a nice exception John. ...Show All
Windows Forms SelfJoin datatable how can i deal with it
hi .. i have a self join table in an access database i want to enter data at soome deep level in that table the datagrid in vb 2003 has plus in every row but what about datagridview in vb 2005 how can i enter data at say 5th level thanks in advance. ...Show All
SQL Server How do I create an SSIS project?
How do I create an SSIS Project in BIDS I installed BIDS, but I don't see any SSIS projects to create. When I click File - > New Project I see the following options under "Business Intelligence Projects" section. 1. Report Server Project Wizard 2. Report Server Project No where do I see anything about SSIS or integration services projects. Am I missing something Did I not download something I have Windows XP SP2 Visual Studio .Net 2005 SQL Server 2005 Express SQL Server Management Studio Express Installed Business Intelligence Development Studio My company has a SQL 2005 server that I connect to in which I want to run SSIS projects off of. I'm sure I'm just missing something small. Can someone point me to th ...Show All
Visual Studio Express Editions Making a textbox into an array and reading from each point in the array
I'm trying to build a name generator, that takes a letter from one point in an array, (Which originally comes from a textbox), and changes that letter to some other character. So for instance, if i put the name "Sam" in textbox one and clicked the "Generate" button, the out put, (Which has random keyboard typings of each letter, like S as "Ess" or "$") would go to textbox 2. So basically i want to build a name generator for The "Leet" or "L33t" Language. What i need to know is: 1.How to assign the Data of Textbox1 to a String array 2. How to read from each point in this array and 3. How to set the output to go to a certain point in an array for textbox2. Any help would be greatly ...Show All
SQL Server Sql Permission
What's Defference between Control Server And SysAdmin Role The easy answer is consider CONTROL SERVER and SYSADMIN as equivalents, do not grant CONTROL SERVER to somebody you wouldn't add as a SYSADMIN. In SQL Server 2005, the difference is basically that all permissions (including CONTROL SERVER) are subject to the same GRANT/DENY/REVOKE rules (i.e. if while evaluating if it is possible to take an action, if there is any denied permission it will take precedence over a granted one), while role membership of SYSADMIN will cause that the principal will not be subject to any permission check (i.e. denied permissions are bypassed). I can think of a few behavioral differences are: ...Show All
SQL Server Modifying Existing Table Schemas?
By default, I constructed my database using the dbo Schema. I have since created new Schemas, and want to change some of the tables from dbo. Is there a way to change the existing schema of a table without disrupting the data that is inside the table For example: Current: dbo.Products Desired Change: NewSchemaName.Products Thanks. ...Show All
.NET Development RemotingConfiguration.Configure not working
Hi, I am new to .Net Remoting. I have created a SAO which returns a dataset. The client works when I hard code configuration settings. HttpClientChannel channel = new HttpClientChannel(); ChannelServices.RegisterChannel(channel, false); RemotingConfiguration.RegisterWellKnownClientType(typeof(DbConnect), @http://192.168.254.3:1234/DbConnect1); However, when I try to use configuration file it does not work. RemotingConfiguration.Configure("RemotingDemoClient.dll.config", true); RemotingDemoClient.dll.config contains: < xml version="1.0" encoding="utf-8" > <configuration> <system.runtime.remoting> <application> <client> <wellknown type="StepByStep3_1.DbCon ...Show All
Visual Studio 2008 (Pre-release) Hosting a WPF Control in a WinForm Scroll Issue
I'm hosting a large sized WPF Control on a WinForm Panel. It seems that the WinForm Panel is unable to determine the size of the WPF Control and display the appropriate scroll bars when the panel becomes too small. Adding a ScrollViewer to the WPF Control is not an option I can use to the solve the problem. Is there anyother work around for this Thanks, Kevin Hi Mike, Thanks for the reply. If I understand your solution correctly, I should Create a WinForm UserControl composed of a Panel (call it HostPanel) which hosts the ElementHost. Bind the Width and Height of the ElementHost to the WinForm UserControl's Height and Width. Set Autosize of HostPanel to true. Add the UserControl to ...Show All
Visual Studio Smart Tag for convert to template
Sitting here following an O'Reilly book, and it tells me to click on the smart tag for Login, and click "Convert to Template". Make a change and then click "End Editing". The problem I have is I don't have this option, I get Reset. Why would you be allowed to edit a template if you can't save what you did Does anyone know what is happening ...Show All
Visual C# Need Help in developing MS WORD like application
Dear All, I have seen applications that has tool bar, with different buttons which are same like MSWORD 2003 look like, and when click on one button suppose table button , a list popup which also same like MS WORD 2003, and there are increase and decrease indent buttons, center align, lift align or right align buttons, and its functionality is also same like MS WORD. I want to implement such functionality in my own application, but remember please don’t refer me to MS Visual Studio Tools for Office Development, show me some other way by which I could do so. Refering me to code for downloading office like application will be highly appretiated. thanks You can find controls that render the ...Show All
