Wamplerj1978's Q&A profile
Visual C# Accessing a child control from a parent
I have a WebBrowser Control on a TabPage. The TabPage is created dynamically at runtime. When the Tabpage is created I also add a WebBrowser Control to it. I need to know how to access the WebBrowser Control from my Tab Page. Please keep in mind that both the TabPage and WebBrowser Controls are created at run time. Thank you. Each control, including the main form, has a Controls collection which you can iterate ...Show All
Visual J# Generating XML documentation for J#
I'm trying to port a core library written in Java to J#. It has worked well so far. But now I need to create .NET compatible documentation for this library, and I'm having problems. I know I can make Visual Studio 2005 generate an XML documentation file for my vjsproj, but I need to do this from a command-line build environment. I've been playing with MSBUILD, but I just can't seem to find the proper incantation to make it cre ...Show All
SQL Server Connection String has to be reset every time when DTS package is started
Hi All, I am trying to import data from flat file to sql server 2005 DB table using SSIS. There are 4 different text files in the input folder. I am using for loop to iterate reading and importing 4 times. In order to do this I have set "Connection String" property of a connection manager to a package level variable using expression. There is a script which supplies the source file name and assigns to this variable. The package w ...Show All
Software Development for Windows Vista Trouble with WebService and Persistence
Hello all, I'm newer to the workflow world and I have a few questions : First, a little background: I've currently got a very simple sequential workflow wraped in WebServiceInput and WebServiceOutput and all interfaces and everything are setup correctly. I use the publish as web service option and all is well. I then try to execute the web service using t ...Show All
.NET Development "else if" statement with System.CodeDom.CodeConditionStatement?
I'm creating some source code programatically using the System.CodeDom namespace. I can't however create a proper "else if" statement. You can easily create an "else" statement, but as far as I can see there's no provision for an "else if". Currently I'm inserting CodeSnippetStatement's for the "else if" which works fine, but the output file is not properly indented for the statements within the "else if". The CodeConditionStatement has "TrueSta ...Show All
Visual C# FileStream File Permissions
I currently hava file stream object reading a file and writing it in bytes[] to my db. The problem is that my app does not have permissions to the file on the users machine. The user selects the file through OpenFileDialog. When I create the FileStream object, and pass it the file name, I get an exceptions. Below is my stacktrace and code. Thanks in advance for your help e.StackTrace = " at System.IO.__Error.WinIOError(Int32 errorCod ...Show All
.NET Development Full Trust vs Partial trust in the GAC
Why does a .net dll in the GAC still concidered a partial trust application. I put it in the gac using the gacutil and gave it -addfulltrust - recieved no errors and it runs fine on my computer but I try using it from another client computer and I get partial trust errors. Why is this Is it in the GAC on the machine on which you are trying to run it If so, you're actually running a local copy, and ...Show All
Windows Forms Run-time property creation and display
Hello folks, I have one question I have an application with a textbox and a property grid. I parse the textbox for some specific content. How can I transform this specific content into properties that can be shown in the property grid I was thinking about creating a descriptor class, but i don't know how to add properties to a class in runtime, and parsing the contents to create a new class is not possible .... Thanks in advance ! ...Show All
SQL Server Am I in the right direction?
I am using VFP as my interface and using SQL table as my back-end but recently i got this problem when i add another field in one of my tables, Before it has only 35 field and it goes right, but when I add another 3 fields my problem starts,... if i edit a character fields with all necessary code to update a record and accepted by SQL it has no problem... but when i edit the numeric field which I add, after i refresh my form, it goes back to eac ...Show All
Visual Studio Team System Please give us better help files on the Version Control API
I have been working on a POC that does a Get from the Version Control Repository. I have been heavily scouring the VS 2005 SDK help files, blogs and the Internet at large. I have found limited information on this API and the Help files are all but useless. An example of a help topic for the GetRequest.ItemSpec property is below. This gives me no indication of what this ItemSpec object is or does. Can someone at Microsoft please make it a priorit ...Show All
Windows Forms Drawing above all windows
I have been searching for months on this: I would like to draw on a transparent window above all other windows. I do not want to disrupt any typing that the user is doing on his current window. An example of this type of behavior are ...Show All
Smart Device Development My own internet address bar in Windows Mobile 5?
I have a program, that connects to remote server. User can define the server address in the settings view. In the settings view i have a regular TextBox, where user inputs the server URI. Here is the problem: In Magneto emulator (i don't have the test device yet), I can't write some URI's special characters in the text box (~, / etc...). Special characters are written in Smartphone by pressing button '1', right How do I alter the button '1' to w ...Show All
Visual Studio Express Editions How To Change PaperSize When Printing
After a lot of errors, false starts and senior moments, with the help of several generous souls who responded to a query I made on the VB Express Forum and with several revelations from the book “Mastering Microsoft Visual Basic 2005,” by Petroutsos, I am a closer to understanding printing and modifying the papersize and other printer parameters. I am including the code for a small VB windows test program that programmatically creates two diff ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can I develop the DX10 and DX9.0c application use VC++ 6.0?
Can I develop the DX10 and DX9.0c application use VC++ 6.0 My develop environment is VC++ 6.0 and installed VSSP 5.0. VC++ 6 hasn't been supported by the DirectX SDK for quite a while now. If you go back far enough you can use DX9, but I think it was somewhere around December 2004 that VC6 support was dropped. The short easy answer is no. You'd be better of downloading VC++ 2005 Express (which is free) a ...Show All
SQL Server SMO and Exceptions
Hi, I have a strange problem running Visual Basic 2005 where an exception is not shown and the program terminates itself in the IDE yet if I run the EXE outside of the IDE, the exception is shown in a message box. If I don't have the Form1_Load, it does throw the exception inside and outside the IDE on Button1_Click. I purposly put the error in Button1_Click as I have had the same problem in other programs and wanted to demonstrate a simple e ...Show All
