Pete Sheill's Q&A profile
Visual C# text into another window
Hello again, I would like to know how I can put text into another window when I press a button, for example, if there is a text box in IE, and I press the button in my program, how can I get it to "transfer" the text from the textbox in my program to a specific textbox in IE I heard that I need to get the "window handle" somehow, but I dont know much about that. Thanks Try this site, should help you with what you are wanting to do: http://www.c-sharpcorner.com/Code/2002/Nov/win32api.asp ...Show All
SQL Server "Bad Request" error
Hi, I've installed Reporting Services and configured it without any problem. When I browse to http://x.x.x.x/reports I'm getting " Bad Request " error. Is it related somehow to the IP mapping issue Any other clues Thanks, Mark ps SQL 2005 RTM W2K3 Std Mark, IP address should work fine. I just tried it, and I didn't have any problem. What happens when you use the NetBIOS name instead of the IP address ...Show All
Visual Studio solution level build tasks
i am new to msbuild and have been reading for a couple days now... i understand i can write a custom .msbuild file and compile a solution then call fxcop, nunit, whatever afterward. i have this setup and cruise control .net calling it. what i would like to do is have a build configuration in vs.net allow developers to call the same type of build and get the output directly. is there an easy way to specify solution level custom tasks like this in vs.net like a BeforeBuild and AfterBuild for the entire solution tia, steve This is not easily achieved. There was a thread about this recenlty here, ...Show All
Visual Studio 2008 (Pre-release) about richtext
Hi I'm new to avalon and i've a small doubt on richtext box. Here i'm entering some message in rich text box and i dont know how to save that message also how to load external file(.rtf) into current richtext box. thanx Nagu http://blogs.msdn.com/jfoscoding/archive/2006/01/16/513383.aspx ...Show All
Windows Forms Questions about updating DataGridView with data store
Right now I have my DataGridView bound to a business object, a List<Account>. I can add Accounts, remove them, etc... The problem is, these Accounts are backed by a data store. At the application startup, they're grabbed from the database and added to the List<Account>. I want the DataGridView to support real time editing and deleting. Here are the senarios: The user wants to delete a row The user wants to edit a row The user wants to add a new row In each of these cases, I need to attempt to replicate those changes to the database. Meaning, when the user deletes a row I want to call a business method that de ...Show All
Visual Studio Team System Workitem to Workitem Transition
I want to customize my Agile Workitem Types so I can be able to do workitem to workitem transition in such a manner: I have a "Customer Inquiry" type with the following states: Open Closed What I want to be able to do is create the following transitions: <empty> ==> Open (New) Open ==> Closed (Answered to the Customer) Open ==> Closed (Bug Detected) ==> New Bug Workitem with the information provided in the Customer Inquiry Workitem. Is it possible Can anyone help me Bernardo Heynemann Lead Architect and Developer @ Arbt Informatica Ltda. Brazil Hi Berna ...Show All
Visual Studio Adding a New XML TextDocument
Hi, I'm new the extensibililty interfaces and have managed to figure how to dynamically add a new TextDocument to the application's Documents collection. I was wondering how to create a new XML document -- meaning the XML editor is managing the new document window Thanks very much. - Erik If the file contains XML, then the XML editor will automatically detect that it is an XML file and open it. Add a schema reference to the XML document, and you will get statement completion on that document. Craig ...Show All
Visual Basic Instantiating Presentation Object without Powerpoint Opening
How do I create a Presentation Object without opening Powerpoint I've the following code but it always opens powerpoint: Presentations.Open("c:\test.ppt", msoTrue) Thanks. ...Show All
SQL Server view ignoring order by - used to work in sql 2000
This works fine in SQL 2000, but not in SQL 2005 I have the following view: CREATE VIEW [dbo] . [viewServicesAll] AS SELECT TOP 100 PERCENT dbo . services . serviceID , dbo . services . serviceDescription , dbo . services . accountCode , dbo . accountCodes . abbrevName FROM dbo . services INNER JOIN dbo . accountCodes ON dbo . services . invoiceAccountCode = dbo . accountCodes . codeID WHERE ( dbo . services . expired = 0 ) ORDER BY dbo . services . serviceDescription When I select * from the view, it orders by the serviceID (which is the primary key of the services table) It should be orderin ...Show All
Smart Device Development 0xC0000005 Access Violation
Hi, i'm developing an application on embedded Visual C++ 4 sp4 under windows CE.NET, and everithing works fine, but after a while the program crashes in the next line dataBloqueptr->data = new unsigned __int8 [total]; telling me that an 0xC0000005 Access Violation has happenned, the strange thing is that by the time the program crashes the line and the function that contains it have been executed a lot of times without problem. So please, can you tell me how to debug this problem, and what does it means the error, i think there's a problem with memory allocation, but i have checked over and over and i'm pretty sure that i'm not ...Show All
SQL Server Web hosting - ASP.NET with SQL Server 2005 Express database
What is needed for a hoster / hosting company to be able to host .Net applications with SQL Server 2005 Express database My questions regarding this issue basically are: If a hoster has several sites hosted on a server, can each one of them have its own SQL Express database Or, do they have to be migrated to full SQL Server What is with the Upsize Tool for SQL Server Express (or something like that) - is it available Generally, how do hosters do their hosting - do they have SQL Server SPLA signed Or do they just have SQL Server 2005 Express and allow users just to copy their web sites and databases to server I would ...Show All
Visual Studio Different behavior between .sln and .sln.proj file
Hi I just discovered an interresting issue. I have created my own targets file that are called from my project file called Testproject.proj. I have changed the import line in the proj to look like this <Import Project="$(SolutionDir)..\MyCustomTask.targets" /> The interresting thing is that when I run my Msbuild command on the solution(Testsolution.sln) that contain the proj file it does not resolve SolutionDir correctly. But when I run MSBuild on the generated Testsolution.sln.proj SolutionDir does resolve correctly. Here is the output with the command: MSBuild Testsolution.sln Microsoft (R) Build Engine Version 2.0.5 ...Show All
.NET Development Developing a n-tier object oriented application
I want to develop an web application in VS.Net 2005 that is n-tiered and object oriented, but I have questions about what resources I can or I must use. So I'm searching for code samples of applications like this, and if its possible, with a tutorial. If somebody has this kind of material, please send me. And, how can I implement a class that will have a collection of items that is from another class I also need material about MS Visio and UML. Hi. You have to consider what architecture road to follow to support your business needs. This is not a 25 cent response. You have to really do this. You may want to consider Rockfor ...Show All
Visual Basic Printing A Calendar Control On A WinForm
Using vb2003 how do i do send a forms contents to the printer in this case a calendar control. The previous samples given appear to be using richtext controls i simply need the calendar sent to the printer (like printscreen basically) Thanks in advance. You can try the code on this site: http://weblogs.asp.net/mschiffer/archive/2004/07/13/181111.aspx ...Show All
Visual Studio 2008 (Pre-release) Treeview - mixed node types
Hi! I am trying to add child nodes of different types to a node. (Did that make sense ! ) In my treeview I want to have folders. These folders contain other folders as well as files. I do not want to list the files in a listview when a folder is selected in the treeview but instead I want to have the files as leafnodes in my Treeview. I'm trying to write a HierarchicalDataTemplate that allows 2 types of child nodes: <HierarchicalDataTemplate ItemsSource="{Binding SubFolders}" DataType="{x:Type l:Folder}"> <TextBlock Text="{Binding Name}"/> </HierarchicalDataTemplate> <Hierarch ...Show All
